/* ═══════════════════════════════════════════════════════════════════════════
   WINLEDGER® — site.css
   Paleta: Amarillo #f0bc1a · Azul marino #1a3d7a · Carmesí #8c1a28
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
    --black: #080608;
    --dark: #0f0d10;
    --dark2: #16131a;
    --dark3: #1e1a24;
    --yellow: #f0bc1a;
    --yellow2: #c99a0d;
    --navy: #1a3d7a;
    --navy2: #0e2550;
    --crimson: #8c1a28;
    --white: #f5f2ee;
    --muted: #8a8290;
    --border: rgba(255,255,255,0.07);
    --border-y: rgba(240,188,26,0.18);
    --r: 8px;
    --r-lg: 16px;
    --r-xl: 20px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--black);
    color: var(--white);
    overflow-x: hidden;
    line-height: 1.6;
}

    body::before {
        content: '';
        position: fixed;
        inset: 0;
        z-index: 0;
        pointer-events: none;
        opacity: 0.025;
        background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    }

/* ── AMBIENT GLOWS ─────────────────────────────────────────────────────────── */
.glow {
    position: fixed;
    pointer-events: none;
    z-index: 0;
    border-radius: 50%;
}

.glow-yellow {
    width: 700px;
    height: 400px;
    top: -120px;
    left: -180px;
    background: radial-gradient(ellipse, rgba(240,188,26,.07), transparent 70%);
}

.glow-navy {
    width: 500px;
    height: 500px;
    bottom: 5%;
    right: -120px;
    background: radial-gradient(ellipse, rgba(26,61,122,.10), transparent 70%);
}

/* ── TYPOGRAPHY ────────────────────────────────────────────────────────────── */
h1, h2, h3 {
    line-height: 1.1;
}

a {
    color: inherit;
}

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

/* ── NAV ───────────────────────────────────────────────────────────────────── */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 64px;
    height: 72px;
    background: rgba(8,6,8,.88);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-logo img {
    height: 36px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 36px;
    list-style: none;
}

    .nav-links a {
        color: var(--muted);
        text-decoration: none;
        font-size: 14px;
        font-weight: 400;
        transition: color .2s;
        letter-spacing: .3px;
    }

        .nav-links a:hover, .nav-links a.active {
            color: var(--white);
        }

        .nav-links a.active {
            color: var(--yellow);
        }

.btn-nav {
    background: var(--yellow);
    color: #0a0800;
    border-radius: var(--r);
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s;
    letter-spacing: .3px;
    white-space: nowrap;
}

    .btn-nav:hover {
        background: var(--yellow2);
        transform: translateY(-1px);
        box-shadow: 0 6px 24px rgba(240,188,26,.28);
    }

.nav-mobile-toggle {
    display: none;
}

/* ── BUTTONS ───────────────────────────────────────────────────────────────── */
.btn-primary {
    background: var(--yellow);
    color: #0a0800;
    border: none;
    border-radius: var(--r);
    padding: 14px 30px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Outfit',sans-serif;
    transition: all .2s;
    letter-spacing: .3px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

    .btn-primary:hover {
        background: var(--yellow2);
        transform: translateY(-2px);
        box-shadow: 0 10px 32px rgba(240,188,26,.32);
    }

.btn-ghost {
    color: var(--muted);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 14px 30px;
    font-size: 15px;
    font-weight: 400;
    cursor: pointer;
    font-family: 'Outfit',sans-serif;
    background: transparent;
    transition: all .2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

    .btn-ghost:hover {
        border-color: var(--border-y);
        color: var(--yellow);
    }

/* ── SECTION SHARED ────────────────────────────────────────────────────────── */
section {
    position: relative;
    z-index: 1;
}

.section-tag {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--yellow);
    margin-bottom: 14px;
    font-weight: 600;
}

.section-title {
    font-family: 'Playfair Display',serif;
    font-weight: 700;
    font-size: clamp(30px,4vw,50px);
    letter-spacing: -1px;
    line-height: 1.1;
}

.section-header {
    margin-bottom: 60px;
}

/* ── BRAND STRIPE ──────────────────────────────────────────────────────────── */
.brand-stripe {
    height: 4px;
    background: linear-gradient(90deg, var(--crimson) 0%, var(--navy) 33%, var(--yellow) 66%, transparent 100%);
}

/* ── HERO ──────────────────────────────────────────────────────────────────── */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 60px;
    align-items: center;
    padding: 130px 64px 80px;
    position: relative;
    overflow: visible;
}

