:root{
    --red: var(--red);
    --gold: var(--gold);
    --white: var(--white);
    --shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 65px;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #ffffff 0%, rgba(201, 169, 97, 0.08) 50%, rgba(138, 0, 5, 0.06) 100%);
    color: #1a1a1a;
    line-height: 1.7;
}

img {
    display: block;
    width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 2px solid rgba(201, 169, 97, 0.3);
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
}

.logo {
    font-size: 0.98rem;
    line-height: 1.2;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #1a1a1a;
}

.logo .gold {
    display: inline-block;
    font-family: 'Cinzel', serif;
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 4px;
}

.navbar ul {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    list-style: none;
}

.navbar a {
    color: #470003;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.navbar a:hover {
    color: var(--gold);
}

/* Fondo del hero con imagen de fondo */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 90px 24px;
    background: url('../img/herobackground.png') center/cover no-repeat;
    overflow: hidden;
}

/* 2. Modificá el .hero-overlay para las partículas de polvo estelar */
.hero-overlay {
    position: absolute;
    inset: 0;
    background-size: 8px 8px, 16px 16px;
    background-position: 0 0, 4px 4px;
    opacity: 0.25;
    mix-blend-mode: color-dodge;
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 40px;
}

.hero-text {
    max-width: 650px;
}

.subtitle {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--gold);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.hero h1 {
    font-family: 'Cinzel', serif;
    font-size: clamp(2.4rem, 5vw, 4.4rem);
    line-height: 1.05;
    color: var(--gold);
    margin-bottom: 18px;
}

.hero h1 span {
    display: block;
    font-size: clamp(1.1rem, 2.6vw, 1.75rem);
    color: var(--white);
    margin-top: 8px;
}

.hero-title {
    margin: 30px 0;
    line-height: 0.88;
}

.hero-title .ile {
    font-family: 'Cinzel', serif;
    font-size: 7rem;
    font-weight: 700;
    color: #6f0f16;
    margin: 0;
    text-transform: uppercase;
}

.hero-title .reino {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    font-weight: 600;
    color: #111;
    margin: 0.2rem 0;
    text-transform: uppercase;
}

.hero-title .oya {
    font-family: 'Cinzel', serif;
    font-size: 5.5rem;
    font-weight: 700;
    color: #6f0f16;
    margin: 0;
    text-transform: uppercase;
}

.hero p {
    font-size: 1.05rem;
    color: var(--white);
    max-width: 620px;
    margin-bottom: 28px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 24px;
    border-radius: 999px;
    font-weight: 600;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: var(--white);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(37, 211, 102, 0.32);
}

.btn-secondary {
    border: 1px solid rgba(111, 15, 22, 0.35);
    background: linear-gradient(135deg, #8a0005, #6f0f16);
    color: #fff;
    box-shadow: 0 12px 28px rgba(111, 15, 22, 0.24);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    border-color: #8a0005;
    box-shadow: 0 14px 32px rgba(111, 15, 22, 0.32);
}

.hero-image,
.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img,
.about-image img {
    max-width: 420px;
    width: 100%;
    margin-left: auto;

    border: 1px solid rgba(201, 169, 97, 0.2);
    box-shadow: var(--shadow);
}

.about-image img {
    max-width: 480px;
}

.quote {
    padding: 24px 24px 0;
}

.quote-box {
    max-width: 900px;
    margin: 0 auto;
    padding: 0;
    text-align: center;
}

.quote-box h2 {
    font-family: 'Cinzel', serif;
    font-size: clamp(2rem, 3vw, 3.2rem);
    font-weight: 600;
    color: var(--gold);
    line-height: 1.4;
    letter-spacing: 0.04em;
    margin: 0;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

section {
    padding: 90px 24px;
}

.section-title {
    max-width: 760px;
    margin: 0 auto 44px;
    text-align: center;
}

.section-title span {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.24em;
    font-size: 0.82rem;
}

.section-title h2 {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    color: var(--gold);
    margin-bottom: 12px;
}

.section-title p {
    color: #6b6b6b;
    font-size: 1rem;
}

.about-container,
.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-image img,
.contact-map iframe {
    border: 1px solid rgba(201, 169, 97, 0.2);
    box-shadow: var(--shadow);
}

.about-text p {
    margin-bottom: 16px;
    color: #6b6b6b;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.stat {
    padding: 18px;
    border-radius: 16px;
    text-align: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(201, 169, 97, 0.16);
}

.stat h3 {
    font-size: 1.4rem;
    color: var(--gold);
    margin-bottom: 6px;
}

.stat span {
    font-size: 0.92rem;
    color: #6b6b6b;
}

.services-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.service-card {
    padding: 28px;
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(201, 169, 97, 0.16);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
    transition: none;
}

.service-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(201, 169, 97, 0.14);
    color: var(--gold);
    font-size: 1.2rem;
    margin-bottom: 16px;
}

.service-card h3 {
    color: var(--gold);
    margin-bottom: 8px;
}

.service-card p {
    color: #6b6b6b;
}

.spiritual-section {
    background: rgba(255, 255, 255, 0.34);
    border-top: 1px solid rgba(201, 169, 97, 0.2);
    border-bottom: 1px solid rgba(201, 169, 97, 0.2);
}

.spiritual-layout {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 32px;
    align-items: start;
}

.spiritual-copy {
    padding: 28px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(201, 169, 97, 0.16);
}

.spiritual-copy h3 {
    color: var(--gold);
    margin-bottom: 12px;
}

.spiritual-copy p {
    color: #6b6b6b;
    margin-bottom: 14px;
}

.spiritual-list {
    list-style: none;
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.spiritual-list li {
    position: relative;
    padding-left: 20px;
    color: #6b6b6b;
}

.spiritual-list li::before {
    content: "✦";
    position: absolute;
    left: 0;
    color: var(--gold);
}

.spiritual-gallery {
    column-count: 2;
    column-gap: 18px;
}

.gallery-card {
    padding: 0;
    background: transparent;
    border: none;
    overflow: hidden;
    display: inline-block;
    width: 100%;
    margin: 0 0 18px;
    break-inside: avoid;
    text-align: center;
    color: #6b6b6b;
    cursor: zoom-in;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: none;
}

.gallery-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
}

.gallery-card img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: contain;
}

