/* ─── Base ───────────────────────────────────────────────────────────── */
body {
    background-color: #070707;
    color: #e5e2e1;
}

.bg-alternate {
    background-color: #0f0f0f;
}

/* Fix icon rendering across browsers */
.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}

/* ─── Mobile menu slide animation ────────────────────────────────────── */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}
#mobile-menu.open {
    max-height: 520px;
}

/* Overlay que cubre la página cuando el menú móvil está abierto */
#menu-overlay {
    appearance: none;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

/* Forzar capa propia en el botón hamburguesa para evitar el bug de
   backdrop-filter en iOS Safari que puede romper el hit-testing */
#menu-btn {
    touch-action: manipulation;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transform: translateZ(0);
    position: relative;
    z-index: 1;
}

/* ─── Scroll reveal animations ───────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-up {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── Layout helpers ─────────────────────────────────────────────────── */
.hairline-grid {
    display: grid;
    gap: 1px;
    background-color: #222222;
}
.hairline-grid > * {
    background-color: #161616;
}

/* ─── Interaction utilities ──────────────────────────────────────────── */
.glow-hover:hover {
    background-color: rgba(201, 168, 76, 0.10);
    border-color: rgba(201, 168, 76, 0.22);
}

.text-gold-gradient {
    background: linear-gradient(to right, #e6c364, #e0bc6e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ─── WhatsApp FAB pulse ─────────────────────────────────────────────── */
.fab-pulse {
    animation: pulse-gold 2s infinite;
}
@keyframes pulse-gold {
    0%   { transform: scale(1);   opacity: 1; }
    50%  { transform: scale(1.5); opacity: 0.5; }
    100% { transform: scale(1);   opacity: 1; }
}

/* ─── Hero (home.html) ───────────────────────────────────────────────── */
.hero-bg {
    position: relative;
    background-image: radial-gradient(circle at center, rgba(201, 168, 76, 0.05) 0%, transparent 70%);
}
.hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ─── Ambient background (cursos.html) ───────────────────────────────── */
.ambient-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: -1;
    background: radial-gradient(circle at 50% 0%, rgba(201, 168, 76, 0.05) 0%, transparent 70%);
}