.hero-divider {
    position: absolute;
    top: 0;
    right: 480px;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--border) 30%, var(--border) 70%, transparent);
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border-y);
    background: rgba(240,188,26,.06);
    border-radius: 100px;
    padding: 6px 14px 6px 10px;
    font-size: 12px;
    font-weight: 500;
    color: var(--yellow);
    margin-bottom: 32px;
    width: fit-content;
    letter-spacing: .5px;
    animation: fadeUp .6s ease both;
}

.eyebrow-pulse {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--yellow);
    animation: pulse 2s infinite;
}

.hero h1 {
    font-family: 'Playfair Display',serif;
    font-weight: 800;
    font-size: clamp(44px,5.5vw,76px);
    letter-spacing: -1.5px;
    margin-bottom: 28px;
    animation: fadeUp .6s .1s ease both;
    padding-right: 0.2em;
}

    .hero h1 em {
        font-style: italic;
        background: linear-gradient(90deg, var(--yellow) 0%, #f5d060 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        padding-right: 0.15em;
    }

.hero-sub {
    font-size: 17px;
    color: var(--muted);
    max-width: 480px;
    line-height: 1.75;
    font-weight: 300;
    margin-bottom: 44px;
    animation: fadeUp .6s .2s ease both;
}

.hero-actions {
    display: flex;
    gap: 14px;
    align-items: center;
    animation: fadeUp .6s .3s ease both;
}

.hero-stats {
    display: flex;
    gap: 48px;
    margin-top: 72px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
    animation: fadeUp .6s .4s ease both;
}

.stat-num {
    font-family: 'Playfair Display',serif;
    font-weight: 700;
    font-size: 36px;
    letter-spacing: -1px;
    line-height: 1;
}

.stat-accent {
    color: var(--yellow);
}

.stat-label {
    font-size: 12px;
    color: var(--muted);
    margin-top: 5px;
    letter-spacing: .3px;
}

/* Hero cards */
.hero-right {
    animation: fadeLeft .8s .2s ease both;
}

.card-stack {
    position: relative;
    height: 400px;
}

.dash-card {
    position: absolute;
    border-radius: var(--r-lg);
    background: rgba(22,19,26,.92);
    border: 1px solid var(--border);
    backdrop-filter: blur(20px);
    padding: 26px;
    box-shadow: 0 20px 60px rgba(0,0,0,.5);
}

    .dash-card.main {
        width: 360px;
        left: 30px;
        top: 0;
    }

    .dash-card.floating {
        width: 290px;
        left: 0;
        top: 210px;
        border-color: rgba(240,188,26,.12);
    }

.card-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--muted);
    margin-bottom: 12px;
}

.card-value {
    font-family: 'Playfair Display',serif;
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 5px;
}

.card-sub {
    font-size: 12px;
    color: var(--muted);
}

.trend-up {
    color: var(--yellow);
    font-weight: 600;
}

.mini-chart {
    display: flex;
    align-items: flex-end;
    gap: 5px;
    height: 44px;
    margin-top: 18px;
}

.bar {
    border-radius: 3px 3px 0 0;
    flex: 1;
    background: var(--dark3);
}

    .bar.hi {
        background: var(--yellow);
    }

    .bar.md {
        background: var(--navy);
    }

    .bar.lo {
        background: var(--crimson);
    }

.module-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 0;
    font-size: 13px;
}

    .module-row:not(:last-child) {
        border-bottom: 1px solid var(--border);
    }

    .module-row span:last-child {
        margin-left: auto;
    }

.module-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dot-y {
    background: var(--yellow);
}

.dot-n {
    background: var(--navy);
    filter: brightness(1.8);
}

.dot-c {
    background: #e05060;
}

.status-ok {
    font-size: 11px;
    color: #5dbc8a;
    font-weight: 500;
}

/* ── CLIENTES BAND ─────────────────────────────────────────────────────────── */
.clientes-band {
    padding: 36px 64px;
    border-bottom: 1px solid var(--border);
    background: rgba(255,255,255,.015);
}

.clientes-inner {
    display: flex;
    align-items: center;
    gap: 48px;
}

