/* --- RESET Y VARIABLES GLOBALES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* CAMBIO: Paleta de colores actualizada al Azul Institucional */
    --color-primario: #003057;     /* Azul Marino Profundo */
    --color-acento: #4a7a9f;       /* Azul más claro para efectos */
    --color-blanco: #ffffff;
    
    --color-fondo: #f9f9f9;        /* Fondo casi blanco, muy limpio */
    --color-texto: #333333;        /* Gris oscuro para lectura */
    --color-gris-claro: #e0e0e0;
    --color-gris-texto: #666666;
    
    /* Usamos el mismo azul primario para los botones de acción */
    --color-boton-oscuro: var(--color-primario); 
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--color-texto);
    background-color: var(--color-fondo);
    overflow-x: hidden;
    padding-top: 120px; /* Espacio para el header fijo */
}

/* =========================================
   ESTILOS DEL HEADER (Actualizado estilo "Indira Gandhi")
========================================= */
header {
    /* CAMBIO: Fondo blanco */
    background-color: var(--color-blanco);
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    /* CAMBIO: Sombra sutil */
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.logo-container {
    /* CAMBIO: Fondo transparente y sin bordes */
    background-color: transparent;
    width: 130px; 
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.school-name {
    font-size: 1.2rem;
    /* CAMBIO: Texto en Azul Primario */
    color: var(--color-primario);
    font-weight: 600;
    margin-right: auto;
    margin-left: 20px;
}

/* Botón del menú limpio */
.menu-btn {
    background-color: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    /* CAMBIO: Texto en Azul Primario */
    color: var(--color-primario);
    padding: 0;
    font-weight: 600;
    transition: color 0.3s;
}
.menu-btn:hover { 
    color: var(--color-acento);
}


/* =========================================
   ESTILOS DE LA PÁGINA DE RESERVA
========================================= */

/* Contenedor Principal */
.booking-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* Títulos Principales */
.booking-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primario); /* Título en azul también */
    margin-bottom: 20px;
}

.booking-subtitle-container {
    border-bottom: 1px solid #ccc; /* Línea separadora */
    margin-bottom: 50px;
}

.booking-subtitle {
    font-size: 1.1rem;
    color: var(--color-gris-texto);
    margin-bottom: 20px;
}

/* Grid Principal (2 Columnas) */
.booking-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr; /* La columna del calendario es un poco más ancha */
    gap: 80px; /* Espacio grande entre columnas */
}

.section-heading {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 25px;
    color: var(--color-primario);
}


/* --- COLUMNA IZQUIERDA: CALENDARIO --- */
.calendar-header-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 20px;
}

.timezone-info {
    font-size: 0.9rem;
    color: var(--color-gris-texto);
}

/* Widget del Calendario */
.calendar-widget {
    background-color: transparent;
}

.month-navigator {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-primario);
}

.nav-arrow {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-primario);
    cursor: pointer;
}

/* Grid del Calendario (Días) */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr); /* 7 días de la semana */
    gap: 10px;
    text-align: center;
}

.weekday {
    font-size: 0.9rem;
    color: var(--color-gris-texto);
    font-weight: 500;
    margin-bottom: 15px;
}

.day-cell {
    aspect-ratio: 1 / 1; /* Cuadrados perfectos */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--color-texto);
    cursor: pointer;
    border-radius: 5px; /* Bordes ligeramente redondeados */
    transition: all 0.2s;
}

.day-cell:hover:not(.selected):not(.faded) {
    background-color: rgba(0, 48, 87, 0.1); /* Azul muy suave al pasar mouse */
}

/* Días de otros meses */
.day-cell.faded {
    color: #ccc;
}

/* Día Seleccionado */
.day-cell.selected {
    background-color: var(--color-boton-oscuro);
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 48, 87, 0.3);
}


/* --- COLUMNA DERECHA: HORARIOS Y DETALLES --- */
.booking-col-right {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

/* Sección de Horarios */
.availability-heading {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-gris-texto);
    margin-bottom: 20px;
}

.time-buttons-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columnas de botones */
    gap: 15px;
}

.time-btn {
    padding: 12px;
    border: 1px solid #ccc;
    background-color: transparent;
    color: var(--color-texto);
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
    border-radius: 4px;
}

