@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&family=Lora:ital,wght@0,400;0,700;1,400&display=swap');

:root {
    --primary-color: #8B5A2B; /* Marrón dorado para estilo bíblico */
    --secondary-color: #D4B483; /* Dorado claro */
    --accent-color: #A67C52; /* Marrón medio */
    --text-color: #4A4238; /* Marrón oscuro para texto */
    --bg-color: #F5F0E6; /* Beige claro para fondo */
    --paper-color: #FFF8E8; /* Color papel antiguo */
    --shadow-color: rgba(139, 90, 43, 0.2); /* Sombra suave */
}

body {
    font-family: 'Lora', serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    background-image: url('../background/fondo.webp');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    position: relative;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(245, 240, 230, 0.85);
    z-index: -1;
}

header {
    background-color: var(--paper-color);
    color: var(--primary-color);
    text-align: center;
    padding: 2em 0;
    box-shadow: 0 4px 12px var(--shadow-color);
    position: relative;
    border-bottom: 2px solid var(--secondary-color);
}

header h1 {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    margin: 0.5rem 0;
    font-size: 2.5rem;
    color: var(--primary-color);
    text-shadow: 1px 1px 2px var(--shadow-color);
}

header p {
    font-style: italic;
    margin-top: 0.5rem;
    color: var(--accent-color);
}

header img {
    display: block;
    margin: 0 auto;
    width: 120px;
    height: auto;
    transition: transform 0.3s ease;
}

header img:hover {
    transform: scale(1.05);
}

.menu-container {
    display: flex;
    justify-content: center;
    margin: 10px 0;
}

#menu-button {
    cursor: pointer;
    transition: transform 0.3s ease;
    width: 24px;
    height: 24px;
}

#menu-button:hover {
    transform: scale(1.2);
}

nav {
    background-color: var(--paper-color);
    border-bottom: 1px solid var(--secondary-color);
}

nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav ul li {
    margin: 0;
}

nav ul li a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    padding: 1rem 1.5rem;
    display: block;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-family: 'Cinzel', serif;
}

nav ul li a:hover {
    background-color: var(--secondary-color);
    color: var(--paper-color);
}

main {
    padding: 2rem;
    max-width: 900px;
    margin: 2rem auto;
    background-color: var(--paper-color);
    box-shadow: 0 4px 15px var(--shadow-color);
    border-radius: 8px;
    border: 1px solid var(--secondary-color);
    text-align: center;
}

section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 5px;
    border-left: 4px solid var(--primary-color);
    text-align: center;
}

.book-promotion p {
    font-size: 1.1rem;
    text-align: center;
    color: var(--text-color);
    max-width: 800px;
    margin: 1rem auto;
    line-height: 1.8;
    padding: 0 1rem;
}

h2 {
    color: var(--primary-color);
    font-family: 'Cinzel', serif;
    font-weight: 700;
    margin-top: 0;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.5rem;
}

p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.donate-button {
    display: block;
    width: 100%;
    padding: 0.8rem 1.5rem;
    margin: 10px 0;
    background-color: var(--primary-color);
    color: var(--paper-color);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-family: 'Cinzel', serif;
    font-weight: bold;
    box-shadow: 0 2px 5px var(--shadow-color);
}

.donate-button:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
}

.donate-button:active {
    transform: translateY(0);
}

.book-promotion {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    background: linear-gradient(135deg, var(--paper-color), #fff, var(--paper-color));
    border-radius: 15px;
    margin: 2rem auto;
    position: relative;
    overflow: hidden;
    max-width: 900px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.book-promotion h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.15);
    font-family: 'Cinzel', serif;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1.3;
    position: relative;
    padding-bottom: 1rem;
    width: 100%;
}

.book-promotion p {
    font-size: 1.1rem;
    text-align: center;
    color: var(--text-color);
    max-width: 800px;
    margin: 1rem auto;
    line-height: 1.8;
    padding: 0 1rem;
    width: 100%;
}

.book-promotion::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    box-shadow: 0 2px 10px rgba(139, 90, 43, 0.3);
}

.book-promotion::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(255, 248, 232, 0.8) 100%);
    pointer-events: none;
}

