/* --- Variables de Colores y Estilos Globales --- */
:root {
  --primary-color: #f3dbc3;    
  --secondary-color: #eacbac;  
  --accent-color: #fdecda;     /* Neutro 1*/
  --vibrant-color: #e9c39e;    
  --bg-light: #fff6ed;         
  --bg-cards: #fff6ed; /* Neutro 2 */        
  --text-dark: #5d544b;        
  --white: #ffffff;
  --shadow: 0 8px 24px rgba(233, 195, 158, 0.25); 
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Roboto, sans-serif;
}

/* --- Fondo Global --- */
body {
    background-color: var(--bg-light); 
    min-height: 100vh; 
}

/* --- SECCIÓN SERVICIOS (TABS Y CARRUSEL) --- */
.servicios-tabs-section {
    padding: 20px 5% 60px;
    background-color: var(--bg-light); 
    max-width: 1400px;
    margin: 0 auto;
}

.servicios-tabs-section .text-left {
    text-align: left;
    margin-bottom: 25px;
    font-size: 3rem;
}

/* --- TABS DE NAVEGACIÓN --- */
.tabs-container {
    display: flex;
    gap: 35px;
    border-bottom: 1px solid #dcd4cf; /* Línea separadora sutil */
    margin-bottom: 30px;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 2px;
}

.tabs-container::-webkit-scrollbar {
    display: none; 
}

.tab-link {
    background: transparent;
    border: none;
    font-size: 1.05rem;
    color: #8a7e72;
    padding: 10px 0;
    cursor: pointer;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.tab-link:hover {
    color: var(--text-dark);
}

.tab-link.active {
    color: var(--text-dark);
    font-weight: 700;
}

/* Línea indicadora del tab activo */
.tab-link.active::after {
    content: '';
    position: absolute;
    bottom: -3px; /* Justo sobre el borde inferior del contenedor */
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--text-dark);
}

/* --- CARRUSEL Y TARJETAS --- */
.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.cards-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 10px 0 20px 0;
    width: 100%;
}

.cards-track::-webkit-scrollbar {
    display: none; 
}

