/* ==================================== */
/* 📂 css/style.css: Estilo Moderno Psychology4U */
/* ==================================== */

:root {
    --primary-color: #8D992E; /* Color 'Lime' original (aprox del logo/w3-lime) */
    --primary-dark: #6e7922;
    --secondary-color: #607d8b;
    --bg-light: #f4f4f4;
    --text-dark: #333;
    --white: #ffffff;
    --success-color: #28a745; 
}

/* === Base === */
html { scroll-behavior: smooth; }
body {
    font-family: "Raleway", sans-serif; /* Tipografía original */
    margin: 0;
    padding: 0;
    color: var(--text-dark);
    line-height: 1.8;
    background-color: var(--white);
}

h1, h2, h3, h4 { font-weight: 400; margin: 20px 0 10px; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { padding-left: 20px; }

/* === Layout & Containers === */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* === Navegación === */
nav {
    background: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}
nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}
.logo {
    display: flex;
    align-items: center;
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 2px;
}
.logo img { height: 40px; margin-right: 10px; }
.nav-links a {
    margin-left: 20px;
    font-size: 0.95rem;
    color: var(--text-dark);
}
.nav-links a:hover { color: var(--primary-color); }
.btn-nav {
    background-color: var(--primary-color);
    color: white !important;
    padding: 8px 15px;
    border-radius: 4px;
}

/* === Hero Section === */
#hero {
    background-image: url('../fondo5.jpeg'); /* Asegúrate de tener la imagen */
    background-size: cover;
    background-position: center;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: black;
    text-align: center;
}
/* Capa de superposición para leer texto mejor */
#hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.6); 
}
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 20px;
}

/* ========================================== */
/* 🌟 AJUSTES AÑADIDOS PARA LA BANDA DE TÍTULO (CON TRANSPARENCIA) */
/* ========================================== */

.highlighted-title, .highlighted-text {
    /* Color de fondo con transparencia (RGBA: R, G, B, Alfa[0.0 a 1.0]) */
    background-color: rgba(141, 153, 46, 0.8); 
    
    /* Crucial: hace que el fondo se ajuste solo al texto y permite padding */
    display: inline-block; 
    
    /* Añade el 'espacio' alrededor del texto para crear la banda */
    padding: 5px 15px; 
    
    /* Asegura que el texto sea visible */
    color: var(--white) !important; 
    
    line-height: 1.2;
    /* Elimina el margen por defecto del h1/p para que las bandas se vean pegadas */
    margin: 0; 
}

/* Ajustes específicos para el H1 */
.hero-content h1 {
    font-size: 3rem; 
    font-weight: bold;
    margin-bottom: 5px; 
}

/* Ajustes específicos para el subtítulo P */
.hero-content p.highlighted-text { 
    font-size: 1.5rem; 
    font-weight: normal; 
    margin-bottom: 30px; 
}

/* ========================================== */

/* === Botones === */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    border: none;
}
.btn-primary { background-color: var(--primary-color); color: white; }
.btn-primary:hover { background-color: var(--primary-dark); }
.btn-success { background-color: var(--success-color); color: white; }
.btn-success:hover { background-color: #1e7e34; }

/* 🌟 NUEVA CLASE: HACE QUE EL BOTÓN GRANDE DEL HERO USE EL COLOR PRIMARIO */
.btn-hero-primary { 
    background-color: var(--primary-color); /* Usa el color principal del header */
    color: var(--white) !important; 
}
.btn-hero-primary:hover { 
    background-color: var(--primary-dark); 
}


/* === Secciones Colapsables === */
.more-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
    opacity: 0;
}
.more-content.expanded {
    max-height: 5000px; /* Suficiente para textos muy largos */
    opacity: 1;
}
.toggle-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    padding: 10px 0;
    display: flex;
    align-items: center;
    margin-top: 15px;
}
.toggle-btn i { margin-left: 8px; }

/* === Grids de Servicios === */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: center;
}
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}
.card {
    background: var(--bg-light);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.service-icon { font-size: 3rem; color: var(--text-dark); margin-bottom: 15px; }

/* === Portal Access Section === */
#access-portals { background-color: var(--white); text-align: center; border-top: 1px solid #ddd; }
.portal-card {
    border: 2px solid #eee;
    padding: 30px;
    border-radius: 10px;
    transition: transform 0.3s;
}
.portal-card:hover { transform: translateY(-5px); border-color: var(--primary-color); }

/* === Contact & Footer === */
#contact { background-color: var(--bg-light); }
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
footer {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 30px 20px;
}
.footer-link { color: white; text-decoration: underline; }

/* Responsive */
@media (max-width: 768px) {
    .contact-grid { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 2rem; }
    .nav-links { display: none; } /* Simplificado para este ejemplo */
} 
/* === Estilos para el Portal de Acceso (Login) === */
        /* Estilos específicos mínimos para centrar la tarjeta de login */
        .login-wrapper {
            min-height: 90vh;
            display: flex;
            align-items: center;
            justify-content: center;
            background-color: var(--bg-light);
        }
        .login-card {
            background: var(--white);
            padding: 40px;
            border-radius: 10px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.1);
            max-width: 400px;
            width: 100%;
            border-top: 5px solid var(--primary-color);
        }
        .login-card h2 { color: var(--text-dark); text-align: center; }
        .instructions { font-size: 0.9rem; line-height: 1.4; margin-bottom: 20px; }
        .form-group { margin-bottom: 15px; }
        .form-group label { display: block; margin-bottom: 5px; font-weight: bold; }
        .input-field { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 4px; box-sizing: border-box; }
        #message { margin-top: 15px; padding: 10px; border-radius: 4px; display: none; text-align: center; font-size: 0.85rem; }
 /* === Ayuda y Resolución de Problemas === */
.help-section {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px dashed #ccc;
}

.help-section h4 {
    font-size: 0.95rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--secondary-color); /* Heredado de style.css */
}

.help-item {
    font-size: 0.85rem;
    margin-bottom: 10px;
    color: #666;
    line-height: 1.3;
}

.help-item i {
    color: var(--primary-color); /* Color Lima */
    margin-right: 5px;
}
/* === Sección de Contacto en Login === */
.login-footer {
    margin-top: 20px;
    padding: 15px;
    background-color: #f1f3f5;
    border-radius: 8px;
    text-align: center;
    font-size: 0.85rem;
}

.btn-contact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    color: var(--primary-color) !important; /* Color Lima */
    font-weight: bold;
    text-decoration: none;
}

.btn-contact:hover {
    text-decoration: underline;
}
/* Banner de Mantenimiento Flotante */
.floating-maintenance-banner {
    background-color: #fee2e2; /* Rojo muy suave */
    border: 1px solid #ef4444; /* Borde rojo vibrante */
    color: #991b1b; /* Texto granate oscuro */
    padding: 12px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    margin: 15px 0 25px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.5s ease-out;
}

.floating-maintenance-banner i {
    font-size: 1.2rem;
    color: #ef4444;
}

@keyframes slideIn {
    from { transform: translateY(-10px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}