.book-cover {
    max-width: 350px;
    height: auto;
    margin: 2rem 0;
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    transform: perspective(1000px) rotateY(0deg);
    transition: transform 0.6s ease, box-shadow 0.3s ease;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.book-cover:hover {
    transform: perspective(1000px) rotateY(10deg) translateY(-10px);
    box-shadow: -10px 10px 25px rgba(0, 0, 0, 0.3);
}

.buy-button {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    padding: 1rem 2rem;
    font-size: 1.2rem;
    color: var(--paper-color);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-family: 'Cinzel', serif;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    margin: 1.5rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.buy-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    background: linear-gradient(45deg, var(--accent-color), var(--primary-color));
}

.buy-button:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.book-promotion h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(to right, var(--secondary-color), var(--primary-color));
}

.book-promotion .book-subtitle {
    font-size: 1.2rem;
    color: var(--accent-color);
    text-align: center;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
    font-family: 'Lora', serif;
    font-style: italic;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.book-promotion p {
    font-size: 1.1rem;
    text-align: justify;
    color: var(--text-color);
    max-width: 800px;
    margin: 1rem auto;
    line-height: 1.8;
    padding: 0 1rem;
}

.neon-box {
    border-left: 4px solid var(--primary-color);
}

footer {
    background-color: var(--paper-color);
    color: var(--primary-color);
    text-align: center;
    padding: 1rem 0;
    box-shadow: 0 -4px 12px var(--shadow-color);
    border-top: 2px solid var(--secondary-color);
    margin-top: 2rem;
    /* Aseguramos que el footer siempre sea visible */
    opacity: 1 !important;
}

/* Eliminamos la clase hidden para que el footer nunca se oculte */
/* footer.hidden {
    opacity: 0;
} */

footer nav ul {
    margin-top: 0.5rem;
}

/* Estilos responsivos */
/* Pantallas grandes y medianas */
@media (min-width: 1200px) {
    main {
        max-width: 1100px;
    }
    
    .donation-options {
        display: flex;
        justify-content: space-between;
        gap: 20px;
    }
    
    .donation-option {
        flex: 1;
    }
}

/* Tablets y pantallas medianas */
@media (max-width: 992px) {
    main {
        max-width: 800px;
        margin: 1.5rem auto;
    }
    
    .donation-options {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    header img {
        width: 100px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    header p {
        font-size: 0.9rem;
        padding: 0 10px;
    }
    
    main {
        padding: 1rem;
        margin: 1rem auto;
        width: 90%;
    }
    
    section {
        padding: 1rem;
    }
    
    nav ul {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    nav ul li {
        width: auto;
    }
    
    nav ul li a {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
    
    .book-cover {
        max-width: 150px;
    }
    
    .donation-options {
        flex-direction: column;
        align-items: center;
    }
    
    .donation-option {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .buy-button {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    header img {
        width: 80px;
    }
    
    header h1 {
        font-size: 1.5rem;
    }
    
    header p {
        font-size: 0.85rem;
        padding: 0 8px;
    }
    
    main {
        padding: 0.8rem;
        margin: 0.8rem auto;
        width: 95%;
    }
    
    section {
        padding: 0.8rem;
        margin-bottom: 1.5rem;
    }
    
    h2 {
        font-size: 1.3rem;
        padding-bottom: 0.4rem;
    }
    
    p {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .book-cover {
        max-width: 120px;
    }
    
    .donate-button {
        padding: 10px 15px;
        font-size: 0.9rem;
        margin: 8px 0;
    }
    
    .buy-button {
        padding: 8px 12px;
        font-size: 0.85rem;
        margin-right: 0.3rem;
        margin-bottom: 0.3rem;
    }
    
    nav ul li a {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }
}

/* Para dispositivos muy pequeños */
@media (max-width: 320px) {
    header img {
        width: 70px;
    }
    
    header h1 {
        font-size: 1.3rem;
    }
    
    main {
        padding: 0.6rem;
        margin: 0.6rem auto;
        width: 98%;
    }
    
    section {
        padding: 0.6rem;
    }
    
    h2 {
        font-size: 1.2rem;
    }
    
    .book-cover {
        max-width: 100px;
    }
    
    .donate-button, .buy-button {
        padding: 8px 10px;
        font-size: 0.8rem;
    }
    
    nav ul li a {
        padding: 0.5rem 0.6rem;
        font-size: 0.8rem;
    }
}