.time-btn:hover:not(.active) {
    border-color: var(--color-boton-oscuro);
    color: var(--color-primario);
}

/* Botón de hora seleccionado */
.time-btn.active {
    background-color: var(--color-boton-oscuro);
    color: white;
    border-color: var(--color-boton-oscuro);
}

/* Sección de Detalles */
.details-heading {
    border-bottom: 1px solid #ccc;
    padding-bottom: 15px;
    margin-bottom: 20px;
    color: var(--color-primario);
    font-weight: 600;
}

.detail-service-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--color-texto);
}

.detail-info {
    font-size: 0.95rem;
    color: var(--color-gris-texto);
    margin-bottom: 5px;
}

.detail-info.duration {
    margin-top: 15px;
    font-weight: 500;
    color: var(--color-texto);
}

.toggle-details-btn {
    background: none;
    border: none;
    color: var(--color-boton-oscuro);
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 15px;
    padding: 0;
}

/* Botón Siguiente */
.btn-next {
    width: 100%;
    padding: 15px;
    background-color: var(--color-boton-oscuro);
    color: white;
    border: none;
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 40px;
    transition: background-color 0.2s;
    border-radius: 4px;
}

.btn-next:hover {
    background-color: var(--color-acento); /* Azul más claro al pasar el mouse */
}


.btn-salir {
    width: 100%;
    padding: 15px;
    text-align: center;
    text-decoration: none;
    background-color: var(--color-boton-oscuro);
    color: white;
    border: none;
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: -20px;
    transition: background-color 0.2s;
    border-radius: 4px;
}
.btn-salir:hover {
    background-color: var(--color-acento); /* Azul más claro al pasar el mouse */
}

form {
  max-width: 600px;
  margin-top: -30px;
  margin-bottom: -30px;
  padding: 25px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  font-family: Arial, Helvetica, sans-serif;
}

form h3 {
  margin-top: 25px;
  margin-bottom: 15px;
  color: var(--color-primario);
  font-size: 18px;
  border-left: 5px solid #2ecc71;
  padding-left: 10px;
}

/* ===== INPUTS Y SELECT ===== */
#registroForm input:not([type="checkbox"]),
#registroForm select {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    margin-bottom: 12px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 0.95rem;
    font-family: inherit;
    background-color: #fff;
    transition: all 0.25s ease;
}

/* PLACEHOLDER */
#registroForm input::placeholder {
    color: #9ca3af;
    font-size: 0.85rem;
}

/* FOCUS */
#registroForm input:focus,
#registroForm select:focus {
    outline: none;
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.2);
}

/* NUMBER INPUT (sin flechas feas) */
#registroForm input[type="number"]::-webkit-inner-spin-button,
#registroForm input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#registroForm input[type="number"] {
    appearance: textfield;
}

/* ===== CHECKBOX ===== */
#registroForm label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    margin-bottom: 6px;
    cursor: pointer;
}

#registroForm input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #0d6efd;
    cursor: pointer;
}

/* ===== TITULOS ===== */
#registroForm h3 {
    margin: 18px 0 10px;
    font-size: 1.05rem;
    color: #1f2937;
}



.campo {
  margin-bottom: 15px;
}

.campo input,
.campo select {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1.8px solid #dcdcdc;
  font-size: 15px;
  transition: 0.3s ease;
}

.campo input:focus,
.campo select:focus {
  border-color: #2ecc71;
  box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.15);
  outline: none;
}

.documentos {
  margin-top: 10px;
}

.documentos label {
  display: block;
  padding: 8px 12px;
  margin-bottom: 8px;
  background: #f7f7f7;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

.documentos label:hover {
  background: #eafaf1;
}

.documentos input {
  margin-right: 8px;
}

@media (max-width: 600px) {
  form {
    padding: 20px;
  }

  form h3 {
    font-size: 16px;
  }
}


/* =========================================
   RESPONSIVIDAD
========================================= */
@media (max-width: 900px) {
    .booking-grid {
        grid-template-columns: 1fr; /* Una sola columna en tablets/móviles */
        gap: 50px;
    }
    
    .booking-title {
        font-size: 2rem;
    }

    .calendar-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 90px; /* Ajuste para header móvil */
    }
    header {
        height: 90px;
        padding: 0 20px;
    }
    .school-name {
        font-size: 1rem;
    }

    .time-buttons-grid {
        grid-template-columns: 1fr; /* Botones de hora en una columna en móvil */
    }
}

