/* ==========================================================
   PolaGrid Landing Styles
   Base visual: calido, familiar, moderno y prolijo
   ========================================================== */

/* ---------- Tokens ---------- */
:root {
    --bg-cream: #fffdfb;
    --rose-soft: #f8dde8;
    --peach-soft: #fbe3d0;
    --sky-soft: #ddf1ff;
    --lilac-soft: #e9e2ff;
    --text-main: #4a4a4a;
    --text-dark: #3e3a45;
    --white: #ffffff;

    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --radius-xl: 36px;

    --shadow-soft: 0 14px 40px rgba(82, 73, 89, 0.12);
    --shadow-light: 0 8px 24px rgba(88, 75, 92, 0.1);

    --max-width: 1140px;
    --header-offset: 55px;
    --hero-offset: 88px;
    --anchor-offset: 35px;
}

/* ---------- Base ---------- */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--anchor-offset);
}

body {
    margin: 0;
    color: var(--text-main);
    font-family: 'Manrope', sans-serif;
    background:
        radial-gradient(circle at 12% 8%, rgba(206, 159, 195, 0.9), transparent 50%),
        radial-gradient(circle at 88% 22%, rgba(156, 129, 205, 0.9), transparent 49%),
        radial-gradient(circle at 20% 86%, rgba(236, 198, 182, 0.58), transparent 50%),
        linear-gradient(180deg, #ceb5cb 0%, #e2cfe0 34%, #faede5 100%);
    min-height: 100vh;
    line-height: 1.55;
}

img {
    max-width: 100%;
    display: block;
}

.site-shell {
    overflow-x: hidden;
}

section[id] {
    scroll-margin-top: var(--anchor-offset);
}

/* ---------- Layout ---------- */
.container {
    width: min(var(--max-width), calc(100% - 2.4rem));
    margin-inline: auto;
}

/* Mantener navbar y footer con el mismo ancho visual en todas las páginas */
.site-header > .container,
.site-footer > .container {
    width: min(var(--max-width), calc(100% - 2.4rem));
    max-width: none;
    margin-inline: auto;
}

.section {
    padding: 5.4rem 0;
}

.section-header {
    max-width: 700px;
    margin-bottom: 2.2rem;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0 0 0.85rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-light);
    color: #8c637c;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 700;
}

h1,
h2,
h3,
h4,
p {
    margin: 0;
}

h1,
h2,
h3 {
    color: var(--text-dark);
}

h1 {
    font-family: 'Quicksand', sans-serif;
    font-size: clamp(2.2rem, 4.6vw, 3.9rem);
    line-height: 1.12;
    margin-bottom: 1rem;
}

h2 {
    font-family: 'Quicksand', sans-serif;
    font-size: clamp(1.85rem, 3.4vw, 2.7rem);
    line-height: 1.2;
}

h3 {
    font-size: 1.22rem;
    margin-bottom: 0.55rem;
}

p {
    color: #5a5660;
    font-weight: 450;
}

.section-subtitle {
    max-width: 68ch;
    margin-top: 0.8rem;
    color: #675f6b;
    font-size: 1.04rem;
}

