/* ============================================
   RESET Y BASE
   ============================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: #ffffff;
    color: #1a1a1a;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

/* ============================================
   CONTENEDOR
   ============================================ */
.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ============================================
   CABECERA
   ============================================ */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    padding: 0.7rem 0;
    transition: box-shadow 0.3s ease;
}

.header:hover {
    box-shadow: 0 2px 20px rgba(0,0,0,0.04);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}

.logo-img {
    height: 55px;
    width: auto;
    display: block;
}

.logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #1a1a1a;
}
.logo-text span {
    font-weight: 300;
    color: #6b7a7f;
}

.nav-links {
    display: flex;
    gap: 2.2rem;
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a {
    padding: 0.4rem 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.25s ease, color 0.25s ease;
    color: #2d3a3f;
}
.nav-links a:hover {
    border-bottom-color: #000;
    color: #000;
}

/* Menú hamburguesa */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
}
.menu-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: #000;
    transition: 0.2s;
}

/* ============================================
   BOTONES - VERSIÓN MEJORADA Y VISIBLE
   ============================================ */
.btn {
    display: inline-block;
    padding: 0.9rem 2.8rem;
    font-weight: 700;
    font-size: 1.05rem;
    border-radius: 60px;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    font-family: inherit;
    line-height: 1.3;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

/* Botón principal: fondo oscuro, texto blanco SIEMPRE */
.btn-primary {
    background: #000000;  /* Negro puro */
    color: #ffffff;       /* Texto blanco */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
    background: #222222;  /* Gris muy oscuro al pasar el ratón */
    color: #ffffff;       /* El texto SIEMPRE blanco */
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-outline {
    background: transparent;
    color: #1a1a1a;
    border: 2px solid #1a1a1a;
}
.btn-outline:hover {
    background: #1a1a1a;
    color: #ffffff;
    transform: translateY(-2px);
}

/* ============================================
   SECCIONES
   ============================================ */
.section {
    padding: 5rem 0;
    border-bottom: 1px solid #f0f0f0;
}
.section:last-of-type {
    border-bottom: none;
}

.section-title {
    font-size: 2.4rem;
    font-weight: 300;
    letter-spacing: -0.02em;
    text-align: center;
    margin-bottom: 2rem;
}
.section-title strong {
    font-weight: 600;
}

/* ============================================
   HERO
   ============================================ */
.hero {
    padding: 4rem 0 5rem;
    background: linear-gradient(135deg, #fafafa 0%, #f0f2f1 100%);
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(150, 200, 180, 0.08), transparent 50%);
    pointer-events: none;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3.4rem;
    font-weight: 300;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 1rem;
}
.hero-content h1 strong {
    font-weight: 600;
}

.hero-descripcion {
    font-size: 1.15rem;
    color: #4a5a60;
    max-width: 560px;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.hero-illustration {
    width: 100%;
    height: 280px;
    background: radial-gradient(circle at 30% 40%, rgba(200, 230, 215, 0.3), transparent 70%);
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* ============================================
   SOBRE NOSOTROS
   ============================================ */
.sobre-texto {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: #2d3a3f;
    line-height: 1.9;
}
.sobre-texto p + p {
    margin-top: 1.2rem;
}

/* ============================================
   CLASES
   ============================================ */
.clases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.clase-card {
    background: #ffffff;
    padding: 2rem 1.5rem;
    border-radius: 24px;
    text-align: center;
    border: 1px solid #f0f0f0;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}
.clase-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.06);
    border-color: #e0e8e5;
}

.clase-icon {
    font-size: 2.6rem;
    margin-bottom: 0.8rem;
    display: block;
}

.clase-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}
.clase-card p {
    color: #4a5a60;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ============================================
   HORARIOS
   ============================================ */
.horario-wrapper {
    overflow-x: auto;
    margin-top: 1rem;
}

.horario-tabla {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
    min-width: 400px;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
}

.horario-tabla th {
    background: #f8faf9;
    padding: 1rem 0.8rem;
    font-weight: 600;
    color: #1a1a1a;
    border-bottom: 2px solid #eaeaea;
    text-align: center;
}
.horario-tabla td {
    padding: 0.9rem 0.5rem;
    border-bottom: 1px solid #f0f0f0;
    text-align: center;
}
.horario-tabla td:first-child {
    font-weight: 500;
}
.horario-tabla .cerrado {
    color: #a0aeb5;
    font-weight: 400;
}

.horario-estado {
    text-align: center;
    margin-top: 1.2rem;
    font-size: 0.95rem;
    color: #4a5a60;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.estado-indicador {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #22c55e;
}
.estado-indicador.cerrado {
    background: #ef4444;
}

/* ============================================
   OPINIONES
   ============================================ */
.trustindex-wrapper {
    margin-top: 1rem;
}

.opiniones-footer {
    text-align: center;
    margin-top: 1.8rem;
    color: #4a5a60;
    font-size: 1rem;
}
.opiniones-footer strong {
    color: #1a1a1a;
}

/* ============================================
   FAQ (Acordeón)
   ============================================ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.faq-item {
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 16px;
    overflow: hidden;
    transition: border-color 0.2s;
}
.faq-item:hover {
    border-color: #d0d8d5;
}

.faq-pregunta {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    color: #1a1a1a;
    text-align: left;
    transition: background 0.2s;
}
.faq-pregunta:hover {
    background: #fafcfb;
}
.faq-pregunta .faq-icon {
    transition: transform 0.3s ease;
    color: #6b7a7f;
    font-size: 0.9rem;
}
.faq-pregunta[aria-expanded="true"] .faq-icon {
    transform: rotate(180deg);
}

.faq-respuesta {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 1.5rem;
}
.faq-respuesta.open {
    max-height: 300px;
    padding: 0 1.5rem 1.2rem;
}
.faq-respuesta p {
    color: #4a5a60;
    line-height: 1.7;
}
.faq-respuesta strong {
    color: #1a1a1a;
}

/* ============================================
   CONTACTO
   ============================================ */
.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 1.5rem;
}

.contacto-info p {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    font-size: 1.05rem;
    color: #2d3a3f;
}
.contacto-info a {
    color: inherit;
    transition: color 0.2s;
}
.contacto-info a:hover {
    color: #000;
}

.contacto-icon {
    width: 1.4rem;
    color: #6b7a7f;
    font-size: 1rem;
}

.contacto-mapa {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.mapa-acciones {
    margin-top: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn-como-llegar {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1.6rem;
    background: #1a1a1a;
    color: #fff;
    border-radius: 60px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s;
    border: 1.5px solid #1a1a1a;
}
.btn-como-llegar:hover {
    background: #000;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.btn-como-llegar i {
    font-size: 1rem;
}

.dropdown-compartir {
    position: relative;
    display: inline-block;
}

.btn-compartir {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1.6rem;
    background: #1a1a1a;
    color: #fff;
    border-radius: 60px;
    font-weight: 500;
    font-size: 0.9rem;
    border: 1.5px solid #1a1a1a;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}
.btn-compartir:hover {
    background: #000;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.btn-compartir i {
    font-size: 1rem;
}

.dropdown-menu {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    min-width: 220px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.04);
    padding: 0.5rem 0;
    z-index: 999999 !important;
    display: none !important;
    overflow: visible !important;
}
.dropdown-menu.open {
    display: block !important;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.7rem 1.2rem;
    color: #1a1a1a;
    font-size: 0.9rem;
    font-weight: 500;
    border: none;
    background: none;
    width: 100%;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: background 0.15s;
}
.dropdown-item:hover {
    background: #f5f7f6;
}
.dropdown-item i {
    width: 1.2rem;
    text-align: center;
    font-size: 1.1rem;
    color: #6b7a7f;
}
.dropdown-item[data-share="whatsapp"] i { color: #25D366; }
.dropdown-item[data-share="twitter"] i { color: #000; }
.dropdown-item[data-share="telegram"] i { color: #0088cc; }
.dropdown-item[data-share="facebook"] i { color: #1877f2; }
.dropdown-item[data-share="email"] i { color: #ea4335; }
.dropdown-item[data-share="copiar"] i { color: #6b7a7f; }

.copiar-mensaje {
    display: block;
    padding: 0.7rem 1.2rem;
    font-size: 0.85rem;
    color: #22c55e;
    font-weight: 500;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s;
    background: #f9fbfa;
    border-top: 1px solid #eaeaea;
}
.copiar-mensaje.visible {
    opacity: 1;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: #fafcfb;
    padding: 3rem 0 1.5rem;
    border-top: 1px solid #eaeaea;
    margin-top: 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eaeaea;
}

.logo-footer {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    margin-bottom: 0.8rem;
}
.logo-footer-img {
    height: 40px;
    width: auto;
}
.logo-footer-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
}
.logo-footer-text span {
    font-weight: 300;
    color: #6b7a7f;
}

.footer-desc {
    color: #4a5a60;
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 280px;
}

.footer-col h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.8rem;
}
.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.footer-col ul li {
    font-size: 0.9rem;
    color: #4a5a60;
}
.footer-col ul li i {
    width: 1.2rem;
    color: #6b7a7f;
}
.footer-col ul li a {
    transition: color 0.2s;
}
.footer-col ul li a:hover {
    color: #000;
}

.footer-socials {
    display: flex;
    gap: 1rem;
}
.footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f0f2f1;
    color: #1a1a1a;
    transition: all 0.2s;
    font-size: 1.1rem;
}
.footer-socials a:hover {
    background: #1a1a1a;
    color: #fff;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    font-size: 0.85rem;
    color: #6b7a7f;
}
.footer-bottom span {
    font-weight: 500;
    color: #1a1a1a;
}

/* ============================================
   BOTÓN CONTACTO - RESERVA TU CLASE (MEJORADO)
   ============================================ */
.contacto-info .btn-primary {
    background: #000000 !important;
    color: #ffffff !important;
    font-size: 1.1rem !important;
    padding: 1rem 2.8rem !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: 60px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    display: inline-block;
    width: auto;
    min-width: 220px;
    text-align: center;
    border: none;
    cursor: pointer;
}

.contacto-info .btn-primary:hover {
    background: #1a1a1a !important;
    color: #ffffff !important;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
}

/* Ajuste para móviles */
@media (max-width: 480px) {
    .contacto-info .btn-primary {
        font-size: 1rem !important;
        padding: 0.9rem 1.8rem !important;
        min-width: 100%;
        width: 100%;
        max-width: 300px;
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-descripcion {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-illustration {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        padding: 1.5rem;
        border-bottom: 1px solid #eee;
        box-shadow: 0 12px 24px rgba(0,0,0,0.04);
        z-index: 200;
    }
    .nav.open {
        display: block;
    }
    .nav-links {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }

    .hero h1 {
        font-size: 2.6rem;
    }

    .contacto-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    .footer-col:first-child {
        grid-column: span 2;
    }

    .horario-tabla {
        font-size: 0.9rem;
        min-width: 100%;
    }
    .horario-tabla th,
    .horario-tabla td {
        padding: 0.6rem 0.3rem;
    }

    .dropdown-menu {
        min-width: 280px !important;
        max-width: 90vw !important;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .clases-grid {
        grid-template-columns: 1fr;
    }
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    .btn {
        width: 100%;
        max-width: 300px;
        font-size: 1rem;
        padding: 0.9rem 1.8rem;
    }
    .logo-img {
        height: 40px;
    }
    .logo-text {
        font-size: 1.2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .footer-col:first-child {
        grid-column: span 1;
    }

    .mapa-acciones {
        flex-direction: column;
        align-items: stretch;
    }
    .btn-como-llegar,
    .btn-compartir {
        justify-content: center;
        width: 100%;
    }

    .dropdown-item {
        font-size: 0.85rem;
        padding: 0.65rem 1rem;
    }
}