/* =========================================
   ESTILOS DEL MENÚ LATERAL
========================================= */
.menu-overlay {
    position: fixed;
    top: 120px; 
    right: 0; 
    width: 50%; 
    height: calc(100vh - 120px);
    background-color: var(--color-blanco); /* Fondo blanco */
    z-index: 900; 
    border-left: 1px solid rgba(0,0,0,0.1);
    transform: translateX(100%); 
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease-in-out;
}
.menu-overlay.active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}
.menu-content-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
}
.menu-links-col {
    text-align: left;
    padding: 0 40px;
}
.menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.menu-list li {
    margin-bottom: 30px;
}
.menu-link {
    text-decoration: none;
    font-size: 2.2rem;
    color: var(--color-primario);
    font-weight: 500;
    display: block;
    transition: color 0.3s, transform 0.3s;
}
.menu-link:hover {
    color: var(--color-acento); /* Hover azul */
    transform: translateX(10px);
}

btn-next:disabled {
    background-color: var(--color-gris-claro);
    cursor: not-allowed;
}

/* =========================================
   ESTILOS DEL FOOTER PRINCIPAL
========================================= */
.site-footer {
    background-color: var(--color-primario); /* Azul institucional */
    color: var(--color-blanco);
    padding: 80px 5% 40px;
    font-family: 'Montserrat', sans-serif;
    border-top: 5px solid var(--color-acento); /* Línea decorativa superior */
}

/* Grid Layout: 3 Columnas */
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr; /* La columna del form es más ancha */
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- COLUMNA 1: FORMULARIO --- */
.footer-heading {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 30px;
    line-height: 1.3;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-size: 0.9rem;
    margin-bottom: 8px;
    font-weight: 500;
}

/* Input elegante solo con línea inferior */
.form-input {
    background-color: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    padding: 10px 0;
    margin-bottom: 20px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.form-input:focus {
    border-bottom-color: white;
}

/* Checkbox estilizado */
.form-checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 25px;
}

.form-checkbox-group input[type="checkbox"] {
    margin-top: 4px; /* Alinear con la primera línea de texto */
    accent-color: var(--color-acento);
}

.checkbox-label {
    font-size: 0.85rem;
    opacity: 0.8;
    line-height: 1.4;
}

/* Botón de envío */
.btn-submit {
    background-color: var(--color-blanco);
    color: var(--color-primario);
    border: none;
    padding: 12px 30px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    align-self: flex-start; /* Que no ocupe todo el ancho */
    transition: background-color 0.3s, transform 0.2s;
}

.btn-submit:hover {
    background-color: var(--color-acento);
    color: white;
    transform: translateY(-2px);
}

/* --- COLUMNA 2: CONTACTO Y REDES --- */
.contact-info, .address-info {
    margin-bottom: 30px;
    font-size: 1rem;
    line-height: 1.8;
    opacity: 0.9;
}

.contact-info p, .address-info p {
    margin-bottom: 5px;
}

/* Iconos Sociales SVG */
.social-links {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.social-icon {
    color: white;
    transition: transform 0.3s, color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icon:hover {
    color: var(--color-acento);
    transform: scale(1.2); /* Efecto pop al pasar el mouse */
}

/* --- COLUMNA 3: ENLACES LEGALES --- */
.legal-links {
    list-style: none;
    padding: 0;
}

.legal-links li {
    margin-bottom: 15px;
}

.legal-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s, padding-left 0.3s;
    display: inline-block;
}

.legal-links a:hover {
    color: white;
    padding-left: 5px; /* Pequeño desplazamiento a la derecha */
}

/* --- RESPONSIVIDAD (Móviles) --- */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr; /* Todo en una columna */
        gap: 50px;
    }
    
    .btn-submit {
        width: 100%; /* Botón ancho en móvil */
    }
}

@media (max-width: 768px) {
    .menu-overlay {
        width: 100%;
        top: 90px;
        height: calc(100vh - 90px);
    }
    .menu-link {
        font-size: 1.8rem;
    }
}