/* PALETA DE COLORES MA CRUZ BAUTISTA GONZALEZ */
:root {
    --color-primary: #37474F; /* Azul Oscuro/Gris Oscuro (Profesional) */
    --color-secondary: #00897B; /* Turquesa Oscuro (Toque de bienestar) */
    --color-text: #424242; /* Gris para cuerpo de texto */
    --color-light-bg: #F5F5F5; /* Fondo claro para contraste */
    --color-white: #FFFFFF;
}

/* GENERAL & RESET */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

/* TIPOGRAFÍA ELEGANCIA SERIF (Bodoni Moda) */
h1, h2, h3 {
    font-family: 'Bodoni Moda', Georgia, serif; 
    font-weight: 600; /* Usamos 600 (SemiBold) como solicitaste */
}

/* Mantener la fuente del cuerpo de texto sobria y legible */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-white);
}

a {
    text-decoration: none;
    color: var(--color-secondary);
    transition: color 0.3s;
}

a:hover {
    color: var(--color-primary);
}

/* TIPOGRAFÍA */
h1 {
    font-size: 3.5em;
    line-height: 1.2em;
    margin-bottom: 1em;
    color: var(--color-primary);
}

h2 {
    font-size: 2.5em;
    line-height: 1.2em;
    color: var(--color-primary);
    margin-bottom: 1em;
    text-align: center;
}

h3 {
    font-size: 1.6em;
    line-height: 1.2em;
    color: var(--color-primary);
    margin-bottom: 0.6em;
}

p {
    margin-bottom: 0.6em;
}

.subtitle {
    font-size: 1.2em;
    font-weight: bold;
    color: var(--color-secondary);
    margin-bottom: 0.5em;
}

/* LAYOUT GENERAL */
.content-section {
    padding: 4em 0;
}

.light-bg {
    background-color: var(--color-light-bg);
}

/* HEADER (NAVEGACIÓN FIJA) */
#header {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1em 5%;
    background-color: var(--color-white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo h1 {
    font-size: 1.5em;
    color: var(--color-primary);
}

.desktop-nav a {
    margin-left: 1.5em;
    font-weight: 500;
    color: var(--color-primary);
}

/* CTA BUTTONS */
.cta-button, .main-cta {
    padding: 0.7em 1.5em;
    background-color: var(--color-secondary);
    color: var(--color-white) !important;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.2s;
    text-transform: uppercase;
    font-weight: bold;
    display: inline-block;
}

.cta-button:hover, .main-cta:hover {
    background-color: var(--color-primary);
    transform: translateY(-2px);
}

/* NUEVO: Contenedor para Centrado y Ancho Máximo del Contenido */
.hero-grid,
.enfoque-grid,
.servicios-grid,
.instalaciones-content,
.contacto-grid {
    max-width: 1200px;
    margin: 0 auto; /* Centra el contenido */
    padding: 0 5%; /* Añade el padding horizontal de vuelta al contenido */
}

/* ======================================= */
/* SECCIÓN INICIO (HERO) - FOTO GRANDE DERECHA */
/* ======================================= */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
    padding-top: 5em;
    padding-bottom: 5em;
}

.hero-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    gap: 4em;
}

.hero-text-content {
    flex: 1; 
    max-width: 55%; 
}

/* Nuevo contenedor para la foto del Hero (Más ancho) */
.hero-image-container {
    flex: 0 0 40%; /* Ocupa un poco más de espacio */
    display: flex;
    justify-content: flex-end;
}

/* Estilo para la foto del Hero (Más grande) */
.hero-image-container .profile-photo {
    width: 100%;
    max-width: 450px; 
    height: 550px; 
    display: block;
    border-radius: 8px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15); /* Sombra más pronunciada */
    object-fit: cover;
}

.hero-text-content .main-cta {
    margin-top: 2em;
}


/* ======================================= */
/* SECCIÓN ENFOQUE - VIDEO CHICO IZQUIERDA */
/* ======================================= */
.enfoque-grid {
    display: grid;
    /* Video (0.8fr) y Texto (1.2fr). Video más chico y a la izquierda */
    grid-template-columns: 0.6fr 1.4fr; 
    gap: 2em;
    align-items: center;
}

