/* =========================================
   VARIABLES Y CONFIGURACIÓN GLOBAL
   ========================================= */
:root {
    --primary: #9c4242;
    --primary-dark: #7a3333;
    --primary-light: #fce8e8;
    --bg-body: #ffffff;
    --bg-gray: #f8f9fa;
    --text-main: #2c2c2c;
    --text-light: #666666;
    --border: #e2e2e2;
    --shadow: 0 10px 30px rgba(0,0,0,0.05);
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Lato', sans-serif;
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

html { scroll-behavior: smooth; }

/* =========================================
   NAVEGACIÓN
   ========================================= */
.main-nav {
    position: sticky; top: 0; width: 100%; z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.si {
    height: 50px;
}

.nav-container {
    max-width: 1200px; margin: 0 auto; padding: 1rem 2rem;
    display: flex; justify-content: space-between; align-items: center;
}

.nav-logo-text {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: 0.5px;
}

.nav-menu { display: flex; list-style: none; gap: 2rem; }

.nav-menu a {
    color: var(--text-main); text-decoration: none;
    font-weight: 600; font-size: 0.95rem;
    transition: 0.3s;
}

.nav-menu a:hover { color: var(--primary); }

.nav-reserva {
    background: var(--primary); color: white !important;
    padding: 0.7rem 1.5rem; border-radius: 6px;
    transition: 0.3s;
}

.nav-reserva:hover { background: var(--primary-dark); transform: translateY(-2px); }

.mobile-toggle {
    display: none !important;
}

.nav-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.6);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* =========================================
   HERO / PORTADA
   ========================================= */
.hero {
    height: 65vh;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('img/portada.png');
    background-size: cover; background-position: center;
    background-attachment: fixed;
    display: flex; align-items: center; justify-content: center;
    text-align: center; color: white;
}

.hero-content { padding: 0 20px; }

.hero-content h1 {
    font-family: var(--font-heading); font-size: clamp(2.5rem, 5vw, 4rem);
    text-shadow: 0 4px 10px rgba(0,0,0,0.3); margin-bottom: 1rem;
}

.hero-tagline {
    font-size: 1.1rem; font-weight: 500; letter-spacing: 2px;
    background: var(--primary); padding: 8px 20px;
    display: inline-block; border-radius: 50px;
    text-transform: uppercase;
}

/* =========================================
   ESTRUCTURA DE SECCIONES
   ========================================= */
.content-wrapper { 
    max-width: 1100px; 
    margin: 0 auto; 
    padding: 4rem 20px 0 20px; 
}

.section-card {
    background: white;
    padding: 3rem 0;
    margin-bottom: 4rem;
    position: relative;
    border-bottom: 1px solid var(--border);
}

.section-card:last-of-type {
    margin-bottom: 0 !important;
    padding-bottom: 5rem;
    border-bottom: none;
}

h2 {
    font-family: var(--font-heading); font-size: 2.5rem;
    color: var(--primary); margin-bottom: 1rem;
}

.badge {
    color: #999; text-transform: uppercase;
    font-size: 0.75rem; letter-spacing: 3px; font-weight: bold;
    display: block; margin-bottom: 0.5rem;
}

/* =========================================
   GRID INFORMACIÓN
   ========================================= */
.info-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem; margin-top: 3rem;
}

.info-item {
    text-align: center; 
    padding: 4px !important;
    background: var(--bg-gray); border-radius: 12px;
    border: 1px solid var(--border);
    transition: 0.3s;
    width: 100% !important;
    box-sizing: border-box !important;
}

.info-item:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--primary); }

.info-item i { font-size: 2.2rem; color: var(--primary); margin-bottom: 20px; display: block; }
.info-item span { font-weight: 700; color: var(--text-main); font-size: 1.1rem; }

/* =========================================
   MENÚ DEL DÍA
   ========================================= */
.menu-display {
    margin-top: 2rem; padding: 15px; background: white;
    border: 1px solid var(--border); border-radius: 16px;
    box-shadow: var(--shadow);
    min-height: 300px; display: flex; align-items: center; justify-content: center;
}

.menu-footer {
    margin-top: 1.5rem; color: var(--text-light);
    font-size: 0.95rem; display: flex; align-items: center; gap: 10px;
    background: var(--primary-light); padding: 15px; border-radius: 8px;
}

.menu-footer i { color: var(--primary); }


/* =========================================
   RESEÑAS
   ========================================= */
.google-rating {
    text-align: center;
    margin: 2rem 0;
    padding: 2rem;
    background: var(--bg-gray);
    border-radius: 12px;
}