.clientes-label {
    font-size: 11px;
    color: var(--muted);
    white-space: nowrap;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.clientes-list {
    display: flex;
    gap: 44px;
    align-items: center;
    flex: 1;
}

    .clientes-list span {
        font-size: 14px;
        font-weight: 500;
        color: rgba(138,130,144,.4);
    }

/* ── PRODUCTOS ─────────────────────────────────────────────────────────────── */
.productos {
    padding: 120px 64px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    overflow: hidden;
}

.product-card {
    background: var(--dark);
    padding: 44px 36px;
    transition: background .25s;
    position: relative;
    overflow: hidden;
}

    .product-card::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 3px;
        opacity: 0;
        transition: opacity .25s;
    }

    .product-card.p-yellow::after {
        background: var(--yellow);
    }

    .product-card.p-navy::after {
        background: var(--navy);
        filter: brightness(1.8);
    }

    .product-card.p-crimson::after {
        background: #e05060;
    }

    .product-card:hover {
        background: var(--dark2);
    }

        .product-card:hover::after {
            opacity: 1;
        }

.product-icon-wrap {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    margin-bottom: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.icon-yellow {
    background: rgba(240,188,26,.10);
    border: 1px solid rgba(240,188,26,.2);
}

.icon-navy {
    background: rgba(26,61,122,.20);
    border: 1px solid rgba(26,61,122,.3);
}

.icon-crimson {
    background: rgba(140,26,40,.15);
    border: 1px solid rgba(140,26,40,.25);
}

.product-title {
    font-family: 'Playfair Display',serif;
    font-weight: 700;
    font-size: 21px;
    letter-spacing: -.3px;
    margin-bottom: 12px;
}

.product-desc {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.75;
    margin-bottom: 28px;
    font-weight: 300;
}

.product-link {
    font-size: 13px;
    color: var(--yellow);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap .2s;
}

    .product-link:hover {
        gap: 10px;
    }

/* ── NOSOTROS SPLIT ────────────────────────────────────────────────────────── */
.nosotros-split {
    padding: 120px 64px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
}

.nos-visual {
    position: relative;
    border-radius: var(--r-xl);
    overflow: hidden;
    height: 480px;
    background: var(--dark2);
    border: 1px solid var(--border);
}

.nos-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, var(--dark3), var(--dark));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.nos-icon {
    width: 90px;
    margin-bottom: 20px;
    opacity: .9;
}

.nos-years {
    font-family: 'Playfair Display',serif;
    font-weight: 800;
    font-size: 84px;
    letter-spacing: -4px;
    line-height: 1;
    background: linear-gradient(135deg, var(--yellow), #f5d060);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    padding: 0.05em 0.1em 0.1em 0.1em;
}

.nos-years-label {
    font-size: 13px;
    color: var(--muted);
    margin-top: 8px;
    letter-spacing: 1px;
    padding: 0 20px;
    text-align: center;
}

.nos-stripe {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--crimson), var(--navy), var(--yellow));
}

.nos-content .section-tag {
    margin-bottom: 14px;
}

.nos-content .section-title {
    margin-bottom: 24px;
}

.nos-text {
    font-size: 16px;
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 36px;
    font-weight: 300;
}

.values-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    list-style: none;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 15px;
}

.value-check {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    flex-shrink: 0;
    background: rgba(240,188,26,.1);
    border: 1px solid rgba(240,188,26,.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--yellow);
}

/* ── PROPUESTA ─────────────────────────────────────────────────────────────── */
.propuesta {
    padding: 120px 64px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--dark);
}

.propuesta-grid {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 80px;
    align-items: start;
}

.props-list {
    display: flex;
    flex-direction: column;
}

.prop-item {
    padding: 36px 0;
    border-bottom: 1px solid var(--border);
    transition: padding-left .25s;
    position: relative;
}

    .prop-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .prop-item::before {
        content: '';
        position: absolute;
        left: -20px;
        top: 36px;
        width: 3px;
        height: 0;
        border-radius: 2px;
        transition: height .25s;
    }

    .prop-item:nth-child(1)::before {
        background: var(--yellow);
    }

    .prop-item:nth-child(2)::before {
        background: var(--navy);
        filter: brightness(1.8);
    }

    .prop-item:nth-child(3)::before {
        background: #e05060;
    }

    .prop-item:hover {
        padding-left: 12px;
    }

        .prop-item:hover::before {
            height: 40px;
        }

.prop-num {
    font-size: 11px;
    color: var(--yellow);
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-weight: 600;
}

.prop-title {
    font-family: 'Playfair Display',serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -.3px;
    margin-bottom: 10px;
}

.prop-text {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.75;
    font-weight: 300;
}

