
:root {
    --fucsia: #D81B60;
    --celeste: #00B0FF;
    --morado: #6A1B9A;
    --verde: #2E7D32;
    --dorado: #FFB300;
    --dorado-alba: #FFE082;
    --fondo-espiritual: #0F0920;
    --blanco: #FFFFFF;
    --texto-suave: #E0E6ED;
    --whatsapp: #25D366;
    --instagram: #E1306C;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--fondo-espiritual);
    color: var(--texto-suave);
    line-height: 1.8;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 90%;
    max-width: 1150px;
    margin: 0 auto;
}

/* FONDO MÍSTICO ATMOSFÉRICO */
.ambient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 50% 20%, #2a0845 0%, #110726 50%, #080314 100%);
    z-index: -2;
    pointer-events: none;
}


.nav-bar {
    background: rgba(15, 9, 32, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 14px 0;
}

.nav-container {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.nav-link {
    color: var(--texto-suave);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 10px 22px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--dorado-alba);
    background: rgba(255, 255, 255, 0.08);
}

.nav-link.active {
    color: var(--blanco);
    background: linear-gradient(135deg, var(--fucsia), var(--morado));
    box-shadow: 0 0 15px rgba(216, 27, 96, 0.5);
}


.header-alba {
    position: relative;
    padding: 70px 0 50px 0;
    text-align: center;
    background: linear-gradient(180deg, #1b0238 0%, #3b0a57 60%, #5c1363 100%);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.alba-sun-glow {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(255, 179, 0, 0.85) 0%, rgba(216, 27, 96, 0.5) 45%, rgba(0,0,0,0) 75%);
    border-radius: 50%;
    filter: blur(25px);
    animation: albaSunrise 7s infinite alternate ease-in-out;
    z-index: 1;
}

.alba-light-rays {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at bottom, rgba(255, 224, 130, 0.2) 0%, transparent 70%);
    animation: rayPulse 5s ease-in-out infinite alternate;
    z-index: 1;
}

.header-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.logo-wrapper {
    position: relative;
    animation: floatSlow 6s ease-in-out infinite;
}

.logo {
    max-width: 190px;
    height: auto;
    background: rgba(255, 255, 255, 0.95);
    padding: 12px;
    border-radius: 50%;
    box-shadow: 0 0 35px rgba(255, 179, 0, 0.6), 0 0 15px rgba(216, 27, 96, 0.4);
    transition: transform 0.4s ease;
}

.logo:hover {
    transform: scale(1.08) rotate(2deg);
}

.header-text h1 {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    color: var(--blanco);
    letter-spacing: 2px;
    text-shadow: 0 0 20px rgba(255, 224, 130, 0.6);
}

.sub-title {
    font-size: 1.4rem;
    color: var(--dorado-alba);
    font-weight: 300;
    letter-spacing: 1px;
}

.gold-energy-bar {
    height: 4px;
    background: linear-gradient(90deg, var(--morado), var(--fucsia), var(--dorado), var(--celeste), var(--verde), var(--morado));
    background-size: 300% 300%;
    animation: rgbShift 8s ease infinite;
}


.main-content {
    padding: 60px 0;
    flex: 1;
}

.grid-nosotros {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.card {
    position: relative;
    border-radius: 20px;
    padding: 2px;
    background: transparent;
    animation: floatSlow 7s ease-in-out infinite;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1;
}

.card:nth-child(2) {
    animation-delay: 3.5s;
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
}

.rgb-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(45deg, var(--fucsia), var(--celeste), var(--verde), var(--dorado), var(--morado));
    background-size: 400% 400%;
    animation: rgbShift 6s linear infinite;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: 0;
    pointer-events: none;
}

.card-inner {
    position: relative;
    z-index: 1;
    background: rgba(23, 12, 43, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 40px;
    border-radius: 18px;
    height: 100%;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.spiritual-symbol {
    font-size: 1.5rem;
    color: var(--dorado-alba);
    animation: pulseGlow 3s infinite alternate;
}

.card-header h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    color: var(--blanco);
}

.card p {
    color: var(--texto-suave);
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: justify;
}


.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    padding-top: 20px;
}

.gallery-card {
    position: relative;
    border-radius: 18px;
    padding: 2px;
    z-index: 1;
}

.gallery-card-inner {
    position: relative;
    z-index: 1;
    background: rgba(23, 12, 43, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.img-container {
    width: 100%;
    height: 240px;
    overflow: hidden;
    position: relative;
    background: rgba(10, 4, 22, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.img-container:hover .gallery-img {
    transform: scale(1.05);
    filter: brightness(1.15);
}

.gallery-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.gallery-info h4 {
    font-family: 'Cinzel', serif;
    color: var(--dorado-alba);
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.gallery-info p {
    font-size: 0.95rem;
    color: var(--texto-suave);
    line-height: 1.5;
}


.lightbox-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(8, 3, 20, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeInModal 0.3s ease-in-out;
}


.lightbox-modal:target {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-full-img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 12px;
    border: 2px solid rgba(255, 224, 130, 0.4);
    box-shadow: 0 0 30px rgba(216, 27, 96, 0.5), 0 0 60px rgba(0, 0, 0, 0.8);
}

.lightbox-caption {
    margin-top: 15px;
    color: var(--dorado-alba);
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    text-align: center;
}

.lightbox-close {
    position: absolute;
    top: -45px;
    right: 0;
    color: var(--blanco);
    font-size: 2.2rem;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease, transform 0.3s ease;
}

.lightbox-close:hover {
    color: var(--fucsia);
    transform: scale(1.2);
}


.full-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.full-img-card {
    border-radius: 20px;
    position: relative;
    z-index: 1;
    transition: transform 0.4s ease;
}

.full-img-card:hover {
    transform: translateY(-8px);
}

.full-img-inner {
    position: relative;
    z-index: 1;
    background: rgba(23, 12, 43, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 18px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.full-img-wrapper {
    position: relative;
    width: 100%;
    height: 320px;
    overflow: hidden;
    background: rgba(10, 4, 22, 0.8);
    cursor: pointer;
}

.full-interactive-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), filter 0.4s ease;
}

.full-img-wrapper:hover .full-interactive-img {
    transform: scale(1.08);
    filter: brightness(1.15);
}

.full-img-overlay {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 2;
}

.overlay-badge {
    background: linear-gradient(135deg, var(--fucsia), var(--morado));
    color: var(--blanco);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    letter-spacing: 0.5px;
}

.full-img-info {
    padding: 30px;
    text-align: left;
}

.full-img-info h3 {
    font-family: 'Cinzel', serif;
    color: var(--dorado-alba);
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.full-img-info p {
    color: var(--texto-suave);
    font-size: 1.05rem;
    line-height: 1.7;
}


.form-cta-container {
    margin-top: 30px;
}

.cta-card {
    border-radius: 20px;
    position: relative;
    z-index: 1;
    max-width: 850px;
    margin: 0 auto;
}

.form-title {
    font-family: 'Cinzel', serif;
    color: var(--blanco);
    font-size: 2rem;
    margin: 15px 0 10px 0;
}

.form-description {
    color: var(--texto-suave);
    font-size: 1.1rem;
    max-width: 680px;
    margin: 0 auto 30px auto;
    line-height: 1.7;
}

.btn-forms-interactive {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 18px 42px;
    background: linear-gradient(135deg, var(--dorado) 0%, var(--fucsia) 100%);
    color: var(--blanco);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 50px;
    box-shadow: 0 0 25px rgba(255, 179, 0, 0.5), 0 0 10px rgba(216, 27, 96, 0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-forms-interactive:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 0 35px rgba(255, 179, 0, 0.8), 0 0 20px rgba(216, 27, 96, 0.7);
    background: linear-gradient(135deg, var(--fucsia) 0%, var(--dorado) 100%);
}

.btn-forms-interactive .btn-arrow {
    transition: transform 0.3s ease;
}

.btn-forms-interactive:hover .btn-arrow {
    transform: translateX(6px);
}


.contacto-section {
    padding: 60px 0;
    background: radial-gradient(circle at center, rgba(106, 27, 154, 0.3) 0%, transparent 70%);
}

.spiritual-subtext {
    color: var(--dorado-alba);
    font-style: italic;
    margin-bottom: 30px;
}

.contacto-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.btn-contacto-interactive {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--blanco);
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.btn-contacto-interactive:hover {
    transform: translateY(-5px) scale(1.05);
    background: rgba(255, 255, 255, 0.15);
}

.btn-contacto-interactive:active {
    transform: scale(0.98);
}

.btn-whatsapp:hover {
    border-color: var(--whatsapp);
    box-shadow: 0 0 25px rgba(37, 211, 102, 0.6);
}

.btn-whatsapp .btn-icon {
    color: var(--whatsapp);
}

.btn-instagram:hover {
    border-color: var(--fucsia);
    box-shadow: 0 0 25px rgba(216, 27, 96, 0.6);
}

.btn-instagram .btn-icon {
    color: var(--instagram);
}

.btn-email:hover {
    border-color: var(--celeste);
    box-shadow: 0 0 25px rgba(0, 176, 255, 0.6);
}

.btn-email .btn-icon {
    color: var(--celeste);
}

.btn-icon {
    font-size: 1.3rem;
}


footer {
    background-color: #080314;
    padding: 25px 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.text-center {
    text-align: center;
}


@keyframes floatSlow {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

@keyframes rgbShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes albaSunrise {
    0% {
        transform: translate(-50%, -35%) scale(0.85);
        opacity: 0.6;
        filter: blur(30px);
    }
    100% {
        transform: translate(-50%, -50%) scale(1.25);
        opacity: 1;
        filter: blur(20px);
    }
}

@keyframes rayPulse {
    0% { opacity: 0.3; }
    100% { opacity: 0.8; }
}

@keyframes pulseGlow {
    0% { opacity: 0.5; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1.2); }
}

@keyframes fadeInModal {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}


@media (max-width: 768px) {
    .header-text h1 { font-size: 1.8rem; }
    .sub-title { font-size: 1.1rem; }
    .card-inner { padding: 25px; }
    .nav-container { flex-direction: row; gap: 10px; }
    .nav-link { padding: 8px 14px; font-size: 0.9rem; }
    .contacto-grid { flex-direction: column; align-items: center; }
    .btn-contacto-interactive { width: 100%; max-width: 320px; justify-content: center; }
    .btn-forms-interactive { width: 100%; padding: 16px 20px; font-size: 1rem; }
    .lightbox-close { top: -40px; right: 10px; }
}