/* ==========================================================
   CLEMIX · Estilos compartidos (todas las páginas)
   ========================================================== */
*,*::before,*::after { margin:0; padding:0; box-sizing:border-box; }

:root {
    --gold: #C9A961;
    --gold-light: #E0C68A;
    --gold-dark: #8B6F3D;
    --gold-faint: rgba(201,169,97,0.12);
    --gradient-gold: linear-gradient(135deg, #C9A961 0%, #8B6F3D 100%);
    --bg: #0A0A0A;
    --bg-alt: #111111;
    --bg-soft: #161616;
    --surface: rgba(255,255,255,0.02);
    --border: rgba(201,169,97,0.15);
    --border-soft: rgba(255,255,255,0.06);
    --text: #FFFFFF;
    --text-muted: rgba(255,255,255,0.68);
    --text-subtle: rgba(255,255,255,0.48);
    --font: 'Helvetica Neue', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    --container: 1320px;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font);
    font-weight: 300;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}
img, video, svg { max-width: 100%; }
img { height: auto; }
h1,h2,h3,h4,h5,h6 { font-weight: 300; letter-spacing: -0.02em; line-height: 1.2; }
::selection { background: var(--gold); color: var(--bg); }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 4px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.sr-only {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
    position: absolute; left: 16px; top: -60px; z-index: 2000;
    background: var(--gold); color: var(--bg); padding: 10px 16px; text-decoration: none; font-size: 14px;
}
.skip-link:focus { top: 12px; }

.gradient-text {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 400;
}

/* Etiqueta superior de títulos (sin guión) */
.eyebrow {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    display: inline-block;
}

/* ───── NAVBAR ───── */
.site-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    padding: 22px 0;
    background: rgba(10,10,10,0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    transition: padding 0.4s var(--ease), background 0.4s var(--ease), border-color 0.4s var(--ease);
    border-bottom: 1px solid transparent;
}
.site-nav.scrolled {
    padding: 14px 0;
    background: rgba(10,10,10,0.96);
    border-bottom-color: var(--border);
}
.nav-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}
.site-nav .logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.site-nav .logo img {
    height: 48px;
    width: auto;
    display: block;
    transition: height 0.4s var(--ease), transform 0.4s var(--ease);
}
.site-nav.scrolled .logo img { height: 40px; }
.site-nav .logo:hover img { transform: scale(1.04); }