/* ── TESTIMONIOS ───────────────────────────────────────────────────────────── */
.testimonios {
    padding: 120px 64px;
}

.testimonios-grid {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 20px;
}

.testimonial-card {
    background: var(--dark);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 40px;
    transition: border-color .25s;
}

    .testimonial-card:hover {
        border-color: rgba(240,188,26,.25);
    }

.stars {
    color: var(--yellow);
    font-size: 13px;
    margin-bottom: 18px;
    letter-spacing: 3px;
}

.testimonial-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--muted);
    font-weight: 300;
    margin-bottom: 28px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.author-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: #0a0800;
    background: linear-gradient(135deg, var(--yellow), #f5d060);
}

.author-name {
    font-size: 14px;
    font-weight: 500;
}

.author-role {
    font-size: 12px;
    color: var(--muted);
    margin-top: 2px;
}

/* ── CTA FINAL ─────────────────────────────────────────────────────────────── */
.cta-final {
    padding: 130px 64px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: var(--dark);
    border-top: 1px solid var(--border);
}

.cta-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 700px;
    height: 300px;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(ellipse, rgba(240,188,26,.08), transparent 70%);
}

.cta-final h2 {
    font-family: 'Playfair Display',serif;
    font-weight: 800;
    font-size: clamp(32px,4.5vw,60px);
    letter-spacing: -1.5px;
    margin-bottom: 18px;
    position: relative;
}

.cta-final p {
    font-size: 17px;
    color: var(--muted);
    margin-bottom: 40px;
    font-weight: 300;
    position: relative;
}

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    position: relative;
}

/* ── FOOTER ────────────────────────────────────────────────────────────────── */
.site-footer {
    background: var(--dark);
    border-top: 1px solid var(--border);
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    padding: 72px 64px 48px;
}

.footer-logo {
    height: 32px;
    width: auto;
    margin-bottom: 16px;
}

.footer-tagline {
    font-size: 14px;
    color: var(--muted);
    font-weight: 300;
    line-height: 1.7;
    max-width: 280px;
}

.footer-links-group h4 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--white);
    margin-bottom: 16px;
    font-weight: 600;
}

.footer-links-group ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links-group a {
    font-size: 14px;
    color: var(--muted);
    text-decoration: none;
    transition: color .2s;
    font-weight: 300;
}

    .footer-links-group a:hover {
        color: var(--yellow);
    }

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 64px;
    border-top: 1px solid var(--border);
    font-size: 12px;
    color: var(--muted);
}

    .footer-bottom ul {
        list-style: none;
        display: flex;
        gap: 24px;
    }

    .footer-bottom a {
        color: var(--muted);
        text-decoration: none;
        transition: color .2s;
    }

        .footer-bottom a:hover {
            color: var(--yellow);
        }

/* ── CONTACT PAGE ──────────────────────────────────────────────────────────── */
.contact-page {
    padding: 140px 64px 100px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: start;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

label {
    font-size: 13px;
    color: var(--muted);
    font-weight: 500;
    letter-spacing: .3px;
}

input, textarea, select {
    background: var(--dark2);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 13px 16px;
    color: var(--white);
    font-family: 'Outfit',sans-serif;
    font-size: 15px;
    font-weight: 300;
    transition: border-color .2s;
    width: 100%;
}

    input:focus, textarea:focus {
        outline: none;
        border-color: rgba(240,188,26,.4);
    }

textarea {
    resize: vertical;
    min-height: 140px;
}

.field-error {
    font-size: 12px;
    color: #e05060;
}

.alert-success {
    background: rgba(93,188,138,.1);
    border: 1px solid rgba(93,188,138,.3);
    border-radius: var(--r);
    padding: 16px 20px;
    color: #5dbc8a;
    margin-bottom: 20px;
}

.alert-error {
    background: rgba(224,80,96,.1);
    border: 1px solid rgba(224,80,96,.3);
    border-radius: var(--r);
    padding: 16px 20px;
    color: #e05060;
    margin-bottom: 20px;
}

/* ── BLOG ──────────────────────────────────────────────────────────────────── */
.blog-page {
    padding: 140px 64px 100px;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 28px;
    margin-top: 60px;
}

.post-card {
    background: var(--dark);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    transition: border-color .25s;
    text-decoration: none;
    color: inherit;
}

    .post-card:hover {
        border-color: var(--border-y);
    }

.post-cover {
    height: 200px;
    background: var(--dark3);
    overflow: hidden;
}

    .post-cover img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .3s;
    }

