:root {
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --eucalipto: #65847A;
    --eucalipto-flyout: rgba(101, 132, 122, 0.96);
    --eucalipto-overlay: rgba(95, 126, 116, 0.88);
    --sidebar-w: 106px;
    --topbar-mobile-h: 68px;

    --bg-claro: #FAFAFA;
    --card-claro: #FFFFFF;
    --texto-claro: #111312;
    --subtexto-claro: #666666;
    --borde-claro: #E5E5E5;

    --bg-oscuro: #111312;
    --texto-oscuro: #F5F5F5;
    --subtexto-oscuro: #8E8E8E;
    --borde-oscuro: #222222;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    overflow-x: hidden;
}

body.tema-claro {
    background-color: var(--bg-claro);
    color: var(--texto-claro);
}

body.tema-oscuro {
    background-color: var(--bg-oscuro);
    color: var(--texto-oscuro);
}

/* === BARRA LATERAL VERDE EUCALIPTO (+30% ESCALA UNIFICADA PC) === */
.sidebar-eucalipto {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--sidebar-w);
    background: var(--eucalipto);
    z-index: 90;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 26px 0;
    border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.nav-top-toggle {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #ffffff;
    cursor: pointer;
    opacity: 0.94;
    transition: 0.2s;
}

.nav-top-toggle:hover {
    opacity: 1;
}

.nav-top-toggle svg {
    width: 40px;
    height: 40px;
    stroke: currentColor;
    stroke-width: 1.5;
    fill: none;
}

.nav-centro {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
    align-items: center;
}

.nav-bloque {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
}

.nav-icono-btn {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    border-radius: 14px;
    transition: background 0.2s, color 0.2s, transform 0.18s;
    background: transparent;
    border: none;
    cursor: pointer;
}

.nav-bloque:hover .nav-icono-btn,
.nav-icono-btn.activo {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.nav-icono-btn svg {
    width: 42px;
    height: 42px;
    stroke: #ffffff;
    stroke-width: 1.45;
    fill: none;
}

/* === SUBMENÚ DESPLEGABLE LATERAL === */
.flyout-menu {
    position: absolute;
    left: var(--sidebar-w);
    top: 0;
    min-width: 265px;
    background: var(--eucalipto-flyout);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-left: none;
    padding: 22px 26px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-8px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
    box-shadow: 12px 12px 30px rgba(0, 0, 0, 0.35);
    z-index: 95;
}

.nav-bloque:hover .flyout-menu,
.nav-bloque.abierto .flyout-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.flyout-titulo {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #ffffff;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.24);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flyout-lista {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.flyout-lista a,
.flyout-lista button {
    background: none;
    border: none;
    color: #ffffff;
    text-decoration: none;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: opacity 0.15s, transform 0.15s;
}

.flyout-lista a:hover,
.flyout-lista button:hover {
    opacity: 1;
    transform: translateX(4px);
}

.flyout-lista a::before,
.flyout-lista button::before {
    content: "›";
    font-size: 17px;
    opacity: 0.85;
}

.marca-vertical {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 12px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

/* === CONTENEDOR PRINCIPAL JUNTO A LA BARRA === */
.site-shell {
    margin-left: var(--sidebar-w);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-header {
    display: none;
}

/* === CONTACTO INTERACTIVO === */
.contacto-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.contacto-card {
    width: 100%;
    max-width: 440px;
    background: var(--card-claro);
    border: 1px solid var(--borde-claro);
    border-radius: 16px;
    padding: 32px 28px;
}

.contacto-card h1 {
    font-size: 1.35rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.contacto-desc {
    font-size: 0.88rem;
    color: var(--subtexto-claro);
    margin-bottom: 24px;
    line-height: 1.5;
}

.selector-grupo {
    margin-bottom: 20px;
}

.selector-grupo label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--subtexto-claro);
}

.chips-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.chip {
    background: #F4F4F4;
    border: 1px solid transparent;
    padding: 11px 14px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.88rem;
    color: var(--texto-claro);
    cursor: pointer;
    transition: all 0.2s ease;
}

.chip.activo {
    background: var(--eucalipto);
    color: #FFFFFF;
}

.input-minimal {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--borde-claro);
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
}

.input-minimal:focus {
    border-color: var(--eucalipto);
}

.preview-mensaje {
    background: #F7F7F7;
    padding: 14px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.preview-label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--subtexto-claro);
    margin-bottom: 6px;
}

#texto-preview {
    font-size: 0.86rem;
    line-height: 1.45;
    color: #222222;
}

.btn-wa-principal {
    display: block;
    width: 100%;
    text-align: center;
    background: #111312;
    color: #FFFFFF;
    text-decoration: none;
    padding: 15px;
    border-radius: 12px;
    font-size: 0.92rem;
    font-weight: 500;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn-wa-principal:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

.datos-directos {
    margin-top: 18px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--subtexto-claro);
}

/* === FOOTER === */
.site-footer {
    padding: 28px 20px 36px;
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.55;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.footer-links a {
    color: inherit;
    text-decoration: none;
}

/* === BOTÓN WHATSAPP CRISTALIZADO CON ETIQUETA FIJA === */
.wa-floating-container {
    position: fixed;
    bottom: 22px;
    right: 22px;
    z-index: 65;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.wa-floating-label {
    color: #ffffff;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
    pointer-events: none;
}

body.tema-claro .wa-floating-label {
    color: #111312;
    text-shadow: 0 1px 4px rgba(255, 255, 255, 0.9);
}

.wa-glass-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(101, 132, 122, 0.78);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
    transition: transform 0.25s ease, background 0.25s ease;
}

.wa-glass-btn:hover {
    transform: translateY(-3px) scale(1.04);
    background: var(--eucalipto);
}

/* === ADAPTACIÓN MÓVIL UNIFICADA === */
@media (max-width: 768px) {
    .sidebar-eucalipto {
        position: sticky;
        top: 0;
        bottom: auto;
        width: 100%;
        height: var(--topbar-mobile-h);
        flex-direction: row;
        justify-content: space-between;
        padding: 0 10px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    }

    .nav-top-toggle {
        display: none;
    }

    .nav-centro {
        flex-direction: row;
        width: auto;
        gap: 2px;
    }

    .nav-bloque {
        width: auto;
        position: static;
    }

    .nav-icono-btn {
        width: 46px;
        height: 46px;
        border-radius: 11px;
    }

    .nav-icono-btn svg {
        width: 28px;
        height: 28px;
        stroke-width: 1.5;
    }

    .flyout-menu {
        left: 0;
        right: 0;
        top: var(--topbar-mobile-h);
        min-width: 100%;
        border-left: none;
        border-right: none;
    }

    .marca-vertical {
        writing-mode: horizontal-tb;
        transform: none;
        font-size: 9.5px;
        letter-spacing: 0.14em;
        line-height: 1;
        white-space: nowrap;
        max-width: none;
        padding-right: 4px;
    }

    .site-shell {
        margin-left: 0;
    }

    .wa-floating-container {
        bottom: 18px;
        right: 14px;
        gap: 4px;
    }

    .wa-glass-btn {
        width: 50px;
        height: 50px;
    }
}