.nav-menu {
    display: flex;
    gap: 40px;
    list-style: none;
    align-items: center;
}
.nav-item { position: relative; }
.nav-link {
    color: var(--text);
    text-decoration: none;
    padding: 10px 0;
    font-weight: 300;
    font-size: 15px;
    letter-spacing: 0.03em;
    transition: color 0.3s var(--ease);
    position: relative;
    background: none;
    border: 0;
    font-family: var(--font);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 1px;
    background: var(--gold);
    transition: width 0.3s var(--ease);
}
.nav-link:hover, .nav-link.active { color: var(--gold); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link .chev { width: 10px; height: 7px; display: block; flex-shrink: 0; position: relative; top: 1px; transition: transform 0.3s var(--ease); }
button.nav-link { line-height: 1.6; -webkit-appearance: none; appearance: none; }
.has-dropdown:hover .chev, .has-dropdown.open .chev { transform: rotate(180deg); }

.nav-cta {
    color: var(--bg);
    background: var(--gold);
    border: 1px solid var(--gold);
    padding: 11px 22px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s var(--ease);
    white-space: nowrap;
}
.nav-cta:hover { background: transparent; color: var(--gold); }

/* Dropdown (mega menú 2 columnas) */
.has-dropdown > .nav-link::before {
    content: '';
    position: absolute;
    top: 100%; left: -30px; right: -30px;
    height: 30px;
}
.dropdown {
    position: absolute;
    top: calc(100% + 22px);
    left: -40px;
    background: rgba(10,10,10,0.98);
    border: 1px solid var(--border);
    width: 600px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
    padding: 22px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-col + .dropdown-col { border-left: 1px solid var(--border-soft); }
.dropdown-title {
    display: block;
    padding: 4px 28px 12px;
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-subtle);
}
.dropdown-item {
    display: block;
    padding: 11px 28px;
    color: rgba(255,255,255,0.82);
    text-decoration: none;
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 0.02em;
    border-left: 2px solid transparent;
    transition: all 0.3s var(--ease);
}
.dropdown-item:hover, .dropdown-item.active {
    color: var(--gold);
    background: rgba(201,169,97,0.05);
    border-left-color: var(--gold);
}
.dropdown-item small {
    display: block;
    font-size: 10.5px;
    color: var(--text-subtle);
    letter-spacing: 0.06em;
    margin-top: 3px;
    text-transform: uppercase;
    font-weight: 400;
}
.dropdown-item .new {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 7px;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--bg);
    background: var(--gold);
    vertical-align: middle;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
    z-index: 1001;
}
.menu-toggle span {
    display: block;
    width: 26px; height: 1.5px;
    background: var(--text);
    transition: all 0.3s var(--ease);
}
.menu-toggle.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ───── BOTONES ───── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 17px 40px;
    font-weight: 400;
    font-size: 13px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.4s var(--ease);
    border: 1px solid transparent;
    cursor: pointer;
    position: relative;
    font-family: var(--font);
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-primary { background: var(--gold); color: var(--bg); border-color: var(--gold); }
.btn-primary:hover { background: transparent; color: var(--gold); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(201,169,97,0.2); }
.btn-ghost { background: transparent; color: var(--text); border-color: rgba(255,255,255,0.3); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--gold); border-color: var(--gold); }
.btn-outline:hover { background: var(--gold); color: var(--bg); }
.btn-whatsapp { background: #25D366; color: #0A0A0A; border-color: #25D366; font-weight: 500; }
.btn-whatsapp:hover { background: transparent; color: #25D366; transform: translateY(-2px); }

/* ───── SECCIONES BASE ───── */
section { padding: 130px 40px; position: relative; }
.container { max-width: var(--container); margin: 0 auto; }
.section-head {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 80px;
}
.section-head .eyebrow { margin-bottom: 24px; }
.section-head h2 {
    font-size: clamp(34px, 4.5vw, 56px);
    font-weight: 200;
    margin-bottom: 22px;
    letter-spacing: -0.03em;
}
.section-head p {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 620px;
    margin: 0 auto;
    font-weight: 300;
}

/* ───── HERO DE PÁGINAS INTERNAS ───── */
.page-hero {
    position: relative;
    min-height: 78vh;
    padding: 200px 40px 130px;
    display: flex;
    align-items: center;
    background: var(--bg);
    border-bottom: 1px solid var(--border-soft);
    overflow: hidden;
}
.page-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    background-size: cover;
    background-position: center;
    z-index: 0;
}
/* Filtro negro suave: la imagen se ve, el texto se lee */
.page-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 60% at 50% 50%, rgba(10,10,10,0.5) 0%, rgba(10,10,10,0) 78%),
        linear-gradient(180deg, rgba(10,10,10,0.55) 0%, rgba(10,10,10,0.45) 45%, rgba(10,10,10,0.65) 82%, var(--bg) 100%);
    z-index: 1;
}
.page-hero-inner {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}
.page-hero .eyebrow { margin-bottom: 26px; text-shadow: 0 1px 12px rgba(0,0,0,0.6); }
.page-hero h1 {
    font-size: clamp(42px, 6.5vw, 86px);
    font-weight: 200;
    letter-spacing: -0.03em;
    line-height: 1.08;
    margin-bottom: 24px;
    text-shadow: 0 2px 30px rgba(0,0,0,0.55);
}
.page-hero p {
    font-size: clamp(15px, 1.5vw, 18px);
    color: rgba(255,255,255,0.88);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.75;
    text-shadow: 0 1px 16px rgba(0,0,0,0.7);
}
.page-hero-actions { margin-top: 46px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Migas de pan */
.breadcrumb {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    margin-bottom: 22px;
}
.breadcrumb a { color: rgba(255,255,255,0.75); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb li + li::before { content: '/'; margin-right: 8px; color: var(--gold); }

/* ───── FILOSOFÍA ───── */
.philosophy-quote {
    padding: 110px 40px;
    text-align: center;
    background: var(--bg);
    border-top: 1px solid var(--border-soft);
    position: relative;
    overflow: hidden;
}
.philosophy-quote::before {
    content: "";
    position: absolute;
    top: 50%; left: 50%;
    width: 700px; height: 400px;
    background: radial-gradient(ellipse, var(--gold-faint) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
}
.philosophy-quote .pq-inner { max-width: 900px; margin: 0 auto; position: relative; }
.philosophy-quote .eyebrow { margin-bottom: 24px; }
.philosophy-quote blockquote { font-size: clamp(28px, 3.8vw, 48px); font-weight: 200; line-height: 1.2; letter-spacing: -0.02em; }
.philosophy-quote blockquote .accent { color: var(--gold); font-weight: 300; font-style: italic; }

/* ───── CTA FINAL ───── */
.cta-band {
    padding: 130px 40px;
    background: var(--bg-alt);
    text-align: center;
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--border-soft);
}
.cta-band::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 800px; height: 500px;
    background: radial-gradient(ellipse, var(--gold-faint) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
}
.cta-band-inner { max-width: 820px; margin: 0 auto; position: relative; }
.cta-band h2 { font-size: clamp(32px, 4.5vw, 54px); font-weight: 200; margin-bottom: 22px; letter-spacing: -0.03em; }
.cta-band p { font-size: 16px; color: var(--text-muted); margin-bottom: 40px; line-height: 1.75; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ───── FOOTER ───── */
.site-footer {
    background: var(--bg);
    border-top: 1px solid var(--border-soft);
    padding: 100px 40px 40px;
}
.footer-grid {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 70px;
}
.footer-brand img { height: 52px; width: auto; margin-bottom: 24px; display: block; }
.footer-brand p { color: var(--text-muted); font-size: 14px; line-height: 1.75; max-width: 340px; }
.footer-title {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 24px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; color: var(--text-muted); font-size: 14px; }
.footer-col a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s var(--ease);
}
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
    max-width: var(--container);
    margin: 0 auto;
    padding-top: 30px;
    border-top: 1px solid var(--border-soft);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 13px;
    color: var(--text-subtle);
}
.footer-bottom a { color: var(--text-subtle); text-decoration: none; }
.footer-bottom a:hover { color: var(--gold); }
.social-links { display: flex; gap: 14px; margin-top: 18px; }
.social-links a {
    width: 38px; height: 38px;
    border: 1px solid var(--border-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.3s var(--ease);
}
.social-links a:hover { border-color: var(--gold); color: var(--gold); }
.social-links svg { width: 16px; height: 16px; }

/* ───── WHATSAPP FLOTANTE ───── */
.whatsapp-float {
    position: fixed;
    bottom: 28px; right: 28px;
    width: 58px; height: 58px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    box-shadow: 0 8px 28px rgba(37,211,102,0.35);
    transition: transform 0.3s var(--ease);
}
.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float svg { width: 30px; height: 30px; }

/* ───── ANIMACIONES ───── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: translateY(0); }
}
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ───── RESPONSIVE ───── */
@media (max-width: 1180px) {
    .nav-menu { gap: 28px; }
    .nav-cta { display: none; }
}
@media (max-width: 1100px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 900px) {
    section, .philosophy-quote, .cta-band { padding: 90px 24px; }
    .page-hero { min-height: 70vh; padding: 140px 24px 90px; }
    .nav-container { padding: 0 24px; }
    .site-nav .logo img { height: 42px; }
    .site-nav.scrolled .logo img { height: 36px; }
    .site-nav, .dropdown { backdrop-filter: none; -webkit-backdrop-filter: none; }
    .site-nav { background: rgba(10,10,10,0.95); }
    .site-nav.scrolled { background: rgba(10,10,10,0.98); }

    .nav-menu {
        position: fixed;
        top: 0; right: -100%;
        width: 88%; max-width: 400px;
        height: 100vh; height: 100dvh;
        background: var(--bg);
        flex-direction: column;
        justify-content: flex-start;
        gap: 0;
        padding: 96px 28px 40px;
        border-left: 1px solid var(--border);
        transition: right 0.4s var(--ease);
        overflow-y: auto;
        align-items: stretch;
    }
    .nav-menu.active { right: 0; }
    .nav-menu .nav-item { width: 100%; border-bottom: 1px solid var(--border-soft); }
    .nav-menu .nav-link { display: flex; width: 100%; justify-content: space-between; padding: 18px 0; font-size: 16px; }
    .nav-menu .nav-link::after, .has-dropdown > .nav-link::before { display: none; }
    .nav-menu .nav-item-cta { border-bottom: 0; padding-top: 24px; }
    .nav-menu .nav-item-cta .nav-cta { display: block; text-align: center; padding: 16px; }
    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
        border: none;
        width: auto;
        padding: 0 0 14px 0;
        display: none;
        grid-template-columns: 1fr;
    }
    .has-dropdown:hover .dropdown { display: none; }
    .has-dropdown.open .dropdown, .has-dropdown.open:hover .dropdown { display: grid; }
    .dropdown-col + .dropdown-col { border-left: 0; margin-top: 10px; }
    .dropdown-title { padding: 6px 14px 8px; }
    .dropdown-item { padding: 10px 14px; font-size: 14px; }
    .menu-toggle { display: flex; }
    .menu-backdrop {
        position: fixed; inset: 0; background: rgba(0,0,0,0.55);
        opacity: 0; visibility: hidden; transition: opacity 0.3s; z-index: 999;
    }
    .menu-backdrop.active { opacity: 1; visibility: visible; }

    .footer-grid { grid-template-columns: 1fr; gap: 40px; margin-bottom: 50px; }
    .footer-brand img { height: 44px; }
    .footer-bottom { flex-direction: column; text-align: center; }

    .whatsapp-float { width: 52px; height: 52px; bottom: 20px; right: 20px; }
    .whatsapp-float svg { width: 26px; height: 26px; }
}
@media (min-width: 901px) {
    .nav-item-cta { display: none; }
    .menu-backdrop { display: none; }
}
@media (max-width: 420px) {
    .section-head h2 { font-size: 30px; }
    .btn { padding: 16px 28px; }
}
