/* Variables */
:root {
    --color-sand: #e6d7c3;
    --color-sand-light: #f5f0e6;
    --color-ochre: #c19a6b;
    --color-ochre-dark: #a67c52;
    --color-brown: #6d4c3d;
    --color-brown-dark: #3c2a21;
    --color-white: #ffffff;
    --color-off-white: #f9f7f4;
    --color-black: #1a1a1a;
    --color-gray: #4a4a4a;
    
    --font-primary: 'Playfair Display', serif;
    --font-secondary: 'Raleway', sans-serif;
    
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-gray);
    background-color: var(--color-off-white);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Header Styles */
.header {
    position: fixed;
    top: 46px; /* Ajustado para la barra de redes sociales */
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 999; /* Reducido para que esté debajo de la barra social */
    transition: var(--transition);
}

.header.scrolled {
    background-color: var(--color-white);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo a {
    display: flex;
    align-items: center;
}

.logo h1 {
    font-family: var(--font-primary);
    font-size: 28px;
    font-weight: 700;
    color: var(--color-brown-dark);
    letter-spacing: 1px;
}

.logo h1 span {
    font-weight: 400;
    color: var(--color-ochre);
    margin-left: 5px;
}

.main-nav {
    display: flex;
}

.nav-list {
    display: flex;
    align-items: center;
}

.nav-list li {
    margin: 0 15px;
}

.nav-link {
    font-family: var(--font-secondary);
    font-size: 16px;
    font-weight: 500;
    color: var(--color-gray);
    padding: 5px 0;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-ochre-dark);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-ochre-dark);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.bar {
    width: 100%;
    height: 3px;
    background-color: var(--color-brown-dark);
    transition: var(--transition);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 700px;
    background: linear-gradient(135deg, var(--color-brown-dark), var(--color-ochre));
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    margin-top: 126px; /* Ajustado para el header + barra social */
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/texture-bg.png');
    opacity: 0.05;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.hero-text {
    flex: 0 0 50%;
    max-width: 50%;
    padding-right: 30px;
}

.hero-text h2 {
    font-family: var(--font-secondary);
    font-size: 24px;
    font-weight: 400;
    color: var(--color-ochre);
    margin-bottom: 10px;
}

.hero-text h1 {
    font-family: var(--font-primary);
    font-size: 60px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-brown-dark);
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 18px;
    margin-bottom: 30px;
    color: var(--color-gray);
    max-width: 90%;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    font-family: var(--font-secondary);
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    border-radius: 4px;
    transition: var(--transition);
    cursor: pointer;
}

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

.btn-primary:hover {
    background-color: var(--color-ochre-dark);
    border-color: var(--color-ochre-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(166, 124, 82, 0.2);
}

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

.btn-secondary:hover {
    background-color: var(--color-brown);
    color: var(--color-white);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(109, 76, 61, 0.2);
}

.hero-bible-container {
    flex: 0 0 50%;
    max-width: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

#bible-3d {
    width: 100%;
    height: 500px;
    position: relative;
    cursor: pointer;
}

/* Los estilos para los versículos ahora se aplicarán directamente a los elementos dentro de la biblia 3D */
.verse-text {
    font-family: var(--font-primary);
    font-size: 16px;
    font-style: italic;
    color: var(--color-brown-dark);
    line-height: 1.6;
    text-align: center;
    padding: 20px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    pointer-events: none;
}

/* Responsive Styles */
@media screen and (max-width: 992px) {
    .hero-content {
        flex-direction: column;
    }
    
    .hero-text, .hero-bible-container {
        flex: 0 0 100%;
        max-width: 100%;
        padding-right: 0;
        margin-bottom: 40px;
    }
    
    .hero-text h1 {
        font-size: 48px;
    }
    
    .hero {
        height: auto;
        padding: 120px 0 60px;
    }
}

@media screen and (max-width: 768px) {
    .header-content {
        height: 70px;
    }
    
    .main-nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--color-white);
        transition: var(--transition);
        z-index: 999;
    }
    
    .main-nav.active {
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        width: 100%;
        height: 100%;
        justify-content: center;
        padding: 30px 0;
    }
    
    .nav-list li {
        margin: 15px 0;
    }
    
    .nav-link {
        font-size: 20px;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-text h1 {
        font-size: 36px;
    }
    
    .hero-text h2 {
        font-size: 20px;
    }
    
    .hero-text p {
        font-size: 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn {
        width: 100%;
    }
}

@media screen and (max-width: 480px) {
    .hero-text h1 {
        font-size: 32px;
    }
    
    .logo h1 {
        font-size: 24px;
    }
}
