:root {
    --primary: #1a237e;
    /* Deep Blue */
    --primary-light: #534bae;
    --primary-dark: #000051;
    --secondary: #ffd700;
    /* Gold */
    --accent: #ff4081;
    --text-main: #333333;
    --text-muted: #666666;
    --bg-light: #f5f5f5;
    --bg-white: #ffffff;
    --glass: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 700;
    line-height: 1.2;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 1s ease forwards;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s ease;
    background: transparent;
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 10px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-main {
    height: 50px;
    transition: transform 0.3s ease;
}

.logo-main:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: color 0.3s;
}

nav.scrolled .nav-links a {
    color: var(--primary);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('IMG/fondo-iglesia.jpg');
    background-size: cover;
    background-position: center center;
    background-attachment: scroll;
    /* Changed from fixed for better mobile compatibility */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding-top: 80px;
}

@media (min-width: 1024px) {
    .hero {
        background-attachment: fixed;
        /* Parallax only for computers */
    }
}

.hero-content h1 {
    font-size: clamp(2rem, 8vw, 4.5rem);
    /* Reducido un poco para móviles */
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: clamp(0.9rem, 4vw, 1.5rem);
    /* Un poco más pequeño en móvil */
    max-width: 800px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Pastors Section Styles */
.message-container {
    max-width: 900px;
}

.pastors-content p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--text-main);
}

.pastors-content .verse {
    font-style: italic;
    color: var(--primary-dark);
    padding-left: 20px;
    border-left: 3px solid var(--secondary);
    margin: 30px 0;
    font-weight: 500;
}

/* Organization Section Styles */
.org-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.org-card {
    background: var(--bg-white);
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    border-top: 5px solid var(--primary);
}

.role-tag {
    background: var(--primary);
    color: white;
    display: inline-block;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.leader-item {
    margin-bottom: 12px;
}

.leader-item .label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

.leader-item .name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.leader-list .name {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--primary-dark);
}

.org-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.info-box {
    background: var(--primary-dark);
    color: white;
    padding: 30px;
    border-radius: 20px;
}

.info-box h4 {
    color: var(--secondary);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.info-box p {
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0.9;
}

/* Sections */
section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.section-title .underline {
    width: 80px;
    height: 4px;
    background: var(--secondary);
    margin: 0 auto;
}

/* Content Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
}

/* Multimedia Section */
.multimedia-section {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.multimedia-section .section-title h2 {
    color: white;
}

.glass-card {
    background: var(--glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    text-align: center;
}

.logo-card {
    height: 80px;
    margin-bottom: 25px;
    object-fit: contain;
}

/* Footer */
footer {
    background: #111;
    color: white;
    padding: 80px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo {
    height: 60px;
    margin-bottom: 20px;
}

.footer-links h4 {
    margin-bottom: 25px;
    font-size: 1.2rem;
}

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

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #999;
    text-decoration: none;
    transition: color 0.3s;
}

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

.copyright {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid #333;
    font-size: 0.9rem;
    color: #666;
}

/* Responsive Menu */
.menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.menu-btn span {
    width: 30px;
    height: 3px;
    background: white;
    transition: 0.3s;
}

nav.scrolled .menu-btn span {
    background: var(--primary);
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .menu-btn {
        display: flex;
    }

    .hero-content h1 {
        font-size: 3rem;
    }
}