.lead {
    font-size: 1.08rem;
    font-weight: 400;
    color: #6c6671;
    max-width: 58ch;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 700;
    transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease, color 200ms ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    padding: 1rem 1.8rem;
    color: #322735;
    background: linear-gradient(130deg, #ffc6d5, #ffd9bb 44%, #d7cbff);
    box-shadow: 0 16px 34px rgba(198, 126, 160, 0.35);
}

.btn-ghost {
    padding: 0.8rem 1.28rem;
    color: #6b4f61;
    border-color: rgba(148, 111, 133, 0.28);
    background: rgba(255, 255, 255, 0.68);
}

.btn-sm {
    font-size: 0.86rem;
    padding: 0.54rem 0.95rem;
}

.btn-lg {
    padding: 1.08rem 2rem;
    font-size: 1.05rem;
}

/* ---------- Header / Navbar ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 40;
    backdrop-filter: blur(0);
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: background 260ms ease, border-color 260ms ease, box-shadow 260ms ease, backdrop-filter 260ms ease;
}

.site-header.is-scrolled {
    backdrop-filter: blur(10px);
    background: rgba(206, 181, 202, 0.86);
    border-bottom-color: rgba(231, 214, 232, 0.72);
    box-shadow: 0 8px 22px rgba(102, 83, 107, 0.12);
}

.landing-main {
    padding-top: var(--hero-offset);
}

.navbar {
    min-height: 106px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    position: relative;
    z-index: 3;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: #3f3843;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.brand-logo {
    width: auto;
    height: 74px;
    object-fit: contain;
}

.landing-home .brand {
    position: relative;
}

.landing-home .brand-logo {
    transition: opacity 220ms ease;
}

.landing-home .brand-logo-default {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    pointer-events: none;
}

.landing-home .brand-logo-white {
    opacity: 1;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1.1rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: #5d4d59;
    text-decoration: none;
    font-size: 0.94rem;
    font-weight: 600;
}

.nav-cart-link {
    display: inline-flex;
    align-items: center;
    gap: 0.48rem;
    padding: 0.5rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(145, 117, 133, 0.2);
    background: rgba(255, 255, 255, 0.58);
    box-shadow: 0 10px 22px rgba(109, 87, 105, 0.12);
    transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease, border-color 200ms ease;
}

.nav-cart-link:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(145, 117, 133, 0.32);
    box-shadow: 0 14px 26px rgba(109, 87, 105, 0.16);
}

.nav-cart-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.2rem;
    height: 1.2rem;
}

.nav-cart-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.85;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nav-cart-count {
    min-width: 1.45rem;
    height: 1.45rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #ffcad9, #ffdcbf);
    color: #4f3a47;
    font-size: 0.8rem;
    font-weight: 800;
    line-height: 1;
}

.menu-toggle {
    display: none;
    border: 1px solid rgba(120, 95, 114, 0.25);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
    color: #5e4d5a;
    padding: 0.5rem 0.92rem;
    font-family: inherit;
    font-weight: 700;
}

/* ---------- Hero ---------- */
.landing-home .landing-main {
    padding-top: 0;
}

.landing-home .site-header .nav-links > li > a:not(.btn),
.landing-home .site-header .menu-toggle {
    color: #fff;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.22);
}

.landing-home .site-header .nav-links > li > .nav-cart-link {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: 0 12px 24px rgba(34, 24, 33, 0.18);
}

.landing-home .site-header .nav-links > li > .nav-cart-link .nav-cart-count {
    color: #4f3a47;
    text-shadow: none;
}

.landing-home .site-header .menu-toggle {
    border-color: rgba(255, 255, 255, 0.38);
    background: rgba(255, 255, 255, 0.08);
}

.landing-home .site-header.is-scrolled .nav-links > li > a:not(.btn),
.landing-home .site-header.is-scrolled .menu-toggle,
.landing-home .nav-links.is-open a:not(.btn) {
    color: #5d4d59;
    text-shadow: none;
}

.landing-home .site-header.is-scrolled .nav-links > li > .nav-cart-link,
.landing-home .nav-links.is-open .nav-cart-link {
    color: #5d4d59;
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(145, 117, 133, 0.2);
    box-shadow: 0 10px 22px rgba(109, 87, 105, 0.12);
}

.landing-home .nav-links.is-open a:not(.btn) {
    background: transparent;
}

.landing-home .site-header.is-scrolled .brand-logo-default {
    opacity: 1;
}

.landing-home .site-header.is-scrolled .brand-logo-white {
    opacity: 0;
}

.landing-home .hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    padding-top: 0;
    background-image: url('../img/polagrid-hero-full.webp');
    background-image: image-set(
        url('../img/polagrid-hero-full.webp') type('image/webp'),
        url('../img/polagrid-hero-full.png') type('image/png')
    );
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.landing-home .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(
            to bottom,
            rgba(0,0,0,0.75) 0%,
            rgba(0,0,0,0.55) 15%,
            rgba(0,0,0,0.35) 30%,
            rgba(0,0,0,0.15) 55%,
            transparent 80%
        ),
        linear-gradient(
            to right,
            rgba(0,0,0,0.45) 0%,
            rgba(0,0,0,0.25) 30%,
            rgba(0,0,0,0.10) 55%,
            transparent 75%
        );
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.2rem;
    align-items: center;
}

