/* --- VARIABLES DE COLOR Y TIPOGRAFÍA --- */
:root {
    --primary-color: #0a2342; /* Azul oscuro corporativo */
    --secondary-color: #0066cc; /* Azul brillante para acentos y botones */
    --accent-color: #f39c12; /* Naranja para detalles pequeños (opcional) */
    --text-dark: #333333;
    --text-light: #777777;
    --bg-light: #f4f7f6;
    --bg-dark: #111111;
    --white: #ffffff;
    --whatsapp-color: #25d366;
    --font-main: 'Poppins', sans-serif;
    --header-height: 80px;
}

/* --- RESET GLOBAL --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; /* Desplazamiento suave entre secciones */
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden; /* Evita scroll horizontal */
}

/* --- UTILIDADES --- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.text-center { text-align: center; }
.bg-light { background-color: var(--bg-light); }
.bg-dark { background-color: var(--primary-color); color: var(--white); }
.text-white { color: var(--white) !important; }

.section-header {
    margin-bottom: 50px;
}

.section-header span {
    color: var(--secondary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 10px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    font-weight: 700;
}

section {
    padding: 80px 0;
}

/* --- BOTONES --- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-color);
}

.btn-outline {
    border-color: var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

/* --- PRELOADER DE BIENVENIDA --- */
.preloader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s;
}

.preloader-content {
    text-align: center;
    color: var(--white);
}

.preloader-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.fade-in {
    animation: fadeInAnimation 1.5s ease-in forwards;
    opacity: 0;
}

.fade-in-delayed {
    animation: fadeInAnimation 1.5s ease-in 0.5s forwards; /* Retraso de 0.5s */
    opacity: 0;
}

@keyframes fadeInAnimation {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.preloader-hidden {
    opacity: 0;
    visibility: hidden;
}

/* --- WHATSAPP FLOTANTE --- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: var(--whatsapp-color);
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #20ba5a;
}

/* --- HEADER Y NAVEGACIÓN --- */
header {
    height: var(--header-height);
    background-color: var(--white);
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo a {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.logo span.dot {
    color: var(--secondary-color);
    font-size: 2.5rem;
    line-height: 0;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li a {
    text-decoration: none;
    color: var(--primary-color);
    padding: 0 15px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links li a:hover {
    color: var(--secondary-color);
}

.btn-contact {
    background-color: var(--secondary-color);
    color: var(--white) !important;
    padding: 10px 25px !important;
    border-radius: 5px;
}

.btn-contact:hover {
    background-color: var(--primary-color) !important;
}

.hamburger {
    display: none;
    font-size: 1.8rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* --- HERO SECTION --- */
.hero-section {
    height: 100vh; /* Pantalla completa */
    background-image: url('imagen1.jpg'); /* TU IMAGEN DE PORTADA AQUÍ */
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    margin-top: var(--header-height); /* Compensa el header fijo */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(10, 35, 66, 0.8), rgba(10, 35, 66, 0.6)); /* Filtro azul oscuro */
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 800px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

/* --- SECCIÓN PSICOLÓGICA --- */
.psych-section {
    padding: 60px 0;
}

.psych-content h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.psych-content .lead-text {
    font-size: 1.3rem;
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.psych-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* --- SERVICIOS PRIORITARIOS (ESTILO "CARD" GRANDE) --- */
.priority-card {
    display: flex;
    background: var(--white);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 50px;
    align-items: center;
}

.reverse-layout {
    flex-direction: row-reverse;
}

.priority-img {
    flex: 1;
    height: 400px;
}

.priority-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.priority-info {
    flex: 1;
    padding: 50px;
}

.priority-info h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.priority-info h3 i {
    margin-right: 15px;
    color: var(--secondary-color);
}

.priority-info p {
    color: var(--text-light);
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    font-weight: 500;
    color: var(--primary-color);
}

.feature-list li i {
    color: var(--secondary-color);
    margin-right: 10px;
}

/* --- TODOS LOS SERVICIOS (GRID) --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    text-align: center;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 3px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-bottom: 3px solid var(--secondary-color);
}

.icon-box {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 25px;
    display: inline-block;
}

.service-card h4 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* --- NOSOTROS (Misión/Visión) --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    position: relative;
    z-index: 2;
}

.img-decoration {
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 200px;
    height: 200px;
    background-color: var(--secondary-color);
    opacity: 0.1;
    z-index: 1;
    border-radius: 10px;
}

.about-content span {
    color: var(--secondary-color);
    font-weight: 600;
    text-transform: uppercase;
}

.about-content h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin: 10px 0 25px;
}

.about-content p {
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 1.05rem;
}

.mv-box {
    background: var(--bg-light);
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid var(--secondary-color);
}

.mv-box h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}
.mv-box h4 i { margin-right: 10px; color: var(--secondary-color); }
.mv-box p { margin-bottom: 0; font-size: 0.95rem; }

/* --- CONTACTO --- */
.contact-wrapper {
    display: flex;
    justify-content: center;
}

.contact-info-boxes {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.c-box {
    background: rgba(255,255,255,0.1);
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    color: var(--white);
    min-width: 280px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.2);
}

.c-box i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.c-box h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.c-box p {
    font-size: 1.1rem;
    line-height: 1.8;
}

.c-box p strong {
    font-size: 1.2rem;
    color: var(--secondary-color);
}

.whatsapp-box i { color: var(--whatsapp-color); }

.btn-small {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 20px;
    background-color: var(--whatsapp-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background 0.3s;
}
.btn-small:hover { background-color: #20ba5a; }

/* --- FOOTER --- */
footer {
    background-color: #071a33; /* Un poco más oscuro que el primary */
    color: rgba(255,255,255,0.7);
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-logo h2 {
    color: var(--white);
    margin-bottom: 10px;
}
.footer-logo span.dot { color: var(--secondary-color); }

.footer-links h3 {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links li a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s;
}
.footer-links li a:hover { color: var(--secondary-color); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    font-size: 0.9rem;
}

/* --- RESPONSIVE (CELULARES Y TABLETS) --- */

@media screen and (max-width: 992px) {
    /* Ajustes para tablets y laptops pequeñas */
    .hero-content h1 { font-size: 2.8rem; }
    
    .priority-card, .reverse-layout {
        flex-direction: column;
    }
    .priority-img { height: 300px; width: 100%; }
    .priority-info { padding: 30px; }
    
    .about-grid { grid-template-columns: 1fr; }
    .about-image { margin-bottom: 40px; }
}

@media screen and (max-width: 768px) {
    /* Ajustes para móviles */
    
    /* Menú Hamburguesa */
    .hamburger { display: block; z-index: 101; }
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%; /* Oculto a la derecha */
        height: 100vh;
        width: 70%;
        background-color: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: right 0.4s ease;
    }
    .nav-links.active {
        right: 0; /* Se desliza a la vista */
    }
    .nav-links li { margin: 20px 0; }
    .btn-contact {
        background-color: transparent;
        color: var(--primary-color) !important;
        padding: 0 !important;
    }

    /* Ajustes generales móvil */
    .hero-content h1 { font-size: 2.2rem; }
    .hero-btns { flex-direction: column; }
    .btn { width: 100%; text-align: center; }
    
    .section-header h2 { font-size: 2rem; }
    
    .psych-content .lead-text { font-size: 1.1rem; }
    
    .contact-info-boxes { flex-direction: column; }
    .c-box { min-width: auto; }
    
    .footer-content { flex-direction: column; gap: 30px; }
    .preloader-content h1 { font-size: 2.5rem; }
}