/* ============================================
   SERVICII PAGE - IMMERSIVE CARDS LAYOUT
   Cinematic full-width card design
   ============================================ */

/* ============================================
   HERO SECTION - Video Background
   ============================================ */


.hero-immersive {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000000;
    /* Dark background behind the box */
    padding: 2rem;
}

/* New Box Container */
/* New Box Container */
.hero-box {
    position: relative;
    width: 90%;
    max-width: 1100px;
    height: 65vh;
    /* Significantly smaller */
    min-height: 500px;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-immersive::before {
    /* Optional glow behind the box instead of full screen */
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 60%;
    background: radial-gradient(circle, rgba(220, 38, 38, 0.15) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    object-position: center center;
    z-index: 0;
    border-radius: 40px;
}

.hero-bg-slider {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    border-radius: 40px;
    overflow: hidden;
}

.hero-bg-slider img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-bg-slider img.active {
    opacity: 1;
}

/* Adjust overlay to fill box */
.hero-immersive .video-overlay {
    border-radius: 40px;
    z-index: 1;
}

@keyframes pulseGlow {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

.hero-immersive-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 800px;
    padding: 0 2rem;
    opacity: 1 !important;
    visibility: visible !important;
}

.hero-immersive-content h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 800;
    color: #DC2626;
    /* Changed to Red */
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero-immersive-content p {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: #DC2626;
    /* Changed to Red */
    /* Pure white for better visibility */
    margin-bottom: 2.5rem;
    line-height: 1.6;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    /* Strong shadow for contrast */
    font-weight: 500;
}

.hero-cta-immersive {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 3rem;
    background: #ffffff;
    /* White background */
    color: var(--primary-red);
    /* Red text */
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.3);
}

.hero-cta-immersive:hover {
    background: #f0f0f0;
    color: var(--primary-red-dark);
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.2);
}

/* Adjust scroll indicator to be inside the box but at bottom */
.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
    font-size: 0.875rem;
    animation: bounce 2s infinite;
    z-index: 2;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

.hero-scroll-indicator svg {
    width: 24px;
    height: 24px;
}

/* ============================================
   IMMERSIVE SERVICE CARDS
   ============================================ */

.services-immersive-container {
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
    height: 100vh;
}

.service-card-immersive {
    position: relative;
    min-height: 100vh;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--primary-black);
}

.service-card-immersive.expanded {
    overflow: visible;
    align-items: flex-start;
    padding-top: 10vh;
    transition: min-height 0.6s ease, padding-top 0.6s ease;
}

.service-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.6s ease;
}

.service-card-immersive:hover .service-card-bg {
    transform: scale(1.05);
}

.service-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.95) 0%,
            rgba(0, 0, 0, 0.7) 40%,
            rgba(0, 0, 0, 0.3) 70%,
            transparent 100%);
    transition: background 0.4s ease;
}

.service-card-immersive:hover .service-card-overlay {
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.98) 0%,
            rgba(0, 0, 0, 0.8) 40%,
            rgba(0, 0, 0, 0.4) 70%,
            transparent 100%);
}

.service-card-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 2rem;
    text-align: center;
}

.service-card-label {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(220, 38, 38, 0.2);
    border: 1px solid var(--primary-red);
    border-radius: 50px;
    color: var(--primary-red);
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    margin-top: 5rem;
}

.service-card-content h2 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.service-card-description {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--white);
    margin-bottom: 2rem;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.service-card-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2.5rem;
}

.service-feature-tag {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.service-feature-tag:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-red);
    transform: translateY(-2px);
}

.service-feature-tag svg {
    width: 18px;
    height: 18px;
    color: var(--primary-red);
}

.service-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.125rem 2.5rem;
    background: transparent;
    border: 2px solid var(--primary-red);
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1.0625rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-red);
    transition: left 0.4s ease;
    z-index: -1;
}

.service-card-cta:hover::before {
    left: 0;
}

.service-card-cta:hover {
    box-shadow: 0 0 30px rgba(220, 38, 38, 0.6);
}

/* Glow effect on hover */
.service-card-immersive::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    box-shadow: inset 0 0 0 0 rgba(220, 38, 38, 0);
    transition: box-shadow 0.4s ease;
    pointer-events: none;
}

.service-card-immersive:hover::after {
    box-shadow: inset 0 0 100px 20px rgba(220, 38, 38, 0.15);
}

/* ============================================
   EXPANDABLE DETAILS DROPDOWN
   ============================================ */

.service-details-dropdown {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.5s ease, margin 0.5s ease;
    margin-top: 0;
}

.service-card-immersive.expanded .service-details-dropdown {
    max-height: 2000px;
    margin-top: 2rem;
    padding-top: 4rem;
    padding-bottom: 4rem;
    border-top: 1px solid rgba(220, 38, 38, 0.3);
}

.pricing-packages {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-bottom: 2rem;
}

