:root {
    /* Colores principales - paleta espiritual y refinada */
    --primary-gold: #c9a961;
    --primary-deep: #1a3a52;
    --primary-light: #e8dcc4;
    --accent-blue: #4a7ba7;
    --text-dark: #2d2d2d;
    --text-light: #f5f5f5;
    --bg-cream: #faf8f3;
    --bg-gray: #efefef;
    --shadow-soft: rgba(0, 0, 0, 0.08);
    --shadow-medium: rgba(0, 0, 0, 0.15);
}

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

body {
    font-family: 'Crimson Text', serif;
    color: var(--text-dark);
    line-height: 1.8;
    background: var(--bg-cream);
    overflow-x: hidden;
}

/* Tipografía */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Cinzel', serif;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Navegación */
.navbar {
    background: linear-gradient(135deg, var(--primary-deep) 0%, #2d5470 100%);
    padding: 1.5rem 0;
    box-shadow: 0 4px 20px var(--shadow-medium);
    position: sticky;
    top: 0;
    z-index: 1000;
    animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

.nav-logo h1 {
    color: var(--primary-gold);
    font-size: 1.8rem;
    margin-bottom: 0.2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.nav-logo p {
    color: var(--text-light);
    font-size: 0.9rem;
    font-style: italic;
    opacity: 0.9;
}

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

.nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    position: relative;
}

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

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

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

/* Hero Section */
.hero {
    height: 70vh;
    background: linear-gradient(rgba(26, 58, 82, 0.7), rgba(45, 84, 112, 0.8)),
                url('images/templo-trujillo.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(26, 58, 82, 0.4) 100%);
}

.hero-content {
    text-align: center;
    z-index: 1;
    animation: fadeInUp 1s ease-out;
}

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

.hero-title {
    font-size: 3.5rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.5);
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--primary-light);
    font-style: italic;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeIn 0.8s ease-out;
}

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

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-deep);
    margin-bottom: 1rem;
}

.section-header.light h2 {
    color: var(--text-light);
}

.header-line {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-gold), transparent);
    margin: 0 auto;
}

/* Temple Section */
.temple-section {
    padding: 5rem 0;
    background: var(--bg-cream);
}

.temple-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-top: 2rem;
}

.temple-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 40px var(--shadow-medium);
    animation: slideInLeft 1s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.temple-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
}

.temple-image-container:hover .temple-image {
    transform: scale(1.05);
}

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(26, 58, 82, 0.9));
    color: var(--text-light);
    padding: 1.5rem;
    text-align: center;
    font-size: 1.2rem;
    font-family: 'Cinzel', serif;
    letter-spacing: 1px;
}

.temple-text {
    animation: slideInRight 1s ease-out;
}

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

.temple-text p {
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
    line-height: 1.9;
}

.temple-text blockquote {
    border-left: 4px solid var(--primary-gold);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    font-size: 1.3rem;
    color: var(--primary-deep);
}

/* Christ Section */
.christ-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-deep) 0%, #2d5470 100%);
}

.christ-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.christ-card {
    text-align: center;
    animation: fadeInUp 1s ease-out;
    animation-delay: 0.2s;
    opacity: 0;
    animation-fill-mode: forwards;
}

.christ-card:nth-child(2) {
    animation-delay: 0.4s;
}

.christ-card:nth-child(3) {
    animation-delay: 0.6s;
}

.christ-card.featured {
    transform: scale(1.1);
}

.christ-image-wrapper {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    border: 3px solid var(--primary-gold);
}

.christ-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.christ-card:hover .christ-image {
    transform: scale(1.1);
}

.christ-caption {
    margin-top: 1rem;
    font-size: 1.1rem;
    color: var(--primary-light);
    font-family: 'Cinzel', serif;
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
    background: var(--bg-cream);
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    color: var(--primary-deep);
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 2.5rem;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-family: 'Cinzel', serif;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px var(--shadow-soft);
}

.cta-button.primary {
    background: linear-gradient(135deg, var(--primary-gold) 0%, #b89550 100%);
    color: var(--text-dark);
}

.cta-button.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px var(--shadow-medium);
}

.cta-button.secondary {
    background: white;
    color: var(--primary-deep);
    border: 2px solid var(--primary-deep);
}

.cta-button.secondary:hover {
    background: var(--primary-deep);
    color: white;
    transform: translateY(-3px);
}

/* Footer */
.footer {
    background: var(--primary-deep);
    color: var(--text-light);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--primary-gold);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.footer-section p,
.footer-section a {
    color: var(--text-light);
    text-decoration: none;
    opacity: 0.9;
}

.footer-section a:hover {
    color: var(--primary-gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-deep) 0%, #2d5470 100%);
    padding: 4rem 0;
    text-align: center;
    margin-bottom: 3rem;
}

.page-header h1 {
    font-size: 3rem;
    color: var(--primary-gold);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
}

.page-header p {
    font-size: 1.3rem;
    color: var(--text-light);
    font-style: italic;
}

/* Leadership Section */
.leadership-section {
    padding: 4rem 0;
}

.leadership-section.gray-bg {
    background: var(--bg-gray);
}

.leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.leadership-grid.secondary {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.leader-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px var(--shadow-soft);
    transition: all 0.4s ease;
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: backwards;
}

.leader-card:nth-child(1) { animation-delay: 0.1s; }
.leader-card:nth-child(2) { animation-delay: 0.2s; }
.leader-card:nth-child(3) { animation-delay: 0.3s; }
.leader-card:nth-child(4) { animation-delay: 0.4s; }

.leader-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px var(--shadow-medium);
}

.leader-image-wrapper {
    width: 100%;
    height: 300px;
    overflow: hidden;
    position: relative;
}

.leader-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.leader-card:hover .leader-image {
    transform: scale(1.1);
}

.leader-info {
    padding: 1.5rem;
    text-align: center;
}

.leader-name {
    font-size: 1.4rem;
    color: var(--primary-deep);
    margin-bottom: 0.5rem;
    font-family: 'Cinzel', serif;
}

.leader-calling {
    font-size: 1.05rem;
    color: var(--primary-gold);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.leader-responsibility {
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.6;
    font-style: italic;
}

/* Council Grid - para Sumo Consejo */
.council-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
}

/* Auxiliary Organizations */
.aux-section {
    padding: 4rem 0;
}

.aux-section.gray-bg {
    background: var(--bg-gray);
}

.org-description {
    font-size: 1.1rem;
    color: var(--accent-blue);
    font-style: italic;
    margin-top: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .temple-content {
        grid-template-columns: 1fr;
    }
    
    .christ-gallery {
        grid-template-columns: 1fr;
    }
    
    .christ-card.featured {
        transform: scale(1);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .leadership-grid,
    .council-grid {
        grid-template-columns: 1fr;
    }
}