.landing-home .hero-content {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding-top: calc(var(--hero-offset) - 0.25rem);
    padding-bottom: 3.5rem;
    animation: fade-up 0.8s ease forwards;
}

.landing-home .hero-copy {
    max-width: 600px;
}

.landing-home .hero-copy h1,
.landing-home .hero-copy p {
    color: #fff;
}

.landing-home .hero-copy .lead {
    color: rgba(255, 255, 255, 0.88);
    max-width: 600px;
}

.hero-actions {
    margin-top: 1.45rem;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.landing-home .hero .btn-ghost {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(10px);
    opacity: 0.86;
    font-size: 0.96rem;
    padding: 0.82rem 1.4rem;
}

.hero-trust {
    margin-top: 1.4rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.landing-home .hero-trust span {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    padding: 0.36rem 0.8rem;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.84);
    opacity: 0.86;
    backdrop-filter: blur(8px);
}

.photo-grid {
    display: grid;
    gap: 0.5rem;
}

.photo-grid span,
.photo-grid img {
    display: block;
    width: 100%;
    border-radius: 0;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.55)),
        linear-gradient(130deg, rgba(247, 214, 224, 0.8), rgba(221, 238, 248, 0.7));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.photo-grid img {
    object-fit: cover;
}

.photo-grid-3x3 {
    grid-template-columns: repeat(3, 1fr);
}

.photo-grid-3x3 span,
.photo-grid-3x3 img {
    aspect-ratio: 5 / 7;
}

.photo-grid-2x2 {
    grid-template-columns: repeat(2, 1fr);
}

.photo-grid-2x2 span,
.photo-grid-2x2 img {
    aspect-ratio: 1 / 1;
}

.polaroid-demo span,
.polaroid-demo img {
    border-top: 4px solid rgba(255, 255, 255, 0.98);
    border-left: 4px solid rgba(255, 255, 255, 0.98);
    border-right: 4px solid rgba(255, 255, 255, 0.98);
    border-bottom: 10px solid rgba(255, 255, 255, 0.98);
}

/* ---------- How it works ---------- */
.how-it-works {
    padding-top: 4.8rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.step-card {
    position: relative;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-light);
    padding: 1.15rem 1rem 1rem;
}

.step-index {
    display: inline-flex;
    margin-bottom: 0.6rem;
    font-size: 0.8rem;
    font-weight: 800;
    color: #7d5f71;
    letter-spacing: 0.05em;
}

/* ---------- Examples ---------- */
.examples-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.example-card {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-light);
    padding: 1rem;
}

.micro-copy {
    margin-top: 0.7rem;
    color: #8a6278;
    font-size: 0.9rem;
    font-weight: 700;
}

.sheet-preview {
    border-radius: var(--radius-md);
    min-height: 190px;
    margin-bottom: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.preview-a4 {
    background:
        linear-gradient(140deg, rgba(253, 236, 243, 0.78), rgba(223, 238, 248, 0.78)),
        repeating-linear-gradient(to right, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.58) 31%, transparent 31%, transparent 34%);
}

.preview-a3 {
    background:
        linear-gradient(145deg, rgba(255, 232, 217, 0.8), rgba(232, 223, 248, 0.78)),
        repeating-linear-gradient(to right, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.6) 22%, transparent 22%, transparent 25%);
}

.preview-a3plus {
    background:
        linear-gradient(130deg, rgba(226, 242, 253, 0.82), rgba(255, 225, 218, 0.78)),
        repeating-linear-gradient(to right, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.62) 16%, transparent 16%, transparent 19%);
}

