/* --- VARIABLES Y RESET --- */
:root {
    --primary-color: #00a1a6;       /* Tu color Teal */
    --secondary-color: #85c1e9;     /* Tu color Azul Claro */
    --dark-color: #333;             /* Gris Oscuro */
    --light-bg: #f9f9f9;
    --white: #ffffff;
    --font-heading: 'Alice', serif;
    --font-body: 'Arial', sans-serif; /* O Open Sans si prefieres */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Crucial para maquetación */
}

body {
    padding-top: 80px; /* Espacio para el header fijo */
    font-family: var(--font-body);
    color: var(--dark-color);
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 400;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* --- HEADER --- */
header {
    background-color: var(--white);
    border-bottom: 2px solid #ddd;
    padding: 10px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: 80px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 50px;
    width: auto;
}

.logo-text h3 {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin: 0;
    line-height: 1;
}

.logo-text p {
    font-size: 0.8rem;
    color: var(--dark-color);
    margin: 0;
}

/* Navegación */
header nav {
    display: flex;
    gap: 20px;
}

header nav a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--dark-color);
}

header nav a:hover,
header nav a.active {
    color: var(--primary-color);
}

/* Botón Header */
.btn-consulta {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 10px 25px;
    border-radius: 25px; /* Más moderno */
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-consulta:hover {
    background-color: var(--secondary-color);
}

/* --- HERO SECTION (VIDEO BACKGROUND) --- */
.hero {
    position: relative;
    width: 100%;
    height: 85vh; /* Ocupa el 85% de la altura de la pantalla */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
    color: var(--white);
}

/* Video de fondo */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Clave: hace que el video llene todo sin deformarse */
    z-index: -1;
}

/* Capa oscura para legibilidad */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* 50% de oscuridad */
    z-index: 0;
}

/* Contenido sobre el video */
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 20px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    font-weight: 300;
}

/* Botón Hero CTA */
.btn-hero {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0, 161, 166, 0.4);
    transition: transform 0.2s, background-color 0.3s;
}

.btn-hero:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px); /* Efecto de elevación */
}

/* --- SECCIÓN PERFIL / SOBRE MÍ --- */
.seccion-perfil {
    background-color: var(--white);
    padding: 80px 20px;
}

.perfil-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center; /* Centrado vertical */
    gap: 50px;
    background-color: var(--light-bg);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.imagen-perfil {
    width: 300px; /* Tamaño fijo */
    height: 300px;
    object-fit: cover;
    border-radius: 50%; /* Foto circular (tendencia psicológica amigable) */
    border: 5px solid var(--white);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.texto-perfil h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 5px;
}

.texto-perfil h3 {
    color: #666;
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-family: var(--font-body);
}

.texto-perfil p {
    margin-bottom: 15px;
    font-size: 1.05rem;
    color: #555;
}

/* --- FOOTER --- */
footer {
    background-color: var(--dark-color);
    color: #ddd;
    padding: 60px 0 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Grid responsivo automático */
    gap: 40px;
}

.footer-section h3 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    border-bottom: 1px solid var(--secondary-color);
    padding-bottom: 10px;
    display: inline-block;
}

.footer-logo {
    max-width: 150px;
    margin-bottom: 15px;
}

.footer-section.links ul {
    list-style: none;
}

.footer-section.links li {
    margin-bottom: 10px;
}

.footer-section.links a:hover {
    color: var(--secondary-color);
    padding-left: 5px; /* Pequeña animación */
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.contact-item img {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    filter: brightness(0) invert(1); /* Vuelve blancos los iconos negros */
}

.map-container iframe {
    width: 100%;
    height: 150px;
    border-radius: 10px;
    border: none;
}

.footer-bottom {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #444;
    font-size: 0.9rem;
}

/* --- RESPONSIVE (MÓVILES) --- */
@media (max-width: 768px) {
    body {
        padding-top: 70px; /* Ajuste para header móvil */
    }

    header {
        height: auto;
        flex-wrap: wrap;
        padding: 15px;
    }

    /* Menú móvil simplificado */
    header nav {
        order: 3; /* Pone el menú al final */
        width: 100%;
        flex-direction: column;
        gap: 10px;
        margin-top: 15px;
        text-align: center;
        display: none; /* Podrías agregar JS para togglear esto, pero por ahora lo dejo oculto o visible según prefieras. Para CSS puro, mejor display: flex; */
        display: flex; /* Lo dejamos visible en columna */
        background: #f5f5f5;
        padding: 10px;
        border-radius: 10px;
    }
    
    .cta-header-link {
        display: none; /* Ocultamos el botón del header en móvil para ahorrar espacio si ya está en el Hero */
    }

    /* Hero Móvil */
    .hero {
        height: 60vh;
    }

    .hero h1 {
        font-size: 2rem;
    }

    /* Perfil Móvil */
    .perfil-container {
        flex-direction: column;
        padding: 20px;
        text-align: center;
    }

    .imagen-perfil {
        width: 200px;
        height: 200px;
    }
}