/* ============================================================
   ESTILOS GLOBALES - LOLA HERRERA
   ============================================================ */
body { 
    background-color: #fdf4f4; 
    color: #4a3f3f; 
    font-family: 'Georgia', serif; 
    margin: 0;
    padding: 0;
}

.main-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* --- BOTONES Y FORMULARIOS --- */
.btn-main { 
    background-color: #4a3f3f !important; 
    color: #fdf4f4 !important; 
}

.modal { 
    display: none; 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0,0,0,0.6); 
    z-index: 999; 
    align-items: center; 
    justify-content: center; 
    backdrop-filter: blur(4px);
}

.btn-hora { 
    border: 1px solid #4a3f3f; 
    transition: all 0.2s ease; 
    background: white; 
    padding: 12px 8px;
    border-radius: 10px;
    font-weight: 500;
}

.btn-hora.seleccionado { 
    background-color: #4a3f3f !important; 
    color: white !important; 
    transform: scale(1.05);
}

button:disabled { 
    background-color: #d1d5db !important; 
    color: #9ca3af !important;
    cursor: not-allowed; 
    opacity: 0.6; 
}

input[type="date"], input[type="text"], input[type="tel"], select {
    -webkit-appearance: none;
    background-color: #ffffff !important;
    color: #4a3f3f !important;
    border: 1px solid #e5e7eb !important;
    padding: 1rem;
    border-radius: 0.75rem;
    width: 100%;
}

/* --- PORTADA PRINCIPAL --- */
.preview-wrapper { 
    width: 100%;
    max-height: 450px; 
    aspect-ratio: 16 / 9; 
    overflow: hidden; 
    border-radius: 1.5rem; 
    position: relative;
    border: 4px solid white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    background-color: #f2e2e2;
    margin: 0 auto;
}

#imgServicioIndex, #imgEquipoActual, #imgPortada { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}

/* ============================================================
   GRID DE SERVICIOS Y EFECTOS
   — Funciona tanto con <a> como con <button>
   ============================================================ */
.servicios-grid {
    display: grid;
    gap: 15px;
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 1024px) {
    .servicios-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 25px;
    }
}

/* Contenedor "ventana" — recorta el zoom */
.servicios-grid a .image-wrapper,
.servicios-grid button .image-wrapper {
    display: block;
    overflow: hidden !important;
    position: relative;
    border-radius: 2rem;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

/* Imagen dentro del contenedor */
.servicios-grid a img,
.servicios-grid button img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    -webkit-transition: -webkit-transform 0.7s ease-in-out !important;
    transition: transform 0.7s ease-in-out !important;
}

/* Elevación del contenedor al hacer hover */
.servicios-grid a:hover .image-wrapper,
.servicios-grid button:hover .image-wrapper {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}

/* Zoom de la imagen al hacer hover */
.servicios-grid a:hover img,
.servicios-grid button:hover img {
    -webkit-transform: scale(1.1) !important;
    transform: scale(1.1) !important;
}

/* --- BOTONES FLOTANTES NAV --- */
nav.fixed {
    filter: drop-shadow(0 10px 25px rgba(74, 63, 63, 0.2));
}

.btn-instagram-float {
    background-color: white;
    border: 1px solid #f2e2e2;
    transition: all 0.3s ease;
}
.btn-instagram-float:active { transform: scale(0.95); background-color: #fdf4f4; }

.btn-cita-float {
    background-color: #4a3f3f;
    color: white;
    transition: all 0.3s ease;
}
.btn-cita-float:active { transform: scale(0.95); }

/* --- AJUSTES MÓVIL --- */
@media (max-width: 640px) {
    body { padding-bottom: 180px !important; }
    footer { padding-bottom: 160px !important; }
    .preview-wrapper { aspect-ratio: 4 / 3; }
}