.google-rating .score { font-size: 3.5rem; font-weight: 800; color: var(--primary); display: block; }
.google-rating .stars { color: #fbbc04; font-size: 1.5rem; margin: 10px 0; }

.stars-small { color: #fbbc04; font-size: 0.8rem; }

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem; /* Añadir margen superior si se carga dinámicamente */
}

.review-item {
    padding: 2rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--shadow);
}

.review-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 1rem; 
}
.stars-small { 
    color: #fbbc04; 
    font-size: 0.8rem; 
}
.review-date { /* Cambiado de .CuandoReseñas para ser más específico */
    color: #777;
    font-size: 0.85em;
}
/* =========================================
   FORMACIÓN
   ========================================= */
.cursos-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
}

.curso-card {
    background: var(--primary-light);
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    transition: 0.3s;
}

.curso-card:hover { transform: translateY(-5px); }
.curso-card i { font-size: 2.5rem; color: var(--primary); margin-bottom: 1.5rem; }
.curso-card h3 { margin-bottom: 10px; color: var(--text-main); }
.ImagenPequena {width: 50%; max-width: 300px;}
.curso-destacado {
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 14px;
}

.curso-card p {
    margin-bottom: 8px;
}

.curso-lista {
    margin-top: 16px;
    display: grid;
    gap: 10px;
    text-align: left;
}

.curso-lista span {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.95rem;
}

.curso-lista i {
    color: var(--primary);
    margin-top: 3px;
}

.btn-escuela {
    margin-top: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: white;
    text-decoration: none;
    font-weight: 700;
    border-radius: 8px;
    padding: 12px 20px;
    transition: 0.25s ease;
}

.btn-escuela:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* =========================================
   CONTACTO
   ========================================= */
.contacto-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 2rem;
}

.social-links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 25px;
}

.social-item {
    padding: 15px;
    border-radius: 8px;
    text-decoration: none;
    color: white;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: 0.3s;
    font-size: 0.9rem;
}