.post-card:hover .post-cover img {
    transform: scale(1.04);
}

.post-body {
    padding: 28px;
}

.post-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.post-tag {
    font-size: 11px;
    background: rgba(240,188,26,.08);
    border: 1px solid rgba(240,188,26,.2);
    color: var(--yellow);
    border-radius: 100px;
    padding: 3px 10px;
    letter-spacing: .5px;
}

.post-title {
    font-family: 'Playfair Display',serif;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -.3px;
    margin-bottom: 10px;
    line-height: 1.3;
}

.post-summary {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.7;
    font-weight: 300;
}

.post-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--muted);
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 60px;
}

.page-btn {
    padding: 10px 18px;
    border: 1px solid var(--border);
    border-radius: var(--r);
    color: var(--muted);
    text-decoration: none;
    transition: all .2s;
    font-size: 14px;
}

    .page-btn:hover, .page-btn.active {
        border-color: var(--border-y);
        color: var(--yellow);
    }

/* ── SINGLE POST ───────────────────────────────────────────────────────────── */
.post-page {
    padding: 140px 64px 100px;
    max-width: 800px;
    margin: 0 auto;
}

.post-page-header {
    margin-bottom: 48px;
}

.post-page h1 {
    font-family: 'Playfair Display',serif;
    font-size: clamp(32px,4vw,52px);
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
}

.post-page .post-meta {
    margin-bottom: 0;
    padding-top: 0;
    border-top: none;
}

.post-content {
    font-size: 17px;
    line-height: 1.85;
    color: rgba(245,242,238,.85);
    font-weight: 300;
}

    .post-content h2 {
        font-family: 'Playfair Display',serif;
        font-size: 28px;
        margin: 40px 0 16px;
        color: var(--white);
    }

    .post-content h3 {
        font-size: 20px;
        margin: 28px 0 12px;
        color: var(--white);
    }

    .post-content p {
        margin-bottom: 20px;
    }

    .post-content a {
        color: var(--yellow);
        text-decoration: underline;
    }

    .post-content code {
        background: var(--dark3);
        border-radius: 4px;
        padding: 2px 7px;
        font-size: 14px;
    }

    .post-content pre {
        background: var(--dark2);
        border: 1px solid var(--border);
        border-radius: var(--r);
        padding: 24px;
        margin: 24px 0;
        overflow-x: auto;
    }

    .post-content blockquote {
        border-left: 3px solid var(--yellow);
        padding-left: 20px;
        margin: 24px 0;
        color: var(--muted);
        font-style: italic;
    }

/* ── INNER PAGE HERO ───────────────────────────────────────────────────────── */
.inner-hero {
    padding: 140px 64px 80px;
}

    .inner-hero h1 {
        font-family: 'Playfair Display',serif;
        font-weight: 800;
        font-size: clamp(40px,5vw,68px);
        letter-spacing: -2px;
        margin-bottom: 20px;
    }

    .inner-hero p {
        font-size: 18px;
        color: var(--muted);
        max-width: 560px;
        font-weight: 300;
        line-height: 1.75;
    }

/* ── ANIMATIONS ────────────────────────────────────────────────────────────── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes fadeLeft {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

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

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(240,188,26,.6);
    }

    70% {
        box-shadow: 0 0 0 7px rgba(240,188,26,0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(240,188,26,0);
    }
}

/* ── RESPONSIVE ────────────────────────────────────────────────────────────── */

/* ── 1200px: prevenir overflow de las tarjetas del hero ─────────────────── */
@media (max-width: 1200px) {
    .hero {
        grid-template-columns: 1fr 360px;
        gap: 40px;
        padding: 130px 48px 80px;
    }

    .hero-divider {
        right: 420px;
    }

    .dash-card.main {
        width: 310px;
        left: 20px;
    }

    .dash-card.floating {
        width: 250px;
    }

    .nosotros-split {
        gap: 60px;
        padding: 100px 48px;
    }

    .productos {
        padding: 100px 48px;
    }

    .testimonios {
        padding: 100px 48px;
    }

    .propuesta {
        padding: 100px 48px;
    }

    .cta-final {
        padding: 100px 48px;
    }

    .footer-top {
        padding: 60px 48px 40px;
    }

    .footer-bottom {
        padding: 24px 48px;
    }

    .blog-page,
    .post-page,
    .inner-hero,
    .contact-page {
        padding-left: 48px;
        padding-right: 48px;
    }
}

