/* Variables y configuración global */
:root {
    --primary-color: #2E8B57;
    --primary-dark: #1E5E3A;
    --secondary-color: #6c757d;
    --accent-color: #198754;
    --light-color: #f8f9fa;
    --dark-color: #121212;
    --gray-light: #e9ecef;
    --gray: #6c757d;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
    --border-radius: 12px;
    --spacing: 1rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--white);
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing);
}

/* Header y Navegación */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
   display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing);
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-color);
}

.logo img {
    height: 50px; /* Ajusta la altura según necesites */
    width: auto;
    margin-right: 10px;
}

.logo i {
    font-size: 2rem;
    margin-right: 0.5rem;
}

.logo span {
    font-weight: 700;
    line-height: 1.2;
}

.logo small {
    font-size: 0.8rem;
    color: var(--gray);
    font-weight: 400;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu li {
    position: relative; /* Necesario para posicionar la línea */
}





.nav-menu a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    padding: 0.5rem 0.5rem;    
    position: relative; /* Necesario para la línea */
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu .dropdown {
    position: relative;
}

.nav-menu .dropdown .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: var(--shadow);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    list-style: none;
    padding: 0.5rem 0;
    min-width: 220px;
    z-index: 1001;
    border-top: 3px solid var(--primary-color);
}

.nav-menu .dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu a {
    padding: 0.75rem 1.5rem;
    width: 100%;
    display: block;
}

.dropdown-menu a::after {
    display: none;
}

.btn-nav {
    background: var(--primary-color);
    color: var(--white) !important;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    border-radius: 50px;
}

.btn-nav:hover {
    background: var(--primary-dark);
}

.dropdown-icon {
    font-size: 0.8em;
    margin-left: 0.3rem;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
    color: var(--white);
    padding: 6rem 0 5rem; /* Reducido el padding superior */
}

.header.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing);
    width: 100%;
}

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

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease-out forwards;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.8);
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.3s forwards;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.8);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.6s forwards;
}

.hero-image {
    text-align: center;
    padding: 110px;
}

.image-placeholder {
    background: rgba(255, 255, 255, 0.1);
    margin-top: 30px;
    backdrop-filter: blur(5px);
}

/* --- Estilos para Hero Centrado y Moderno --- */
.hero-content.hero-centered {
    grid-template-columns: 1fr; /* Fuerza una sola columna */
    text-align: center;
    justify-items: center;
    width: 100%;
}

.hero-text.glass-effect {
    
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 3rem;
    
    
    max-width: 900px;
    margin: 0 auto; /* Centra el contenedor */
    
}

.hero-content.hero-centered .hero-buttons {
    justify-content: center; /* Centra los botones flex */
}

.welcome-small {
    font-size: 0.5em;
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 400;
    letter-spacing: 1px;
}

.highlight-text {
    display: inline-flex;
    align-items: center;
    gap: 15px; /* Espacio entre el texto y las líneas */
}

.highlight-text::before,
.highlight-text::after {
    content: '';
    height: 4px;
    width: 60px; /* Largo de la línea */
    border-radius: 10px;
    /* Degradado colorido: Verde a Amarillo/Dorado */
    background: linear-gradient(90deg, #f1c40f, #2E8B57, #f1c40f);
    background-size: 200% auto;
    animation: shine 3s linear infinite; /* Animación opcional de brillo */
}

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--white);
    color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--gray-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Secciones */
.section {
    padding: 5rem 0;
}

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

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.section-subtitle {
    color: var(--gray);
    font-size: 1.1rem;
}

/* Cards */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Creencias */
.beliefs-section {
    margin: 4rem 0;
}

.beliefs-section h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.beliefs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.belief-item {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.belief-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Testimonios */
.testimonial-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.testimonial-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.testimonial-content {
    margin-bottom: 1.5rem;
    font-style: italic;
    color: var(--gray);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.author-info h4 {
    margin-bottom: 0.25rem;
}

.author-info p {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Horario */
.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.schedule-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.schedule-day {
    background: var(--primary-color);
    color: var(--white);
    padding: 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.schedule-day i {
    font-size: 2rem;
}

.schedule-events {
    padding: 2rem;
}

.event {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-light);
}

.event:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.event-time {
    display: inline-block;
    background: var(--light-color);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* DNI */
.dni-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 3rem;
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.dni-content h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
}

.dni-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.detail {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.detail i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.dni-image {
    text-align: center;
}

.dni-image i {
    font-size: 8rem;
    color: var(--primary-color);
    opacity: 0.8;
}

/* Recursos */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.resource-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: block;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.resource-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.resource-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 1rem;
}

/* Donaciones */
.giving-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
}

.giving-info h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
}

.verse {
    background: var(--light-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-top: 2rem;
    position: relative;
}

.verse i {
    position: absolute;
    top: -10px;
    left: 20px;
    background: var(--white);
    padding: 0.5rem;
    border-radius: 50%;
    color: var(--primary-color);
}

.verse cite {
    display: block;
    text-align: right;
    color: var(--gray);
    font-style: normal;
    margin-top: 0.5rem;
}

.giving-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.method-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.method-header {
    background: var(--primary-color);
    color: var(--white);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.method-content {
    padding: 2rem;
    text-align: center;
}

.qr-code {
    font-size: 5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.phone-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.bank-details p {
    margin-bottom: 0.5rem;
}

/* Contacto */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 0.25rem;
}

.contact-item h3 {
    margin-bottom: 0.5rem;
}

.map-placeholder {
    background: var(--white);
    border-radius: var(--border-radius);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}

.map-placeholder i {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 3rem 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-logo i {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.footer-links h4,
.footer-social h4 {
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--gray-light);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.copyright {
    color: var(--gray);
    font-size: 0.9rem;
    margin-top: 2rem;
}