/* ---------- Sizes / Frames ---------- */
.sizes-grid,
.frames-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.frames-grid {
    grid-template-columns: repeat(4, minmax(220px, 1fr));
    justify-content: center;
}

.production-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
}

.production-grid .size-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.production-grid .size-card.featured {
    transform: none;
}

.size-card,
.frame-card {
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.9), rgba(255, 249, 252, 0.86));
    border: 1px solid rgba(255, 255, 255, 0.98);
    border-radius: var(--radius-md);
    box-shadow: 0 12px 24px rgba(93, 74, 101, 0.1);
    padding: 1.1rem 1rem;
}

.frame-card {
    background: linear-gradient(160deg, rgba(242, 233, 244, 0.98), rgba(234, 224, 237, 0.96));
    border: 1px solid rgba(223, 206, 228, 0.95);
    box-shadow: 0 12px 22px rgba(83, 64, 97, 0.12);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.2rem 1.05rem 1.1rem;
}

.size-card p {
    color: #4c4550;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.size-card small {
    color: #625b69;
}

.size-card.featured {
    position: relative;
    background:
        linear-gradient(145deg, rgba(255, 229, 214, 0.98), rgba(232, 214, 255, 0.96)),
        rgba(255, 255, 255, 0.95);
    border-color: rgba(226, 196, 221, 0.92);
    box-shadow: 0 22px 46px rgba(125, 86, 116, 0.3);
    transform: translateY(-3px);
}

.size-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.chip {
    display: inline-block;
    margin: 0;
    border-radius: 999px;
    padding: 0.25rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 800;
    color: #6f435a;
    background: #ffd8e5;
}

/* ---------- Advantages ---------- */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.advantage-card {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-light);
    padding: 1.15rem 1rem;
}

.frame-demo {
    width: min(100%, 220px);
    margin: 0 auto 0.9rem;
    border-radius: 0;
    background: #fff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8);
    overflow: hidden;
}

.frame-demo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.frame-none {
    aspect-ratio: 3 / 4;
    border: 0;
}

.frame-uniform {
    aspect-ratio: 3 / 4;
    border: 9px solid #fff;
}

.frame-cuadrada {
    aspect-ratio: 1 / 1;
    border: 9px solid #fff;
}

.frame-polaroid-soft {
    aspect-ratio: 3 / 4;
    border-top: 9px solid #fff;
    border-left: 9px solid #fff;
    border-right: 9px solid #fff;
    border-bottom: 24px solid #fff;
}

.frame-polaroid-classic {
    aspect-ratio: 3 / 4;
    border-top: 9px solid #fff;
    border-left: 9px solid #fff;
    border-right: 9px solid #fff;
    border-bottom: 34px solid #fff;
}

.frame-mini-instax {
    aspect-ratio: 54 / 86;
    width: min(100%, 170px);
    border-style: solid;
    border-color: #fff;
    border-width: 14px 9px 25px;
}

.frame-photo-strip {
    position: relative;
    aspect-ratio: 1 / 3.4;
    width: min(100%, 120px);
    background: #fff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.85);
}

.frame-photo-strip-slot {
    position: absolute;
    left: 6%;
    width: 88%;
    height: 25.8824%;
    overflow: hidden;
}

.frame-photo-strip-slot:nth-child(1) {
    top: 1.7647%;
}

.frame-photo-strip-slot:nth-child(2) {
    top: 29.4118%;
}

.frame-photo-strip-slot:nth-child(3) {
    top: 57.0588%;
}

.frame-photo-strip-slot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.frame-souvenir-polaroid {
    aspect-ratio: 4 / 5;
    width: min(100%, 228px);
    border: 0;
    background: transparent;
    box-shadow: none;
}

.frame-card h3 {
    width: 100%;
    margin-bottom: 0.4rem;
}

.frame-card p {
    max-width: 28ch;
    margin: 0 auto;
}

.formatos-grid .frame-card {
    min-height: 100%;
}

.formatos-grid .chip {
    background: rgba(255, 216, 229, 0.9);
}

