/*
 * Archivo: style.css
 * Ubicación: /css/style.css
 *
 * ACTUALIZADO:
 * - Se incrementa padding de .hero-section (Solicitud "más grande").
 * - Se añaden animaciones sutiles (float, pulse) y estilos para nuevo typewriter.
 * - Se añade hover sutil a tarjetas.
 */

:root {
    --relateco-primary: #004a99;
    --relateco-secondary: #007bff;
    --relateco-light: #f8f9fa;
    --relateco-dark: #343a40;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--relateco-dark);
}

/* --- Transiciones y Animaciones --- */
.animate-fade-in {
    animation: fadeIn 0.8s ease-in-out;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-enter-active,
.fade-leave-active {
    transition: opacity 0.3s ease;
}
.fade-enter-from,
.fade-leave-to {
    opacity: 0;
}


/* --- Barra de Navegación --- */
.navbar-brand img {
    max-height: 40px;
}
.nav-link.active {
    font-weight: 600;
    color: var(--relateco-primary) !important;
}

/* --- Encabezado de Página (Nosotros, Contacto, Escuelas) --- */
.page-header-gradient {
    padding: 5rem 1rem;
    color: #fff;
    background: linear-gradient(-45deg, #003a75, #004a99, #005bc5, #007bff);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    margin-bottom: 3rem; 
    border-radius: 0 0 1.5rem 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 74, 153, 0.3);
}

/* Animación del degradado */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}


/* * --- Hero Section (Página de Inicio) --- 
 * *** ACTUALIZADO ***
 * - Se aplica gradiente animado.
 * - Se aumenta padding de 8rem a 10rem (Solicitud "más grande").
 * - Se añade animación 'subtleFloat' al h1.
*/
.hero-section {
    background: linear-gradient(-45deg, #003a75, #004a99, #005bc5, #007bff);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    
    color: white;
    padding: 10rem 1rem; /* Aumentado de 8rem (Req. 3) */
    border-radius: 0 0 2rem 2rem;
    box-shadow: 0 4px 15px rgba(0, 74, 153, 0.3);
}
.hero-section h1 {
    font-size: 3.2rem; 
    font-weight: 700;
    /* (NUEVO) Animación sutil (Req. 4) */
    animation: subtleFloat 5s ease-in-out infinite;
}
.hero-section .lead {
    font-size: 1.25rem;
    font-weight: 300;
    opacity: 0.9;
}

/* --- (NUEVO) Estilos para Typewriter de Países --- */
#country-typewriter-container {
    /* Asignamos una altura mínima para evitar saltos de layout */
    min-height: 40px; 
    display: inline-block;
}
#country-name {
    /* El texto del país tendrá un blanco más brillante */
    color: #fff; 
    font-weight: 600; /* Más audaz que el texto estático */
}
.blinking-cursor {
    font-weight: 300;
    font-size: 1.5rem; 
    color: #fff;
    opacity: 1;
    animation: blink 0.7s infinite;
}
/* Animación del cursor */
@keyframes blink {
    0% { opacity: 1; }
    49% { opacity: 1; }
    50% { opacity: 0; }
    99% { opacity: 0; }
    100% { opacity: 1; }
}

/* --- (NUEVO) Animaciones Sutiles Adicionales (Req. 4) --- */
@keyframes subtleFloat {
    0% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0); }
}

@keyframes pulseShadow {
    0% { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); }
    50% { box-shadow: 0 15px 40px rgba(0, 74, 153, 0.15); }
    100% { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); }
}

/* --- Buscador (Página de Inicio y Perfil) --- */
.search-container {
    background-color: #fff;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-50px);
    margin-bottom: -20px;
    position: relative;
    z-index: 10;
    /* (NUEVO) Aplicando la animación de sombra (Req. 4) */
    animation: pulseShadow 4s ease-in-out infinite;
}
@media (max-width: 767.98px) {
    .search-container {
        transform: translateY(-30px);
        margin-bottom: 0;
        animation: none; /* Desactivar pulso en móvil si se prefiere */
    }
}
.search-container .form-control,
.search-container .btn {
    padding: 0.75rem 1rem;
    font-size: 1rem;
}
.search-container .btn {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

/* --- (NUEVO) Hover sutil para tarjetas en index.php (Req. 4) --- */
.fade-in-section .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.fade-in-section .card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.07) !important;
}


/* --- Sección Contador (Página de Inicio) --- */
.counter-section {
    padding: 4rem 1rem;
}
.counter-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--relateco-primary);
}

/* --- Sección Países (Página de Inicio) --- */
.countries-section {
    background-color: var(--relateco-light);
    padding: 4rem 1rem;
}

/* --- Perfil Público (perfil.php) --- */
.profile-header {
    background-color: var(--relateco-light);
    padding: 2.5rem 1.5rem;
    border-radius: 1rem;
}
.profile-header img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 5px solid #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.profile-details .list-group-item {
    border-bottom: 1px solid #eee !important;
}
.profile-details .list-group-item strong {
    color: var(--relateco-dark);
}

/* --- Página Escuelas (escuelas.php) --- */
.escuela-logo-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: var(--relateco-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}