:root {
    --blue: #27318e;
    --blue-deep: #10164f;
    --orange: #f07711;
    --green: #3fa75f;
    --ink: #171928;
    --muted: #65697a;
    --warm: #f7f5f0;
    --white: #fff;
    --line: rgba(39, 49, 142, .14);
    --shadow: 0 24px 70px rgba(18, 24, 72, .14);
    --radius: 24px;
    --shell: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--white);
    font-family: "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 1000; padding: 12px 18px; border-radius: 8px; color: #fff; background: var(--blue-deep); }
.skip-link:focus { top: 16px; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(255,255,255,.18);
    background: rgba(255,255,255,.96);
    box-shadow: 0 8px 30px rgba(13,20,66,.06);
    backdrop-filter: blur(16px);
}
.header-inner { width: var(--shell); min-height: 88px; margin: 0 auto; display: flex; align-items: center; gap: 30px; }
.brand { flex: 0 0 215px; }
.brand img { width: 215px; height: auto; }
.main-nav { display: flex; align-items: center; gap: 24px; margin-left: auto; font-size: 14px; font-weight: 600; }
.main-nav a { position: relative; padding: 31px 0 28px; }
.main-nav a::after { content: ""; position: absolute; right: 0; bottom: 22px; left: 0; height: 2px; background: var(--orange); transform: scaleX(0); transition: transform .2s ease; }
.main-nav a:hover::after, .main-nav a:focus-visible::after, .main-nav .is-active::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.whatsapp { font-size: 13px; font-weight: 700; color: var(--green); }
.contact-button, .cert-card > a { padding: 11px 18px; border-radius: 999px; color: #fff; background: var(--blue); font-size: 13px; font-weight: 700; }
.menu-button { display: none; border: 0; background: transparent; }
.menu-button > span:not(.sr-only) { display: block; width: 24px; height: 2px; margin: 5px; background: var(--blue); }

.hero { position: relative; overflow: hidden; background: #111; aspect-ratio: 19 / 7; min-height: 430px; }
.hero-track, .hero-slide { position: absolute; inset: 0; margin: 0; }
.hero-slide { opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility .7s ease; }
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(10,15,55,.16), transparent 38%, transparent 72%, rgba(10,15,55,.1)); }
.hero-controls { position: absolute; z-index: 3; right: 0; bottom: 22px; left: 0; display: flex; align-items: center; justify-content: center; gap: 15px; }
.hero-controls > button { width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.7); border-radius: 50%; color: #fff; background: rgba(10,15,55,.35); cursor: pointer; }
.hero-dots { display: flex; gap: 8px; }
.hero-dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.65); cursor: pointer; }
.hero-dots button.is-active { width: 28px; border-radius: 8px; background: #fff; }

.section { padding: 92px 0; }
.section-shell { width: var(--shell); margin: 0 auto; }
.eyebrow { margin: 0 0 12px; color: var(--orange); font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; font-weight: 750; letter-spacing: -.025em; line-height: 1.12; }
h1 { color: var(--blue); font-size: clamp(42px, 6vw, 76px); }
h2 { color: var(--blue); font-size: clamp(32px, 4vw, 54px); }
h3 { font-size: 23px; }
.intro { background: linear-gradient(180deg, #fff 0%, var(--warm) 100%); }
.intro-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 72px; align-items: center; }
.intro-title h1 { max-width: 560px; }
.featured-brand { overflow: hidden; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.featured-brand > img { width: 100%; aspect-ratio: 16 / 8.2; object-fit: cover; }
.featured-brand > div { padding: 28px 32px 34px; }
.featured-brand span, .news-grid span { color: var(--green); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.featured-brand h2 { margin: 8px 0 10px; font-size: 32px; }
.featured-brand p { margin: 0; color: var(--muted); }

.stats { padding-top: 10px; background: var(--warm); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-radius: var(--radius); background: #fff; box-shadow: 0 18px 55px rgba(20,27,75,.08); }
.stats article { min-height: 230px; padding: 34px 30px; border-right: 1px solid var(--line); }
.stats article:last-child { border-right: 0; }
.stats strong { display: block; margin-bottom: 18px; color: var(--blue); font-size: clamp(34px, 4vw, 48px); line-height: 1; }
.stats strong small { font-size: .48em; text-transform: uppercase; }
.stats p { margin: 0; color: var(--muted); font-size: 15px; }
.stats a { color: var(--blue); font-weight: 700; }

.section-heading { max-width: 700px; margin-bottom: 42px; }
.section-heading > p:last-child { color: var(--muted); }
.client-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.client-grid figure { display: grid; min-height: 130px; margin: 0; padding: 24px; place-items: center; border: 1px solid var(--line); border-radius: 18px; background: #fff; transition: transform .2s ease, box-shadow .2s ease; }
.client-grid figure:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(20,27,75,.08); }
.client-grid img { max-width: 130px; max-height: 70px; object-fit: contain; filter: grayscale(1); opacity: .78; transition: filter .2s ease, opacity .2s ease; }
.client-grid figure:hover img { filter: grayscale(0); opacity: 1; }

.global { overflow: hidden; color: #fff; background: var(--blue-deep); }
.global-grid { display: grid; grid-template-columns: 1.45fr .55fr; gap: 64px; align-items: center; }
.map-wrap > img { width: 100%; filter: brightness(0) invert(1); opacity: .92; }
.map-legend { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 20px; font-size: 14px; }
.map-legend span { display: flex; align-items: center; gap: 10px; }
.map-legend i { width: 13px; height: 13px; border-radius: 50%; }
.map-legend .green { background: var(--green); }
.map-legend .orange { background: var(--orange); }
.cert-card { padding: 36px; border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius); background: rgba(255,255,255,.08); }
.cert-card img { width: 120px; margin: 0 0 24px; }
.cert-card h2 { color: #fff; font-size: 36px; }
.cert-card > p:not(.eyebrow) { margin-bottom: 28px; color: rgba(255,255,255,.78); }
.cert-card > a { display: inline-block; background: var(--orange); }

.heading-row { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.heading-row > a { color: var(--blue); font-weight: 750; border-bottom: 2px solid var(--orange); }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-grid article { overflow: hidden; border-radius: var(--radius); background: var(--warm); }
.news-grid img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .4s ease; }
.news-grid article:hover img { transform: scale(1.025); }
.news-grid article > div { padding: 26px; }
.news-grid h3 { margin: 8px 0 12px; color: var(--blue); }
.news-grid p { margin: 0; color: var(--muted); font-size: 14px; }

.site-footer { padding-top: 76px; color: rgba(255,255,255,.75); background: #0b103d; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 42px 34px; }
.footer-lead { grid-row: span 2; }
.footer-lead img { width: 230px; margin-bottom: 30px; }
.footer-lead h2 { color: #fff; font-size: 34px; }
.footer-lead p { max-width: 470px; }
.footer-grid h3 { margin-bottom: 10px; color: #fff; font-size: 16px; }
.footer-grid p { margin: 0; font-size: 14px; }
.footer-grid a:hover { color: #fff; }
.social-links { display: flex; gap: 18px; color: #fff; font-weight: 700; }
.footer-bottom { width: var(--shell); margin: 58px auto 0; padding: 24px 0 28px; display: flex; justify-content: space-between; gap: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; }

@media (max-width: 1080px) {
    .header-inner { gap: 18px; }
    .brand { flex-basis: 180px; }
    .brand img { width: 180px; }
    .main-nav { gap: 15px; font-size: 13px; }
    .whatsapp { display: none; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stats article:nth-child(2) { border-right: 0; }
    .stats article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .client-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 820px) {
    :root { --shell: min(100% - 28px, 680px); }
    .header-inner { min-height: 76px; }
    .menu-button { display: block; margin-left: auto; cursor: pointer; }
    .main-nav { position: fixed; inset: 76px 0 0; display: none; align-items: stretch; padding: 28px; background: #fff; }
    .main-nav.is-open { display: flex; flex-direction: column; }
    .main-nav a { padding: 10px 0; font-size: 18px; }
    .main-nav a::after { bottom: 5px; }
    .header-actions { display: none; }
    .hero { aspect-ratio: 16 / 8; min-height: 330px; }
    .hero-slide img { object-position: center; }
    .section { padding: 70px 0; }
    .intro-grid, .global-grid { grid-template-columns: 1fr; gap: 42px; }
    .stats { padding-top: 0; }
    .client-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-lead { grid-column: 1 / -1; grid-row: auto; }
}

@media (max-width: 560px) {
    .brand { flex-basis: 170px; }
    .hero { aspect-ratio: 1 / 1.05; min-height: 430px; }
    .hero-slide img { object-fit: cover; }
    .hero-controls { bottom: 14px; }
    .hero-controls > button { display: none; }
    .intro-grid { gap: 30px; }
    .stats-grid { grid-template-columns: 1fr; }
    .stats article { min-height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
    .stats article:last-child { border-bottom: 0; }
    .client-grid { grid-template-columns: repeat(2, 1fr); }
    .client-grid figure { min-height: 100px; padding: 15px; }
    .map-legend { flex-direction: column; }
    .news-grid { grid-template-columns: 1fr; }
    .heading-row { align-items: flex-start; flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Páginas internas reconstruidas desde el contenido legítimo de WordPress */
.nav-group { position: relative; }
.nav-group > a { display: block; }
.nav-submenu {
    position: absolute;
    top: calc(100% - 12px);
    left: -22px;
    width: 245px;
    padding: 10px;
    visibility: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 20px 45px rgba(16, 22, 79, .14);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
.nav-group:hover .nav-submenu,
.nav-group:focus-within .nav-submenu { visibility: visible; opacity: 1; transform: translateY(0); }
.nav-submenu a { display: block; padding: 11px 13px; border-radius: 9px; font-size: 13px; }
.nav-submenu a::after { display: none; }
.nav-submenu a:hover, .nav-submenu a:focus-visible { color: var(--blue); background: var(--warm); }

.page-hero { position: relative; min-height: 610px; overflow: hidden; background: var(--blue-deep); }
.page-hero.compact { min-height: 470px; }
.page-hero > img { width: 100%; height: 100%; min-height: inherit; object-fit: cover; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 16, 61, .86) 0%, rgba(10, 16, 61, .55) 42%, rgba(10, 16, 61, .05) 78%); }
.page-hero-copy { position: absolute; z-index: 2; top: 50%; left: max(20px, calc((100% - 1180px) / 2)); max-width: 680px; padding-right: 30px; color: #fff; transform: translateY(-50%); }
.page-hero-copy h1 { color: #fff; }
.page-hero-copy > p:last-child { max-width: 590px; margin: 22px 0 0; font-size: 20px; }

.founder-grid { display: grid; grid-template-columns: minmax(300px, .75fr) 1.25fr; align-items: center; gap: 80px; }
.founder-grid > img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.founder-grid h2 { margin-bottom: 26px; }
.founder-grid p:not(.eyebrow) { color: var(--muted); font-size: 18px; }
.signature { padding-top: 20px; border-top: 1px solid var(--line); }
.signature strong { color: var(--blue); }
.warm-section { background: var(--warm); }
.split-copy { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.split-copy p { margin-top: 0; color: var(--muted); font-size: 18px; }
.text-link { display: inline-block; margin-top: 15px; color: var(--blue); font-weight: 800; border-bottom: 2px solid var(--orange); }
.three-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.three-cards article { min-height: 310px; padding: 36px; border: 1px solid var(--line); border-radius: var(--radius); }
.three-cards span, .process-grid span { color: var(--orange); font-weight: 850; }
.three-cards h3 { margin: 55px 0 16px; color: var(--blue); font-size: 30px; }
.three-cards p { color: var(--muted); }
.values-section { color: #fff; background: var(--blue-deep); }
.values-section h2, .values-section h3 { color: #fff; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-grid article { padding: 30px; border: 1px solid rgba(255,255,255,.13); border-radius: 18px; background: rgba(255,255,255,.06); }
.warm-section .feature-grid article { border-color: var(--line); background: #fff; }
.warm-section .feature-grid h3 { color: var(--blue); }
.feature-grid h3 { margin-bottom: 10px; color: #fff; }
.feature-grid p { margin: 0; color: rgba(255,255,255,.7); }
.warm-section .feature-grid p { color: var(--muted); }

.brand-nav { position: sticky; top: 88px; z-index: 30; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.97); }
.brand-nav .section-shell { display: flex; gap: 34px; overflow-x: auto; }
.brand-nav a { padding: 20px 0 17px; white-space: nowrap; color: var(--muted); font-weight: 750; border-bottom: 3px solid transparent; }
.brand-nav a.active { color: var(--blue); border-color: var(--orange); }
.process-section { padding-bottom: 30px; background: var(--warm); }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; border-radius: var(--radius); overflow: hidden; }
.process-grid article { min-height: 240px; padding: 30px; background: #fff; }
.process-grid h3 { margin: 44px 0 10px; color: var(--blue); }
.process-grid p { margin: 0; color: var(--muted); }
.brand-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.brand-grid article { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 14px 40px rgba(16,22,79,.06); }
.brand-grid img { width: 100%; aspect-ratio: 1.3; object-fit: cover; background: var(--warm); transition: transform .45s ease; }
.brand-grid article:hover img { transform: scale(1.025); }
.brand-grid article > div { padding: 28px; }
.brand-grid span { color: var(--orange); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.brand-grid h2 { margin: 7px 0 12px; font-size: 30px; }
.brand-grid p { margin: 0; color: var(--muted); }

.cert-groups { display: grid; gap: 24px; }
.cert-groups article { display: grid; grid-template-columns: 270px 1fr; align-items: center; gap: 40px; padding: 34px; border: 1px solid var(--line); border-radius: var(--radius); }
.cert-groups h3 { color: var(--blue); }
.cert-groups article > div { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; align-items: center; }
.cert-groups img { width: 100%; max-width: 145px; max-height: 78px; object-fit: contain; filter: grayscale(1); opacity: .78; }
.cert-band { padding: 45px 0; color: #fff; background: var(--blue); }
.cert-band .section-shell { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cert-band strong { text-align: center; font-size: 19px; }

.blog-grid article > a { display: block; height: 100%; }
.blog-grid strong { display: inline-block; margin-top: 18px; color: var(--blue); }
.post-page > header { position: relative; min-height: 650px; overflow: hidden; background: var(--blue-deep); }
.post-page > header::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(9,15,59,.92), rgba(9,15,59,.02) 72%); }
.post-page > header > img { width: 100%; height: 650px; object-fit: cover; }
.post-page > header > div { position: absolute; z-index: 2; right: 0; bottom: 70px; left: 0; width: var(--shell); margin: auto; color: #fff; }
.post-page > header h1 { max-width: 850px; color: #fff; }
.post-page > header a { font-weight: 800; }
.post-content { width: min(790px, calc(100% - 40px)); margin: 0 auto; padding: 85px 0 100px; }
.post-content > p { margin: 0 0 25px; color: #3d4050; font-size: 19px; line-height: 1.8; }
.post-cta { margin-top: 60px; padding: 42px; border-radius: var(--radius); color: #fff; background: var(--blue); }
.post-cta h2 { color: #fff; }
.post-cta a { display: inline-block; margin-top: 12px; padding: 11px 18px; border-radius: 999px; color: var(--blue); background: #fff; font-weight: 800; }

.wholesaler-grid { display: grid; grid-template-columns: 1fr .9fr; gap: 70px; align-items: center; }
.wholesaler-grid > img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.wholesaler-grid > div > p:not(.eyebrow) { color: var(--muted); font-size: 18px; }
.contact-card { display: flex; flex-direction: column; align-items: flex-start; margin-top: 32px; padding: 28px; border-left: 5px solid var(--orange); background: var(--warm); }
.contact-card span { color: var(--green); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.contact-card h3 { margin: 6px 0 8px; color: var(--blue); }
.contact-card a { color: var(--blue); font-weight: 750; }
.not-found { min-height: 65vh; display: grid; align-items: center; text-align: center; }
.not-found p:not(.eyebrow) { margin: 20px auto 34px; color: var(--muted); }
.floating-whatsapp { position: fixed; z-index: 45; right: 24px; bottom: 24px; display: grid; width: 56px; height: 56px; place-items: center; border-radius: 50%; color: #fff; background: #21a366; box-shadow: 0 12px 30px rgba(17,92,53,.28); font-size: 13px; font-weight: 900; }

@media (max-width: 1080px) {
    .page-hero-copy { left: 40px; }
    .brand-grid { grid-template-columns: repeat(2, 1fr); }
    .cert-groups article { grid-template-columns: 220px 1fr; }
    .cert-groups article > div { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 820px) {
    .site-header { backdrop-filter: none; }
    .main-nav {
        position: absolute;
        top: 76px;
        right: 0;
        bottom: auto;
        left: 0;
        min-height: calc(100vh - 76px);
        max-height: calc(100vh - 76px);
        overflow-y: auto;
        background: #fff;
    }
    .nav-group { width: 100%; }
    .nav-group > a { padding-bottom: 6px; }
    .nav-submenu { position: static; width: 100%; padding: 0 0 0 14px; visibility: visible; border: 0; box-shadow: none; opacity: 1; transform: none; }
    .nav-submenu a { padding: 7px 0; color: var(--muted); font-size: 15px; }
    .page-hero, .page-hero.compact { min-height: 520px; }
    .page-hero-copy { right: 25px; left: 25px; }
    .founder-grid, .split-copy, .wholesaler-grid { grid-template-columns: 1fr; gap: 40px; }
    .three-cards, .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .process-grid { grid-template-columns: repeat(2, 1fr); }
    .cert-groups article { grid-template-columns: 1fr; }
    .cert-band .section-shell { grid-template-columns: repeat(2, 1fr); }
    .brand-nav { top: 76px; }
}

@media (max-width: 560px) {
    .page-hero, .page-hero.compact { min-height: 470px; }
    .page-hero-copy h1 { font-size: 43px; }
    .page-hero-copy > p:last-child { font-size: 17px; }
    .three-cards, .feature-grid, .brand-grid, .process-grid { grid-template-columns: 1fr; }
    .three-cards article { min-height: 250px; }
    .cert-groups article { padding: 25px; }
    .cert-groups article > div { grid-template-columns: repeat(2, 1fr); }
    .cert-band .section-shell { grid-template-columns: 1fr; }
    .post-page > header, .post-page > header > img { min-height: 560px; height: 560px; }
    .post-page > header > div { bottom: 42px; }
    .post-cta { padding: 30px; }
    .floating-whatsapp { right: 16px; bottom: 16px; }
}