/* Formatos: 3 cards arriba + 2 cards centradas abajo */
.formatos-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Home nueva - formatos */
.home-new-section {
    position: relative;
}

.home-new-section .container {
    position: relative;
    z-index: 1;
}

.home-new-section-head {
    max-width: 860px;
    margin-bottom: 1.8rem;
    text-align: left;
}

.home-new-section-head .section-subtitle {
    margin-top: 0.65rem;
    max-width: 70ch;
}

.format-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
}

.format-tab {
    border: 1px solid rgba(156, 131, 174, 0.26);
    background: rgba(255, 255, 255, 0.82);
    color: #5f5268;
    border-radius: 999px;
    padding: 0.52rem 1rem;
    font-size: 0.92rem;
    line-height: 1.2;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.format-tab:hover {
    transform: translateY(-1px);
    border-color: rgba(146, 111, 175, 0.4);
}

.format-tab.is-active {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(130deg, #a96cde 0%, #9e7ff2 100%);
    box-shadow: 0 10px 24px rgba(131, 98, 175, 0.26);
}

.format-showcase-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.95rem;
}

.format-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.96);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(252, 246, 250, 0.92) 100%);
    box-shadow: 0 14px 30px rgba(98, 76, 108, 0.12);
}

.format-card[hidden],
.example-editorial-card[hidden] {
    display: none !important;
}

.format-card-media {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f2e8f0;
}

.format-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.format-card-body {
    padding: 0.9rem 0.95rem 0.95rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.format-card-body h3 {
    margin-bottom: 0.2rem;
}

.format-size {
    margin-bottom: 0.35rem;
    font-size: 0.85rem;
    font-weight: 800;
    color: #aa6b90;
}

.format-card-body p {
    margin-bottom: 0.6rem;
    line-height: 1.45;
}

.format-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.7rem;
    font-size: 0.88rem;
    font-weight: 800;
    color: #7a5a8e;
    text-decoration: none;
}

.format-card-link:hover,
.format-card-link:focus {
    color: #624875;
    text-decoration: none;
}

.format-card-button {
    width: 100%;
    justify-content: center;
    margin-top: auto;
    margin-bottom: 0;
    padding: 0.72rem 1rem;
    border-radius: 999px;
    background: var(--btn-gradient-primary);
    border: 1px solid rgba(163, 131, 182, 0.22);
    box-shadow: var(--btn-shadow-strong);
    color: var(--btn-text-strong);
}

.format-card-button:hover,
.format-card-button:focus {
    background: var(--btn-gradient-primary-hover);
    color: #31253a;
    box-shadow: 0 20px 36px rgba(177, 118, 148, 0.3);
}

.format-use-tag {
    display: inline-flex;
    align-items: center;
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 1;
    border-radius: 999px;
    padding: 0.34rem 0.68rem;
    background: rgba(255, 247, 252, 0.92);
    backdrop-filter: blur(6px);
    color: #7b5a8f;
    font-size: 0.79rem;
    font-weight: 800;
    box-shadow: 0 10px 22px rgba(103, 78, 116, 0.14);
}

/* Home nueva - ejemplos */
.examples-editorial .home-new-section-head {
    margin-bottom: 1.5rem;
}

.examples-editorial .home-new-section-head h2 {
    white-space: nowrap;
}

.examples-mosaic {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 0.95rem;
}

.example-editorial-card {
    position: relative;
    grid-column: span 3;
    min-height: 230px;
    overflow: hidden;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 30px rgba(98, 76, 108, 0.14);
    background: #f5edf4;
}

.example-editorial-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.example-editorial-overlay {
    position: absolute;
    left: 0.9rem;
    top: 0.9rem;
    max-width: min(78%, 285px);
    padding: 0.9rem 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.87);
    backdrop-filter: blur(2px);
    border: 1px solid rgba(255, 255, 255, 0.95);
    opacity: 1;
    transition: opacity 560ms ease;
}

.example-editorial-overlay h3 {
    margin-bottom: 0.25rem;
}