@media (max-width: 1024px) {
    .pricing-packages {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

.package-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.package-card.featured {
    border-color: var(--primary-red);
    background: rgba(220, 38, 38, 0.05);
}

.package-card.featured::before {
    content: 'CEL MAI POPULAR';
    position: absolute;
    top: 1rem;
    right: -2.5rem;
    background: var(--primary-red);
    color: var(--white);
    padding: 0.25rem 3rem;
    font-size: 0.75rem;
    font-weight: 700;
    transform: rotate(45deg);
    letter-spacing: 0.05em;
}

.package-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-red);
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.2);
}

.package-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.package-price {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-red);
    margin-bottom: 1.5rem;
}

.package-price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--medium-gray);
}

.package-features {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-bottom: 1.5rem;
}

.package-features li {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: var(--medium-gray);
    padding: 0.75rem 0;
    padding-left: 1.75rem;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.package-features li:last-child {
    border-bottom: none;
}

.package-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-red);
    font-weight: bold;
    font-size: 1.125rem;
}

.package-cta {
    display: block;
    width: 100%;
    padding: 1rem;
    margin-top: auto;
    /* Pushes button to bottom */
    background: transparent;
    border: 2px solid var(--primary-red);
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.package-cta:hover {
    background: var(--primary-red);
    transform: scale(1.02);
}

.package-card.featured .package-cta {
    background: var(--primary-red);
}

.package-card.featured .package-cta:hover {
    background: var(--primary-red-dark);
}


/* ============================================
   FAQ SECTION - Minimalist
   ============================================ */

.faq-immersive {
    padding: 6rem 2rem;
    background: #000000;
}

.faq-immersive-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2rem;
}

.faq-immersive h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--white);
    text-align: center;
    margin-bottom: 4rem;
    grid-column: 1 / -1;
}

.faq-item-immersive {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    height: fit-content;
}

.faq-item-immersive:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(220, 38, 38, 0.3);
    transform: translateY(-3px);
}

.faq-question-immersive {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.faq-question-immersive h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--white);
    margin: 0;
    line-height: 1.4;
}

.faq-icon {
    width: 24px;
    height: 24px;
    color: var(--primary-red);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    background: rgba(220, 38, 38, 0.1);
    border-radius: 50%;
    padding: 4px;
}

.faq-item-immersive.active .faq-icon {
    transform: rotate(45deg);
    background: var(--primary-red);
    color: white;
}

.faq-answer-immersive {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding-top 0.4s ease;
}

.faq-item-immersive.active .faq-answer-immersive {
    max-height: 300px;
    padding-top: 1.5rem;
}

.faq-answer-immersive p {
    font-family: var(--font-body);
    font-size: 1rem;
    color: #e5e5e5;
    /* Lighter text for contrast */
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   MINI GALLERY SECTION
   ============================================ */

.mini-gallery-section {
    padding: 4rem 2rem;
    background: #000000;
    overflow: hidden;
}

.mini-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.mini-gallery-item {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 1/1;
    cursor: pointer;
}

.mini-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.mini-gallery-item:hover img {
    transform: scale(1.1);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .hero-immersive-content h1 {
        font-size: 2.5rem;
    }

    .service-card-content h2 {
        font-size: 2.5rem;
    }

    .service-card-features {
        flex-direction: column;
        align-items: stretch;
    }

    .service-feature-tag {
        justify-content: center;
    }

    .service-details-content {
        padding: 2rem 1.5rem;
    }

    .service-details-grid {
        grid-template-columns: 1fr;
    }

    .faq-immersive {
        padding: 4rem 1.5rem;
    }

    .faq-immersive-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-cta-immersive {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .service-card-cta {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

/* ============================================
   FOOTER FIX - Prevent SVG size conflicts
   ============================================ */

.footer-premium .social-link svg {
    width: 20px !important;
    height: 20px !important;
}


/* ============================================
   HERO SLIDESHOW
   ============================================ */

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
    z-index: 0;
}

.slide.active {
    opacity: 1;
    z-index: 1;
    animation: zoomEffect 5s infinite alternate;
    /* Subtle zoom to keep it alive even if static for a moment */
}

@keyframes zoomEffect {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.05);
    }
}

.life-slide {
    background-color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.life-slide span {
    font-family: var(--font-heading, sans-serif);
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    animation: textGlitch 2s infinite;
}

@keyframes textGlitch {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.9;
        transform: scale(1.02);
        text-shadow: 2px 0 red, -2px 0 blue;
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* ============================================
   TRAIESTE MAGIA SECTION
   ============================================ */

.magia-section {
    padding: 6rem 2rem;
    background: #000000;
    text-align: center;
}

.magia-title-container {
    margin-bottom: 3rem;
}

.magia-title-container h2 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.magia-highlight {
    color: #DC2626;
    /* Red/Orange to match theme */
    display: block;
}

.magia-subtitle {
    font-family: var(--font-body);
    font-size: 1.125rem;
    color: #9CA3AF;
    font-weight: 400;
}

.magia-video-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    aspect-ratio: 16/9;
}

.magia-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}