/* Paleta de Colores y Tipografía Global */
:root {
    --primary-color: #05338D; /* Azul distintivo */
    --light-bg: #f8f9fa;     /* Gris claro para secciones alternas */
    --dark-bg: #343a40;      /* Gris oscuro para el footer */
    --text-color-dark: #343a40; /* Texto oscuro general */
    --text-color-light: #f8f9fa; /* Texto claro para fondos oscuros */
    --font-family-base: 'Roboto', sans-serif; /* Fuente principal */
    --font-family-heading: 'Montserrat', sans-serif; /* Fuente para títulos */
}

/* Importación de Fuentes de Google */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Roboto:wght@300;400;700&display=swap');

body {
    font-family: var(--font-family-base);
    color: var(--text-color-dark);
    line-height: 1.6;
    background-color: #fff; /* Fondo blanco general */
    overflow-x: hidden; /* Previene scroll horizontal */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-heading);
    color: var(--primary-color);
    font-weight: 700;
}

/* Navbar Personalizado */
.navbar {
    padding-top: 15px;
    padding-bottom: 15px;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}

.nav-link {
    color: var(--text-color-dark) !important;
    font-weight: 500;
    margin-left: 15px;
    transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color) !important;
    text-decoration: underline;
    text-underline-offset: 5px;
}

/* Botones Primarios */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 12px 30px;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #032158; /* Tono más oscuro del azul primario */
    border-color: #032158;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* --- SECCIÓN HERO (ACTUALIZADA PARA LA IMAGEN) --- */
.hero-section {
    min-height: 100vh;
    padding-top: 120px;
    padding-bottom: 80px;
    background: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.1)), url('../img/aguas.jpg') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    color: white;
    position: relative;
}

.hero-title {
    font-size: 3.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    color: #fff !important;
}

/* Recuadro de información con borde blanco de la imagen */
.amparo-container {
    border: 2px solid white;
    padding: 40px;
    margin-top: 20px;
    background: rgba(0, 0, 0, 0.2); /* Fondo sutil para legibilidad */
}

/* Subtítulo con líneas laterales */
.line-subtitle {
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
    font-size: 1.25rem;
    margin: 20px 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    font-family: var(--font-family-heading);
    text-transform: uppercase;
}

.line-subtitle::before, .line-subtitle::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid white;
}

.line-subtitle:not(:empty)::before { margin-right: 15px; }
.line-subtitle:not(:empty)::after { margin-left: 15px; }

.btn-hero-custom {
    padding: 15px 40px;
    font-weight: bold;
    font-size: 1.1rem;
    border-radius: 5px; /* Botones más rectangulares como en la imagen */
}

/* --- FIN SECCIÓN HERO ACTUALIZADA --- */

.icon-lg {
    font-size: 3.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

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

.logros-section .card {
    background-color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 10px;
    overflow: hidden;
}

.logros-section .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15) !important;
}

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

.conoce-section .bio-img {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border: 8px solid var(--primary-color);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.galeria-section .carousel-item img {
    height: 550px;
    object-fit: cover;
    border-radius: 12px;
}

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

.social-links a {
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color) !important;
    transform: translateY(-3px);
}

/* Animaciones */
.animate-fade-in { animation: fadeIn 1.2s ease-out backwards; }
.animate-slide-up { animation: slideUp 1.2s ease-out backwards; }

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Media Queries */
@media (max-width: 991px) {
    .hero-title { font-size: 2.8rem; }
}

@media (max-width: 767px) {
    .hero-section {
        padding-top: 100px;
        background-position: 75% center;
    }
    .hero-title { font-size: 2.2rem; }
    .amparo-container { padding: 20px; }
    .line-subtitle { font-size: 1rem; }
}