/* Tarjeta Cuadrada */
.service-card-sq {
    flex: 0 0 calc(25% - 15px); /* 4 tarjetas por vista en escritorio */
    min-width: 260px; 
    scroll-snap-align: start;
    background-color: transparent;
    display: flex;
    flex-direction: column;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.service-card-sq.oculto {
    display: none; /* Para el filtro de categorías */
}

/* 1. Preparamos la caja contenedora */
.img-box {
    position: relative; /* ¡Súper importante para que el texto no se salga de la foto! */
    overflow: hidden;
    border-radius: 8px;
    width: 100%;
    height: 300px; /* LÍMITE DE ALTURA: Aquí fuerzas el tamaño rectangular pequeño */
}
/* 2. Animación suave para la imagen */
.img-box img {
    transition: opacity 0.4s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Contenedor de la "imagen" para la tarjeta de WhatsApp */
.whatsapp-box-diseno {
    background: linear-gradient(135deg, #f9f6f0 0%, #f0ece3 100%); /* Fondo neutro y estético */
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px; /* Misma altura fija de tus imágenes */
    width: 100%;
}

/* Ícono de WhatsApp grande */
.icon-wa-card {
    font-size: 4.5rem;
    color: #25d366; /* Verde oficial de WhatsApp */
    opacity: 0.85;
    transition: transform 0.3s ease;
}

/* Efecto sutil al pasar el mouse sobre la tarjeta */
.card-whatsapp-extra:hover .icon-wa-card {
    transform: scale(1.12); /* El ícono crece un poco */
}

/* 3. Escondemos la capa de texto al inicio */
.capa-descripcion {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(220,212,207, 0.40); /* Fondo negro elegante y semitransparente */
    color: #000000; /* Letra blanca */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    text-align: center;
    opacity: 0; /* Totalmente invisible por defecto */
    transition: opacity 0.4s ease;
}

/* 4. LA MAGIA: Al pasar el mouse encima de la tarjeta... */
.service-card-sq:hover .img-box img {
    opacity: 0.2; /* La imagen se desvanece */
}

.service-card-sq:hover .capa-descripcion {
    opacity: 1; /* El texto aparece suavemente */
}

.card-body h4 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 5px;
    font-weight: 600;
}

.card-body .price {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-weight: 400;
}

/* Botón de la tarjeta estilo Leonora (Outline) */
.btn-outline-sq {
    width: 100%;
    padding: 14px;
    background-color: var(--white);
    border: 1px solid var(--text-dark);
    border-radius: 8px;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline-sq:hover {
    background-color: var(--text-dark);
    color: var(--white);
}

/* --- BOTONES DE NAVEGACIÓN (FLECHAS) --- */
.carousel-btn {
    position: absolute;
    top: 38%;
    transform: translateY(-50%);
    background: var(--white);
    border: 1px solid #e0d5cb;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.2rem;
    color: var(--text-dark);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: var(--text-dark);
    color: var(--white);
}

.carousel-btn.prev { left: -20px; }
.carousel-btn.next { right: -20px; }

/* Responsive */
@media (max-width: 1024px) {
    .service-card-sq { flex: 0 0 calc(33.333% - 14px); } /* 3 tarjetas */
}
@media (max-width: 768px) {
    .service-card-sq { flex: 0 0 calc(50% - 10px); } /* 2 tarjetas */
    .carousel-btn { display: none; } /* En móvil se desliza con el dedo */
    .servicios-tabs-section .text-left { text-align: center; }
}
@media (max-width: 480px) {
    .service-card-sq { flex: 0 0 85%; } /* 1 tarjeta centrada */
}
/* Texto del Servicio */
.service-title {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 5px !important; 
    font-weight: 600;
    min-height: auto !important;
    line-height: 1.2;
}

/* Precio */
.price {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--vibrant-color); 
    margin-top: 0 !important;     
    margin-bottom: 15px !important; 
}

/* --- Contenedor para alinear los botones en la misma fila --- */
.botones-container {
    display: flex !important;
    gap: 10px !important;
    align-items: center !important;        /* 🌟 Cambiado de flex-start a center para un emparejamiento perfecto */
    justify-content: center !important;    /* Centra ambos botones en la tarjeta */
    width: 100% !important;                /* 🌟 CORREGIDO: De 34px a 100% para abarcar el ancho disponible */
    height: auto !important;               /* 🌟 CORREGIDO: De 34px a auto para que respire según sus hijos */
    padding: 0 2px;
    margin-top: 12px;    
}

.btn-agendar-modal {
    flex-grow: 1;
    background-color: var(--vibrant-color) !important;
    color: white !important;
    border: none !important;
    padding: 10px 15px !important;         /* Un pelín más esbelto para equilibrar con las alturas */
    border-radius: 15px !important;
    font-weight: bold !important;
    font-size: 0.75rem;                    /* Un toque más legible */
    text-transform: uppercase;
    cursor: pointer !important;
    transition: 0.3s;
    box-shadow: 0 4px 12px rgba(233, 195, 158, 0.4);
}

.btn-agendar-modal:hover {
    background-color: #d4a373 !important;
    transform: scale(1.02);                /* Un sutil micro-zoom al pasar el mouse */
}

.btn-whats-circular {
    background-color: #25D366 !important;
    color: white !important;
    width: 38px !important;                /* Ajustado a 38px para emparejar simétricamente con el alto del botón de texto */
    height: 38px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    text-decoration: none !important;
    font-size: 1.4rem !important;
    transition: 0.3s;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-whats-circular:hover {
    background-color: #128C7E !important;
    transform: scale(1.1) rotate(10deg);   /* Mantiene tu divertido efecto de rotación */
}

.btn-whats{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;                 
    height: auto;               
    padding: 10px 24px;          
    border-radius: 50px;         
    white-space: nowrap;         
    background-color: #25d366;   
    color: white;
    text-decoration: none;
    font-weight: bold;
}

/* Responsivo */
@media (max-width: 768px) {
    .services-section {
        flex-direction: column;
        align-items: center;
    }
}

/* --- Estilos del Modal --- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(93, 84, 75, 0.15);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content {
    position: relative;
    background: var(--white);
    padding: 40px;
    border-radius: 40px;
    border: 2px solid var(--primary-color);
    width: 90%;
    max-width: 450px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.modal-content h3 {
    color: var(--vibrant-color);
    font-size: 1.8rem;
    margin-bottom: 25px;
}

.label-muted {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- DiseÃ±o de Botones de DÃ­a y Hora --- */
.selector-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 25px;
}

.btn-slot {
    background: #fff;
    border: 1px solid #eee;
    padding: 10px 15px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    color: #444;
}

.btn-slot:hover {
    border-color: var(--vibrant-color);
    color: var(--vibrant-color);
    transform: translateY(-2px);
}

.btn-slot.active {
    background-color: var(--vibrant-color);
    color: #fff;
    border-color: var(--vibrant-color);
    box-shadow: 0 4px 10px rgba(233, 195, 158, 0.3);
}

.btn-slot.disabled {
    background: #f5f5f5;
    color: #ccc;
    cursor: not-allowed;
    border: none;
}

/* BotÃ³n de ConfirmaciÃ³n */
.btn-confirmar {
    background: var(--vibrant-color);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 15px;
    font-weight: bold;
    width: 100%;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 10px;
    transition: 0.3s;
}

.btn-confirmar:hover {
    background: #C2185B;
    box-shadow: 0 5px 15px rgba(194, 24, 91, 0.4);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 2rem;
    color: #ccc;
    cursor: pointer;
    line-height: 1;
    transition: all 0.3s ease;
}

.close-modal:hover {
    color: var(--vibrant-color); /* Cambia a rosa al pasar el mouse */
    transform: scale(1.2);
}

.input-group-cita {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.input-group-cita input {
    padding: 12px;
    border-radius: 12px;
    border: 1px solid #eee;
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
}

.input-group-cita input:focus {
    border-color: var(--vibrant-color);
    box-shadow: 0 0 5px rgba(233, 30, 99, 0.2);
}

#fecha_cita {
    cursor: pointer;
    text-align: center;
    font-weight: bold;
    color: var(--text-dark);
}

/* Estilo para el icono de Ã©xito */
.success-icon {
    font-size: 5rem;
    color: #28a745;
    margin-bottom: 20px;
    animation: scaleUp 0.4s ease-out;
}

/* Caja de resumen con bordes dorados */
.resumen-caja {
    background: var(--bg-light);
    border: 1px dashed var(--vibrant-color);
    padding: 15px;
    border-radius: 15px;
    margin: 20px 0;
    text-align: center;
}

.resumen-caja p {
    margin: 5px 0;
    font-weight: bold;
    color: var(--text-dark);
}

/* AnimaciÃ³n de apariciÃ³n */
@keyframes scaleUp {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.btn-google {
    background-color: #ffffff !important;
    color: #757575 !important;
    border: 1px solid #ddd !important;
    padding: 10px 15px !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    width: 100%;
    margin-bottom: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: 0.3s;
}

.btn-google i {
    color: #4285F4; /* Azul Google */
    font-size: 1.2rem;
}

.btn-google:hover {
    background-color: #f8f8f8 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.contenedor-servicios {
    display: flex;
    flex-direction: row; /* Uno al lado del otro */
}

/* 📱 DISEÑO PARA CELULARES (Se activa cuando la pantalla es pequeña) */
@media screen and (max-width: 768px) {
    
    .contenedor-servicios {
        flex-direction: column; /* Se apilan uno debajo de otro */
        padding: 10px;
    }

    /* Puedes aprovechar para hacer los textos más pequeños */
    .main-title {
        font-size: 1.5rem;
    }
}