.fb { background: #3b5998; }
.ig { background: #e1306c; }
.tk { background: #000000; }
.wa { background: #25d366; }
.social-item:hover { opacity: 0.85; transform: scale(1.02); }

.contacto-form { display: flex; flex-direction: column; gap: 15px; }

.form-group input, .form-group textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    background: var(--bg-gray);
}

.btn-enviar {
    background: var(--primary);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-enviar:hover { background: var(--primary-dark); box-shadow: 0 5px 15px rgba(156, 66, 66, 0.3); }

#contacto-success {
    background: white;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

#contacto-success i {
    color: var(--primary);
    font-size: 5rem;
    margin-bottom: 20px;
}

#contacto-success h3 {
    font-family: 'Playfair Display', serif; /* O tu fuente de títulos */
    font-size: 2rem;
    color: #333;
    margin-bottom: 10px;
}
/* ==========================================================================
   SECCIÓN CARRUSELL
   ========================================================================== */
.exp-card {
    background: #fff;
    border: 1px solid var(--border, #e0e0e0);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 4px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.exp-header {
    padding: 0.8rem 10px !important;
    margin: 0 !important;
    display: flex;
    align-items: center;
    gap: 15px;
    background: #fff;
    cursor: pointer;
    z-index: 5;
}

.icon-circle {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    background: var(--primary-light, #ffe5e5);
    color: var(--primary, #d32f2f);
    display: grid !important;
    place-items: center !important;
    padding: 0 !important;
    line-height: 0 !important;
    transition: all 0.3s ease;
}

.icon-circle i,
.nav-btn i,
.toggle-indicator i {
    display: grid !important;
    place-items: center !important;
    width: 1em !important;
    height: 1em !important;
    line-height: 1 !important;
    margin: 0 !important;
    position: static !important;
    transform: none !important;
}

.exp-header:hover .icon-circle,
.exp-card.open .icon-circle {
    background: var(--primary, #d32f2f) !important;
}

.exp-header:hover .icon-circle i,
.exp-card.open .icon-circle i {
    color: #ffffff !important;
}

.exp-header span {
    font-weight: 700;
    font-size: 1.1rem;
    flex-grow: 1;
    color: #333;
    transition: color 0.3s ease;
}

.exp-card.open .exp-header span {
    color: var(--primary, #d32f2f);
}

.toggle-indicator {
    margin-left: auto;
    color: #ccc;
    transition: transform 0.4s ease;
    display: grid !important;
    place-items: center !important;
    width: 24px;
    height: 24px;
    padding: 0 !important;
    line-height: 0 !important;
}

.exp-card.open .toggle-indicator {
    transform: rotate(45deg);
    color: var(--primary, #d32f2f);
}

.exp-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    background: #fff;
}

.exp-card.open .exp-content {
    opacity: 1;
    padding-bottom: 1.5rem !important;
}

.carousel-container {
    position: relative;
    width: 100% !important;
    max-width: 100% !important;
    aspect-ratio: 16 / 10;
    max-height: 450px;
    background: #1a1a1a !important;
    border-radius: 0 0 12px 12px !important;
    overflow: hidden;
    margin: 0 !important;
}

.carousel-track {
    display: flex !important;
    height: 100%;
    width: 100%;
    transition: transform 0.5s ease-in-out !important;
}

.carousel-slide {
    flex: 0 0 100% !important;
    width: 100% !important;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
}

.carousel-slide img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    display: block;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px !important;
    height: 38px !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 20;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;
    transition: all 0.2s ease;
    display: grid !important;
    place-items: center !important;
    padding: 0 !important;
    line-height: 0 !important;
}

.nav-btn.prev { left: 4px !important; }
.nav-btn.next { right: 4px !important; }

.nav-btn:hover {
    background: var(--primary, #d32f2f) !important;
    transform: translateY(-50%) scale(1.05) !important;
}

.nav-btn:hover i {
    color: #ffffff !important;
}

.carousel-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 20;
}

.dot {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: #fff;
    width: 16px;
    border-radius: 10px;
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
    background: #1a1a1a;
    color: white;
    padding: 4rem 0;
    margin: 0;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    display: block;
    box-sizing: border-box;
    text-align: center;
}

.footer-brand,
.footer-contact {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    box-sizing: border-box;
}

.footer-brand img { height: 50px; opacity: 0.8; margin-bottom: 1rem; }
.footer-brand h3 { margin-bottom: 0.5rem; }
.footer-brand p { color: #888; letter-spacing: 2px; text-transform: uppercase; font-size: 0.8rem; }

.footer-contact {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-contact p {
    color: #ccc;
    margin: 0;
}

.footer-contact i {
    color: var(--primary);
    width: 25px;
}
.footer-contact p {
    color: #ccc;
    margin: 0.3rem 0;
    font-size: 0.9rem;
}

.footer-link {
    color: var(--primary);
    text-decoration: none;
    transition: 0.3s;
}

.footer-link:hover {
    text-decoration: underline;
    color: var(--primary-dark);
}
.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-brand, .footer-contact {
    margin: 0 !important;
    text-align: left;
}

.footer-credits {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid #333;
    font-size: 0.8rem;
    color: #666;
}

.footer-credits a {
    color: var(--primary);
    text-decoration: none;
    font-weight: bold;
}
.footer {
    overflow: visible !important; /* Vital para que el tooltip se vea */
}

.footer-container {
    overflow: visible !important;
}

.footer-credits {
    position: relative;
    overflow: visible !important;
}
/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 850px) {
    .contacto-wrapper { grid-template-columns: 1fr; gap: 2rem; }
    .section-card { padding: 2rem 0; }
}

@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.8rem; }
    .booking-form { flex-direction: column; padding: 1.5rem; }
    .whatsapp-card { flex-direction: column; gap: 20px; text-align: center; }
    .info-grid { grid-template-columns: 1fr; }

    .mobile-toggle {
        display: flex !important;
        background: none;
        border: none;
        color: var(--primary);
        cursor: pointer;
        width: 50px;
        height: 50px;
        align-items: center;
        justify-content: center;
        font-size: 2rem;
        z-index: 1100;
    }

    .nav-container {
        padding: 0.8rem 1.5rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .nav-menu {
        display: flex !important;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        max-width: 350px;
        height: 100vh;
        background: #ffffff;
        padding: 6rem 1.5rem 2rem 1.5rem;
        box-shadow: 5px 0 25px rgba(0,0,0,0.2);
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        gap: 8px;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        display: block;
        width: 100%;
        padding: 1.5rem 1.2rem;
        font-size: 1.4rem;
        font-weight: 700;
        color: var(--text-main);
        text-decoration: none;
        border-radius: 10px;
        border-bottom: 1px solid var(--bg-gray);
    }

    .nav-menu a:active {
        background: var(--primary-light);
    }
}
.phone-mobile {
    background: #25d366;
    display: none !important; 
}
@media (max-width: 768px) {
    .phone-mobile {
        display: flex !important;
    }

    .footer-container {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .footer-brand, .footer-contact {
        text-align: center;
    }
}

/* =========================================
    AJUSTES
   ========================================= */
.tel-link {
    color: inherit;
    text-decoration: none;
    transition: 0.3s;
}

.tel-link:hover {
    opacity: 0.8;
}
/* =========================================
   TOOLTIP PROGRAMADOR
   ========================================= */
.custom-tooltip {
  position: fixed;
  display: none;
  background: #1a1a1a;
  color: white;
  border: 1px solid var(--primary);
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  font-size: 14px;
  z-index: 10000;
  pointer-events: none;
  max-width: 250px;
  margin: 0; 
}
