:root {
    --primary-blue: #0b2545;
    --secondary-blue: #134074;
    --accent-yellow: #e9c46a;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --text-dark: #333333;
    --transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--light-bg);
    color: var(--text-dark);
    line-height: 1.6;
}

/* Header & Navbar */
header {
    background-color: var(--primary-blue);
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
}

.logo {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--white);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--accent-yellow);
}

/* Menú Hamburguesa para móviles */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    transition: var(--transition);
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--primary-blue);
        padding: 1.5rem 0;
        text-align: center;
        box-shadow: 0 5px 10px rgba(0,0,0,0.2);
    }
    .nav-menu.active {
        display: flex;
    }
    .hamburger {
        display: flex;
    }
}

/* Hero Section index con imagen a todo lo ancho */
.hero-index {
    width: 100%;
    height: 70vh;
    background: linear-gradient(rgba(11,37,69,0.5), rgba(19,64,116,0.6)), url('../images/parroquia-hero.jpg') no-repeat center center/cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding: 0 1rem;
}

.hero-index h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-index p {
    font-size: 1.2rem;
    max-width: 700px;
    margin-bottom: 2rem;
}

/* Tarjetas Premium */
.card-premium {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(11,37,69,0.08);
    transition: var(--transition);
    overflow: hidden;
    border-top: 4px solid var(--accent-yellow);
    padding: 1.5rem;
    margin: 1rem 0;
}

.card-premium:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(11,37,69,0.15);
}

/* Footer */
footer {
    background-color: var(--primary-blue);
    color: var(--white);
    text-align: center;
    padding: 2rem 1rem;
    margin-top: 3rem;
}

.map-container {
    width: 100%;
    height: 350px;
    margin-top: 2rem;
}
/* Contenedor principal de la imagen a todo lo ancho */
.hero-full-width {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.hero-image-container {
    position: relative;
    width: 100%;
    height: 65vh; /* Altura adaptable en pantallas de escritorio */
    max-height: 550px;
    min-height: 350px;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Evita que la imagen se deforme al recortarla proporcionalmente */
    display: block;
}

/* Capa de opacidad para mejorar la lectura del texto sobre la imagen */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(11, 37, 69, 0.65), rgba(19, 64, 116, 0.75));
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 1rem;
}

.hero-content {
    color: var(--white);
    max-width: 800px;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
}

.btn-hero {
    background-color: var(--accent-yellow);
    color: var(--primary-blue);
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: var(--transition);
    display: inline-block;
}

.btn-hero:hover {
    background-color: #f4d35e;
    transform: scale(1.05);
}

/* Responsivo para dispositivos móviles */
@media (max-width: 768px) {
    .hero-image-container {
        height: 50vh;
    }
    .hero-content h1 {
        font-size: 1.8rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
}
/* Ajustes al Header y Navbar para máximo aprovechamiento del ancho */
.nav-container {
    max-width: 1400px; /* Ampliado para dar espacio a todos los elementos */
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.5rem;
}

.logo {
    font-size: 1.15rem;
    font-weight: bold;
    color: var(--white);
    text-decoration: none;
    white-space: nowrap; /* Evita que el nombre del sitio se rompa */
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.8rem; /* Reducido levemente para evitar la saturación */
    align-items: center;
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: var(--transition);
    padding: 0.4rem 0.6rem;
    border-radius: 4px;
}

.nav-menu a:hover {
    color: var(--accent-yellow);
}

.nav-link-highlight {
    color: var(--accent-yellow) !important;
    font-weight: bold;
}

/* Botón de salida y login responsivos sin saltos */
.btn-logout {
    background-color: #e76f51;
    color: var(--white) !important;
    font-weight: bold;
    padding: 0.4rem 0.8rem !important;
}

.btn-logout:hover {
    background-color: #d65a3b;
}

.btn-login {
    background-color: var(--accent-yellow);
    color: var(--primary-blue) !important;
    font-weight: bold;
    padding: 0.4rem 0.8rem !important;
}

/* --- ESTILOS DEL SUBMENÚ (DROPDOWN) --- */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--primary-blue);
    min-width: 220px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    list-style: none;
    padding: 0.5rem 0;
    z-index: 1000;
}

.dropdown-menu li a {
    display: block;
    padding: 0.6rem 1rem;
    color: var(--white);
    font-size: 0.85rem;
}

.dropdown-menu li a:hover {
    background-color: var(--secondary-blue);
    color: var(--accent-yellow);
}

/* Mostrar submenú al pasar el cursor en versión escritorio */
@media (min-width: 993px) {
    .dropdown:hover .dropdown-menu {
        display: block;
    }
}

/* Adaptación para Menú Hamburguesa en Movil */
@media (max-width: 992px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--primary-blue);
        padding: 1.5rem 0;
        text-align: center;
        gap: 1rem;
    }

    .nav-menu.active {
        display: flex;
    }

    .dropdown-menu {
        position: static;
        display: none;
        box-shadow: none;
        background-color: var(--secondary-blue);
        margin-top: 0.5rem;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }
}
/* --- ENCABEZADO Y NAVEGACIÓN PRINCIPAL --- */
.main-header {
    background-color: #0b2545;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.7rem 1.5rem;
}

.logo-title {
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.6rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-menu a {
    color: #e0e6ed;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    padding: 0.45rem 0.65rem;
    border-radius: 5px;
    transition: background 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.nav-menu a:hover {
    color: #f4d35e;
    background-color: rgba(255, 255, 255, 0.08);
}

.nav-link-highlight {
    color: #f4d35e !important;
    font-weight: 700 !important;
}

/* --- SUBMENÚ DROPDOWN FLOTANTE --- */
.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #134074;
    min-width: 200px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    list-style: none;
    padding: 0.4rem 0;
    margin-top: 0.3rem;
    z-index: 1050;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown-menu li {
    display: block;
    width: 100%;
}

.dropdown-menu li a {
    display: block;
    width: 100%;
    padding: 0.55rem 1rem;
    color: #ffffff;
    font-size: 0.85rem;
    border-radius: 0;
}

.dropdown-menu li a:hover {
    background-color: #0b2545;
    color: #f4d35e;
}

/* Mostrar dropdown al pasar el mouse en escritorios */
@media (min-width: 993px) {
    .dropdown:hover .dropdown-menu {
        display: block;
    }
}

/* --- SECCIÓN DE AVATAR Y USUARIO EN HEADER --- */
.user-profile-item {
    margin: 0 0.3rem;
}

.user-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid #f4d35e;
    background-color: #ffffff;
}

.user-info {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.user-name {
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 700;
}

.user-role {
    color: #f4d35e;
    font-size: 0.7rem;
}

/* Botón Salir */
.btn-logout {
    background-color: #e76f51 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    padding: 0.4rem 0.85rem !important;
    border-radius: 4px !important;
}

.btn-logout:hover {
    background-color: #d65a3b !important;
}

.btn-login {
    background-color: #f4d35e !important;
    color: #0b2545 !important;
    font-weight: 700 !important;
    padding: 0.4rem 0.85rem !important;
    border-radius: 4px !important;
}

/* --- ADAPTACIÓN RESPONSIVA (MENÚ HAMBURGUESA) --- */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 24px;
    height: 3px;
    background-color: #ffffff;
    border-radius: 2px;
}

@media (max-width: 992px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #0b2545;
        padding: 1.2rem 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.3);
        align-items: center;
        gap: 0.8rem;
    }

    .nav-menu.active {
        display: flex;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        background-color: #134074;
        margin-top: 0.4rem;
        border: none;
    }

    .dropdown:hover .dropdown-menu {
        display: none;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }
}