/* ==========================================================
   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;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-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: calc(var(--header-offset) + 0.5rem);
}

/* ---------- Layout ---------- */
.container {
    width: min(var(--max-width), calc(100% - 2.4rem));
    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;
}

.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;
}

.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 .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 .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: 90vh;
    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: 90vh;
    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-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-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);
}

/* ---------- 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));
    }

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

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

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

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

    .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.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: 90vh;
        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;
    }

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

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