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

:root {
    --color-black: #000000;
    --color-black-dark: #0a0a0a;
    --color-black-light: #1a1a1a;
    --color-white: #ffffff;
    --color-wine: #3d1a1f;
    --color-wine-dark: #2d1418;
    --color-wine-light: #4d2026;
    --color-wood: #2c1810;
    --color-wood-dark: #1f1008;
    --color-wood-light: #3d2817;
    --color-gold: #d4af37;
    --color-gold-dark: #b8941f;
    --color-gold-light: #f4e4bc;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-black);
    color: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Home Page Background */
body.home-page {
    background-image: url('images/fondo.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

body.home-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    pointer-events: none;
    z-index: -1;
}

/* Header */
.header {
    background: var(--color-black);
    border-bottom: 3px solid var(--color-wine);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
}

.logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.site-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-gold);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    letter-spacing: 2px;
}

/* Navigation */
.nav-toggle {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--color-wine);
    transition: all 0.3s;
}

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

.nav-link {
    color: var(--color-white);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-link.active {
    color: var(--color-wine);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--color-wine);
    transition: width 0.3s;
}

.nav-link:hover,
.nav-link.active::after {
    color: var(--color-wine);
    width: 100%;
}

/* Hero Section with Image */
.hero {
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-with-image {
    padding: 0;
    min-height: 80vh;
}

.hero-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.5) 100%);
}

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

.hero-title {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    color: var(--color-gold);
    margin-bottom: 1rem;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.9);
    letter-spacing: 3px;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--color-white);
    font-weight: 400;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s;
    border: 3px solid;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--color-wine);
    color: var(--color-white);
    border-color: var(--color-wine);
}

.btn-primary:hover {
    background: var(--color-wine-dark);
    border-color: var(--color-wine-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(114, 47, 55, 0.6);
}

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

.btn-secondary:hover {
    background: var(--color-gold);
    color: var(--color-black);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.6);
}

/* Section Styles */
.section {
    padding: 5rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: var(--color-gold);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
}

.golden-divider {
    width: 100px;
    height: 3px;
    background: var(--color-wine);
    margin: 1rem auto;
    position: relative;
}

.golden-divider::before,
.golden-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 10px;
    height: 10px;
    background: var(--color-wine);
    transform: translateY(-50%) rotate(45deg);
}

.golden-divider::before {
    left: -20px;
}

.golden-divider::after {
    right: -20px;
}

.section-description {
    color: var(--color-white);
    opacity: 0.9;
    font-size: 1rem;
    margin-top: 1rem;
}

/* Prayers Page Layout */
.prayers-page {
    background: var(--color-black);
}

.prayers-page-section {
    min-height: calc(100vh - 100px);
    padding-top: 2rem;
}

.prayers-content {
    background: var(--color-black-light);
    border: 3px solid var(--color-wood);
    padding: 3rem;
    border-radius: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    position: relative;
}

.prayers-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--color-wine);
}

.prayer-section-title {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--color-gold);
    margin: 2rem 0 1rem 0;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
}

.prayer-icon-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
    padding: 1.5rem 0;
}

.prayer-icon {
    max-width: 300px;
    width: 100%;
    height: auto;
    border: 3px solid var(--color-wood);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.6);
    object-fit: contain;
}

.prayer-section-content {
    margin-bottom: 2rem;
}

.prayer-text {
    color: var(--color-white);
    line-height: 2;
    margin-bottom: 1rem;
    font-size: 1.05rem;
    text-align: justify;
}

.prayer-item {
    color: var(--color-white);
    line-height: 2;
    margin-bottom: 1rem;
    font-size: 1.05rem;
    padding-left: 1rem;
}

.prayer-prostration {
    color: var(--color-wine);
    font-style: italic;
    text-align: center;
    margin: 1.5rem 0;
    font-size: 0.95rem;
    font-weight: 600;
}

/* Apologetics Article Page */
.apologetics-page {
    background: var(--color-black);
}

.apologetics-page-section {
    padding: 2rem 0 4rem;
    min-height: calc(100vh - 100px);
}

.apologetics-content {
    background: var(--color-black-light);
    border: 3px solid var(--color-wood);
    padding: 3rem;
    border-radius: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    position: relative;
}

.apologetics-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--color-wine);
}

.apologetics-content .article-title {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    color: var(--color-gold);
    margin-bottom: 1.5rem;
    line-height: 1.3;
    font-weight: 700;
}

.apologetics-content h2 {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    color: var(--color-gold-light);
    margin: 2rem 0 1rem 0;
    font-weight: 700;
}

.apologetics-content p {
    color: var(--color-white);
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 1.05rem;
    text-align: justify;
}

.apologetics-content ul {
    margin: 1rem 0 1.5rem 1.5rem;
    color: var(--color-white);
}

.apologetics-content li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
    text-align: justify;
}

.apologetics-content .article-divider {
    border: none;
    border-top: 1px solid var(--color-wood);
    margin: 2rem 0;
}

/* SERAPH Fullscreen Page */
.seraph-page {
    background: var(--color-black);
    height: 100vh;
    overflow: hidden;
}

.seraph-fullscreen {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    z-index: 1;
}

.seraph-fullscreen-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: var(--color-black);
}

/* Footer */
.footer {
    background: var(--color-black);
    border-top: 3px solid var(--color-wine);
    padding: 3rem 0;
    text-align: center;
}

.footer-content p {
    color: var(--color-white);
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.footer-subtitle {
    color: var(--color-gold) !important;
    opacity: 1 !important;
    font-style: italic;
    font-size: 0.9rem;
}

/* Responsive Design */

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

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-black);
        flex-direction: column;
        padding: 2rem;
        border-top: 3px solid var(--color-wine);
        gap: 1rem;
    }

    .nav-menu.active {
        display: flex;
    }

    .site-title {
        font-size: 1.2rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }


    .prayers-content,
    .apologetics-content {
        padding: 2rem 1.5rem;
    }

    .apologetics-content .article-title {
        font-size: 1.4rem;
    }

    .apologetics-content h2 {
        font-size: 1.2rem;
    }

    .prayer-icon {
        max-width: 250px;
    }

    .seraph-fullscreen {
        top: 70px;
        height: calc(100vh - 70px);
    }
}

@media (max-width: 480px) {
    .logo {
        width: 50px;
        height: 50px;
    }

    .hero {
        padding: 4rem 0;
        min-height: 60vh;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.85rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
::selection {
    background: var(--color-wine);
    color: var(--color-white);
}