.image-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 2000;
}

.image-modal.active {
    display: flex;
}

.modal-image {
    max-width: min(92vw, 900px);
    max-height: 86vh;
    object-fit: contain;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    font-size: 1.6rem;
    cursor: pointer;
}

body.modal-open {
    overflow: hidden;
}

.benefits-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.benefit {
    padding: 24px;
    border-radius: 20px;
    text-align: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(201, 169, 97, 0.16);
}

.benefit i {
    font-size: 1.6rem;
    color: var(--gold);
    margin-bottom: 12px;
}

.benefit h3 {
    color: var(--gold);
    margin-bottom: 8px;
}

.benefit p {
    color: #6b6b6b;
}

.cta {
    padding-top: 0;
}

.cta-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 48px;
    border-radius: 30px;
    text-align: center;
    background: linear-gradient(120deg, rgba(138, 0, 5, 0.38), rgba(201, 169, 97, 0.12));
    border: 1px solid rgba(201, 169, 97, 0.24);
}

.cta h2 {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    color: var(--gold);
    margin-bottom: 14px;
}

.cta p {
    max-width: 640px;
    margin: 0 auto 24px;
    color: #6b6b6b;
}

.contact-info {
    display: grid;
    gap: 16px;
}

.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 16px 18px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(201, 169, 97, 0.14);
}

.contact-item i {
    margin-top: 3px;
    font-size: 1.2rem;
    color: var(--gold);
}

.contact-item h3 {
    color: var(--gold);
    margin-bottom: 4px;
}

.contact-item p {
    color: #6b6b6b;
}

.contact-map iframe {
    width: 100%;
    min-height: 360px;
    border: 0;
}

footer {
    padding: 60px 24px 32px;
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.footer-content h2 {
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    color: var(--gold);
    margin-bottom: 10px;
}

.footer-content p {
    color: #6b6b6b;
    margin-bottom: 12px;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin: 16px 0 20px;
}

.footer-social a {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(201, 169, 97, 0.16);
    background: rgba(255, 255, 255, 0.04);
    color: var(--gold);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.footer-social a:hover {
    transform: translateY(-2px);
    border-color: var(--gold);
}

@media (max-width: 900px) {
    .hero-content,
    .about-container,
    .contact-container {
        grid-template-columns: 1fr;
    }

    .hero-image img {
        margin: 0 auto;
        max-width: 360px;
    }

    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .spiritual-layout {
        grid-template-columns: 1fr;
    }

    .spiritual-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .benefits-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .navbar {
        flex-direction: column;
        gap: 14px;
    }

    .navbar ul {
        justify-content: center;
        gap: 16px;
    }

    .hero {
        min-height: auto;
        padding: 90px 18px 70px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
    }

    .services-grid,
    .spiritual-gallery,
    .benefits-container,
    .stats {
        grid-template-columns: 1fr;
    }

    .cta-content {
        padding: 32px 20px;
    }
}

/* Ajustes responsivos específicos para el fondo del hero */
.hero {
    background-position: center center;
    background-attachment: scroll;
    background-size: cover;
}

@media (max-width: 900px) {
    .hero {
        background-position: center top;
        min-height: 60vh;
        padding: 70px 18px 50px;
    }
}

@media (max-width: 640px) {
    .hero {
        background-position: center top;
        min-height: 50vh;
        padding: 60px 14px 40px;
    }
}
