/* ARCHIVO: temple-styles.css - Estilos Generales */

/* Reset y variables */
:root {
    --gold: #d4af37;
    --deep-blue: #1a237e;
    --royal-purple: #4a148c;
    --scarlet: #b71c1c;
    --ivory: #fffcf5;
    --dark-wood: #5d4037;
    --light-gold: #f9f295;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

body {
    font-family: 'Raleway', sans-serif;
    background-color: var(--deep-blue);
    background-image: linear-gradient(45deg, var(--deep-blue), var(--royal-purple));
    color: var(--ivory);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Cinzel', serif;
    font-weight: 700;
}

/* Header y Navegación */
.main-header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(26, 35, 126, 0.9);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.main-header.scrolled {
    background: rgba(26, 35, 126, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

.logo h1 {
    color: var(--gold);
    font-size: 1.8rem;
    text-decoration: none;
}

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

.nav-links a {
    color: var(--ivory);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.highlight::after {
    width: 100%;
}

.nav-links a.highlight {
    color: var(--gold);
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--deep-blue), var(--royal-purple));
    background-image: url('../images/temple-hero-bg.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
}

.hero-title {
    font-size: 4.5rem;
    color: var(--gold);
    margin-bottom: 1rem;
    animation: fadeInDown 1s ease-out;
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.6);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.scroll-indicator span {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--ivory);
}

.arrow {
    width: 30px;
    height: 30px;
    border-right: 2px solid var(--gold);
    border-bottom: 2px solid var(--gold);
    transform: rotate(45deg);
    animation: bounce 2s infinite;
}

/* Sections */
.section {
    padding: 5rem 2rem;
    background-attachment: fixed;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    color: var(--gold);
    text-align: center;
    margin-bottom: 3rem;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

/* Overview Section */
.overview-section {
    background: rgba(0, 0, 0, 0.2);
}

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

.content-text {
    backdrop-filter: blur(5px);
    background: rgba(0, 0, 0, 0.5);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.content-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Temple Components */
.temple-components {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.component-card {
    background: rgba(0, 0, 0, 0.6);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    position: relative;
}

.component-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--royal-purple), var(--gold));
}

.component-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.component-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

.component-icon {
    font-size: 2.5rem;
}

.component-header h3 {
    color: var(--gold);
    font-size: 1.5rem;
}

.component-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
}

.component-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.component-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.component-description, .component-symbolism {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    border-radius: 8px;
}

.component-description h4, .component-symbolism h4 {
    color: var(--gold);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.component-3d-link {
    display: inline-block;
    background: rgba(74, 20, 140, 0.6);
    color: var(--ivory);
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    text-align: center;
    margin-top: 1rem;
    align-self: flex-start;
    border: 1px solid rgba(212, 175, 55, 0.5);
}

.component-3d-link:hover {
    background: var(--gold);
    color: var(--deep-blue);
    transform: translateY(-3px);
}

/* Symbolism Section */
.symbolism-section {
    background: rgba(0, 0, 0, 0.5);
    background-image: url('images/symbolism-bg.jpg');
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
}

.symbolism-content {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.7);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.symbolism-content p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.symbolism-content .btn {
    margin-top: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    transition: var(--transition);
    font-weight: 600;
}

.btn-primary {
    background: var(--gold);
    color: var(--deep-blue);
}

.btn-primary:hover {
    background: var(--light-gold);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
}

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

.btn-secondary:hover {
    background: var(--gold);
    color: var(--deep-blue);
}

.btn-large {
    padding: 1rem 3rem;
    font-size: 1.2rem;
}

/* Footer */
.main-footer {
    background: rgba(0, 0, 0, 0.8);
    padding: 3rem 2rem;
}

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

.footer-info h3 {
    color: var(--gold);
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: var(--ivory);
    text-decoration: none;
    transition: var(--transition);
}

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

/* Loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--deep-blue);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 1s;
}

.loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-icon {
    width: 80px;
    height: 80px;
    border: 6px solid rgba(212, 175, 55, 0.3);
    border-top: 6px solid var(--gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader-text {
    position: absolute;
    bottom: 40%;
    color: var(--gold);
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
}

/* Animations */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) rotate(45deg); }
    40% { transform: translateY(-10px) rotate(45deg); }
    60% { transform: translateY(-5px) rotate(45deg); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 1100px) {
    .component-content {
        grid-template-columns: 1fr;
    }

    .component-image {
        max-height: 300px;
    }
}

@media (max-width: 768px) {
    .main-nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }

    .component-header {
        flex-direction: column;
        text-align: center;
    }
}