.example-editorial-overlay p {
    margin-bottom: 0.45rem;
    font-size: 0.94rem;
}

.example-editorial-overlay span {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #9870ac;
}

.example-editorial-card:hover .example-editorial-overlay,
.example-editorial-card:focus-within .example-editorial-overlay {
    opacity: 0.1;
}

.example-editorial-card--xl {
    grid-column: span 5;
    grid-row: span 2;
    min-height: 430px;
}

.example-editorial-card--large {
    grid-column: span 4;
    grid-row: span 2;
    min-height: 430px;
}

.example-editorial-card--wide {
    grid-column: span 4;
    min-height: 200px;
}

/* ---------- FAQ ---------- */
.faq-accordion {
    display: grid;
    gap: 0.85rem;
    align-items: start;
}

.faq-accordion-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
}

.faq-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    align-items: start;
}

.faq-item {
    align-self: start;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.94);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.84);
    box-shadow: var(--shadow-light);
}

.faq-item h3 {
    margin: 0;
    font-size: 1rem;
}

.faq-question {
    position: relative;
    width: 100%;
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 3rem 1rem 1.05rem;
    border: 0;
    background: transparent;
    color: #4b4250;
    font: inherit;
    font-weight: 800;
    line-height: 1.35;
    text-align: left;
    cursor: pointer;
}

.faq-question::after {
    content: "+";
    position: absolute;
    top: 50%;
    right: 1.05rem;
    width: 1.6rem;
    height: 1.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    border-radius: 999px;
    background: linear-gradient(135deg, #ffe2ea, #efe7ff);
    color: #7a5369;
    font-weight: 800;
}

.faq-question[aria-expanded="true"]::after {
    content: "-";
}

.faq-question:focus-visible {
    outline: 3px solid rgba(133, 95, 122, 0.34);
    outline-offset: -3px;
}

.faq-answer {
    overflow: hidden;
    opacity: 0;
    padding: 0 1.05rem 1.05rem;
    transition: max-height 240ms ease, opacity 200ms ease;
}

.faq-item.is-open .faq-answer {
    opacity: 1;
}

.faq-answer p {
    color: #655e69;
    line-height: 1.7;
}

.faq-home-link {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.55rem;
    margin-top: 1.15rem;
    color: #5f5662;
    font-weight: 700;
}

.text-link {
    color: #76556d;
    font-weight: 800;
    text-decoration: none;
}

.text-link:hover {
    color: #4b4250;
    text-decoration: underline;
}

.faq-publica {
    background:
        radial-gradient(circle at top right, rgba(237, 221, 255, 0.82), transparent 36%),
        linear-gradient(180deg, #cfafcf 0%, #ead8ea 18%, #f8f2f4 44%, #f9f3f0 100%);
}

.faq-page {
    padding-top: var(--hero-offset);
}

.faq-hero {
    padding-bottom: 3.6rem;
}

.faq-hero .container {
    max-width: 900px;
}

.faq-hero h1 {
    max-width: 880px;
}

.faq-hero-actions,
.faq-final-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.45rem;
}

.faq-groups {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
    align-items: start;
}

.faq-group {
    padding: 1.05rem;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.82);
    box-shadow: 0 14px 30px rgba(101, 79, 105, 0.09);
}

.faq-group-header h2 {
    margin: 0 0 0.9rem;
    font-size: clamp(1.35rem, 2.2vw, 1.8rem);
}

.faq-final {
    padding-top: 3.5rem;
}

.faq-final .cta-box {
    max-width: 900px;
}

.faq-final-actions {
    justify-content: center;
}

/* ---------- CTA / Footer ---------- */
.cta-box {
    text-align: center;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
    padding: 2.3rem 1.2rem;
}

.cta-box h2 {
    max-width: 23ch;
    margin: 0 auto 0.8rem;
}

.cta-box p {
    max-width: 60ch;
    margin: 0 auto 1.4rem;
}