/* ── 1100px: colapso de layouts de dos columnas ──────────────────────────── */
@media (max-width: 1100px) {
    .hero {
        grid-template-columns: 1fr;
        padding: 120px 48px 72px;
    }

    .hero-divider {
        display: none;
    }

    .hero-right {
        display: none;
    }

    .nosotros-split {
        grid-template-columns: 1fr;
        gap: 48px;
        padding: 80px 48px;
    }

    .nos-visual {
        height: 320px;
    }

    .nos-years {
        font-size: 72px;
    }

    .propuesta-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .contact-page {
        grid-template-columns: 1fr;
        gap: 48px;
        padding: 120px 48px 80px;
    }
}

/* ── 900px: grids de 3 columnas → 2 columnas ────────────────────────────── */
@media (max-width: 900px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

/* ── 768px: tablet / móvil ───────────────────────────────────────────────── */
@media (max-width: 768px) {
    /* Nav */
    .site-nav {
        padding: 0 24px;
    }

    .nav-links, .btn-nav {
        display: none;
    }

    .nav-mobile-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 4px;
    }

        .nav-mobile-toggle span {
            display: block;
            width: 22px;
            height: 2px;
            background: var(--white);
            border-radius: 2px;
        }

    /* Hero */
    .hero {
        padding: 110px 24px 60px;
    }

        .hero h1 {
            font-size: clamp(28px, 5.5vw, 44px);
            letter-spacing: -1px;
            padding-right: 0;
        }

    .hero-stats {
        gap: 24px;
        flex-wrap: wrap;
        margin-top: 48px;
        padding-top: 28px;
    }

    .hero-actions {
        flex-wrap: wrap;
        gap: 12px;
    }

    /* Grids */
    .products-grid {
        grid-template-columns: 1fr;
    }

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

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

    /* Secciones — paddings */
    section,
    .productos,
    .nosotros-split,
    .propuesta,
    .testimonios,
    .cta-final {
        padding-left: 24px;
        padding-right: 24px;
    }

    .nosotros-split {
        padding-top: 60px;
        padding-bottom: 60px;
        gap: 36px;
    }

    .nos-visual {
        height: 260px;
    }

    .nos-years {
        font-size: 60px;
    }

    /* CTA */
    .cta-final {
        padding-top: 80px;
        padding-bottom: 80px;
    }

    .cta-actions {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    /* Clientes band */
    .clientes-band {
        padding: 24px;
    }

    .clientes-inner {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .clientes-list {
        gap: 20px;
        flex-wrap: wrap;
    }

    /* Footer */
    .footer-top {
        grid-template-columns: 1fr;
        padding: 48px 24px 32px;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        padding: 20px 24px;
        text-align: center;
    }

        .footer-bottom ul {
            justify-content: center;
        }

    /* Páginas internas */
    .inner-hero {
        padding: 110px 24px 60px;
    }

    .blog-page {
        padding: 110px 24px 80px;
    }

    .contact-page {
        padding: 110px 24px 80px;
        gap: 40px;
    }

    .post-page {
        padding: 110px 24px 80px;
    }

    /* Formularios */
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* ── 480px: móvil pequeño ────────────────────────────────────────────────── */
@media (max-width: 480px) {
    .hero {
        padding: 100px 20px 52px;
    }

    .hero-eyebrow {
        font-size: 11px;
        padding: 5px 12px 5px 9px;
    }

    .hero h1 {
        font-size: clamp(36px, 11vw, 52px);
        letter-spacing: -1px;
    }

    .hero h1 {
        font-size: clamp(22px, 7vw, 30px);
        letter-spacing: -0.5px;
    }

    .hero-sub {
        font-size: 15px;
    }

    .hero-stats {
        gap: 16px;
    }

    .stat-num {
        font-size: 28px;
    }

    .btn-primary,
    .btn-ghost {
        width: 100%;
        justify-content: center;
    }

    .cta-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .product-card {
        padding: 32px 24px;
    }

    .testimonial-card {
        padding: 28px 20px;
    }

    .nos-visual {
        height: 220px;
    }

    .nos-years {
        font-size: 52px;
    }

    .section-title {
        font-size: clamp(26px, 7vw, 36px);
    }

    .footer-top {
        padding: 40px 20px 28px;
    }

    .footer-bottom {
        padding: 16px 20px;
    }
}