.enfoque-video-container {
    display: flex;
    justify-content: flex-start; /* Alinear el video a la izquierda */
}

/* Contenedor para el video en la sección Enfoque (Más chico) */
.video-container.small {
    max-width: 250px; /* Video más chico que el de instalaciones (350px) */
    aspect-ratio: 9/16; 
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.video-item { /* Clase genérica para los videos (Hero Video -> video-item) */
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px; 
}

.enfoque-text h2 {
    text-align: left;
}


/* SECCIÓN SERVICIOS */
.servicios-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3em;
}

.servicios-grid ul {
    list-style: none;
    padding-left: 0;
}

.servicios-grid li {
    /* El nuevo SVG incluye un círculo relleno (#00897B) con un path blanco (#FFFFFF) */
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><circle cx="12" cy="12" r="10" fill="%2300897B"/><path fill="%23FFFFFF" d="M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z"/></svg>') no-repeat left 0.2em;
    background-size: 1.3em; /* Icono un poco más grande */
    padding-left: 1.8em; /* Ajuste para dar espacio al icono más grande */
    margin-bottom: 0.8em;
}

/* SECCIÓN INSTALACIONES (VIDEO A LA DERECHA) */
.instalaciones-content {
    display: flex;
    gap: 3em;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* El video container large es el de 350px de ancho para instalaciones */
.video-container.large {
    max-width: 350px; 
    aspect-ratio: 9/16; 
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.instalaciones-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px; 
}

.cta-final p {
    margin-bottom: 1.5em;
    font-size: 1.1em;
}

/* SECCIÓN CONTACTO */
.contacto-grid {
    display: grid;
    grid-template-columns: 0.5fr 1.5fr;
    gap: 3em;
}

.map-container {
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.info-contacto p {
    font-size: 1.1em;
    margin-bottom: 1em;
}

.phone-link {
    color: var(--color-text) !important;
    text-decoration: none !important;
}

/* FOOTER */
footer {
    text-align: center;
    padding: 1.5em;
    background-color: var(--color-primary);
    color: var(--color-white);
    font-size: 0.9em;
}

/* ======================================= */
/* ANIMACIONES (Mantenidas) */
/* ======================================= */
.fade-in { opacity: 0; animation: fadeIn 1s ease-out forwards; }
@keyframes fadeIn { to { opacity: 1; } }
.fade-in-delay { opacity: 0; animation: fadeIn 1s ease-out 0.5s forwards; }

.slide-up { opacity: 0; transform: translateY(20px); animation: slideUp 1s ease-out forwards; }
@keyframes slideUp { to { opacity: 1; transform: translateY(0); } }

.bounce-in { animation: bounceIn 1s ease-out; }
@keyframes bounceIn {
    0% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(1); }
}

/* ======================================= */
/* RESPONSIVIDAD (Media Queries - Móvil) */
/* ======================================= */

@media (max-width: 768px) {
    /* ... (Ajustes generales de móvil) ... */

    /* Hero (Foto arriba, Texto abajo) */
    .hero-grid {
        flex-direction: column; 
        text-align: center;
    }
    .hero-text-content { max-width: 100%; flex: auto; }
    
    .hero-image-container {
        order: -1; /* Mover la foto arriba */
        justify-content: center;
        margin-bottom: 2em;
    }
    .hero-image-container .profile-photo {
        max-width: 80%; /* Ajustar tamaño de la foto en móvil */
        height: auto;
    }

    /* Enfoque (Video arriba, Texto abajo) */
    .enfoque-grid {
        grid-template-columns: 1fr;
        gap: 2em;
    }
    .enfoque-video-container {
        order: -1; /* Mover el video arriba */
        justify-content: center;
        margin: 0 auto;
    }

    /* Instalaciones (Texto arriba, Video abajo) */
    .instalaciones-content {
        flex-direction: column; 
        gap: 2em;
    }
    /* El orden se mantiene correcto (Texto-Video) por el HTML */
    .video-container.large {
        max-width: 90%;
    }
    
    /* Grids generales */
    .servicios-grid,
    .contacto-grid {
        grid-template-columns: 1fr;
        gap: 2em;
        text-align: center;
    }
}