.site-footer {
    padding: 2.2rem 0 2.4rem;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    border-top: 1px solid rgba(144, 115, 133, 0.2);
    padding-top: 1.5rem;
}

.footer-brand {
    font-family: 'Quicksand', sans-serif;
    color: #3d3441;
    font-size: 1.03rem;
    font-weight: 800;
    margin-bottom: 0.22rem;
}

.footer-copy,
.footer-meta {
    font-size: 0.9rem;
    color: #6f6371;
    font-weight: 400;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem 1.1rem;
    margin-top: 0.9rem;
}

.footer-links a {
    color: #6f6371;
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
}

.footer-links a:hover {
    color: #4b4250;
    text-decoration: underline;
}

/* ---------- Animations ---------- */
@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .steps-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sizes-grid,
    .frames-grid,
    .advantages-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .examples-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .production-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .faq-accordion-compact,
    .faq-groups {
        grid-template-columns: 1fr;
    }

    .faq-columns {
        grid-template-columns: 1fr;
    }

    .formatos-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .format-showcase-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .examples-mosaic {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .example-editorial-card,
    .example-editorial-card--xl,
    .example-editorial-card--large,
    .example-editorial-card--wide {
        grid-column: auto;
        grid-row: auto;
        min-height: 300px;
    }

    .examples-editorial .home-new-section-head h2 {
        white-space: normal;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 760px) {
    :root {
        --header-offset: 56px;
        --hero-offset: 96px;
        --anchor-offset: 46px;
    }

    .navbar {
        min-height: 86px;
    }

    .brand-logo {
        height: 56px;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .nav-links {
        position: absolute;
        top: 90px;
        left: 1rem;
        right: 1rem;
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-light);
        background: rgba(255, 252, 249, 0.96);
        border: 1px solid rgba(255, 255, 255, 0.95);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-8px);
        transition: opacity 180ms ease, transform 180ms ease;
    }

    .nav-links > li {
        width: 100%;
    }

    .nav-links > li > a:not(.btn) {
        display: inline-flex;
        width: 100%;
    }

    .nav-links > li > .nav-cart-link {
        justify-content: space-between;
        width: 100%;
    }

    .nav-links.is-open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .site-header .nav-links.is-open > li > a:not(.btn) {
        color: var(--text-dark);
        text-shadow: none;
    }

    .hero {
        padding-top: 1.2rem;
    }

    .hero-grid {
        gap: 1rem;
    }

    .hero-copy {
        text-align: left;
    }

    .hero-copy h1 {
        font-size: clamp(2rem, 10vw, 2.7rem);
        line-height: 1.08;
    }

    .landing-home .hero-content {
        min-height: 100vh;
        min-height: 100svh;
        padding-top: calc(var(--hero-offset) - 0.15rem);
        padding-bottom: 2.8rem;
    }

    .hero-actions {
        gap: 0.6rem;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .landing-home .hero-trust span {
        font-size: 0.78rem;
        padding: 0.34rem 0.72rem;
    }

    .landing-home .hero {
        background-position: 66% center;
    }

    .section {
        padding: 4.6rem 0;
    }

    .sizes-grid,
    .frames-grid,
    .steps-grid,
    .examples-grid,
    .advantages-grid {
        grid-template-columns: 1fr;
    }

    .examples-grid .example-card {
        grid-column: auto;
    }

    .production-grid {
        grid-template-columns: 1fr;
    }

    .home-new-section-head {
        margin-bottom: 1.2rem;
    }

    .format-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.2rem;
        margin-right: -0.2rem;
    }

    .format-tab {
        flex: 0 0 auto;
    }

    .format-showcase-grid,
    .examples-mosaic {
        grid-template-columns: 1fr;
    }

    .example-editorial-card,
    .example-editorial-card--xl,
    .example-editorial-card--large,
    .example-editorial-card--wide {
        min-height: 260px;
    }

    .example-editorial-overlay {
        max-width: calc(100% - 1.8rem);
    }

    .faq-hero-actions .btn,
    .faq-final-actions .btn {
        width: 100%;
    }
}
