/* ========================================
   FILMMAKER CSS — raulcapote.es/filmmaker
   Cinematic teal/steel palette for 
   audiovisual production services
   ======================================== */

/* ===== FILMMAKER COLOR TOKENS ===== */
:root {
    --film-teal: #2A6B7C;
    --film-teal-light: #7DBECE;
    --film-teal-dark: #1A3A4A;
    --film-teal-glow: rgba(42, 107, 124, 0.4);
    --film-steel: #3A5A6A;
}

/* ===== FILMMAKER HERO ===== */
.film-hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 4rem 2rem;
    background-color: var(--bg-color);
}

/* Stunning Anamorphic Light Flare Effect */
.film-hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150%;
    height: 4px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(42, 107, 124, 0.4) 30%, 
        rgba(125, 190, 206, 0.9) 50%, 
        rgba(42, 107, 124, 0.4) 70%, 
        transparent 100%);
    box-shadow: 
        0 0 40px 10px rgba(42, 107, 124, 0.4),
        0 0 100px 30px rgba(26, 58, 74, 0.6);
    filter: blur(8px);
    z-index: 1;
    pointer-events: none;
    animation: pulseFlare 8s infinite alternate ease-in-out;
}

@keyframes pulseFlare {
    0% { transform: translate(-50%, -50%) scaleX(1) scaleY(1); opacity: 0.6; }
    100% { transform: translate(-50%, -50%) scaleX(1.1) scaleY(1.5); opacity: 1; }
}

/* Background Texture and Vignette */
.film-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/filmmaker/camera_rig.png');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    filter: grayscale(100%) contrast(150%);
    z-index: 0;
    pointer-events: none;
}

.film-hero-vignette {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 20%, rgba(5,3,0,1) 85%);
    z-index: 1;
    pointer-events: none;
}

/* Film grain */
.film-hero::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.05'/%3E%3C/svg%3E");
    z-index: 2;
    pointer-events: none;
    animation: filmGrain 6s steps(8) infinite;
    opacity: 0.6;
}

@keyframes filmGrain {

    0%,
    100% {
        transform: translate(0, 0);
    }

    10% {
        transform: translate(-3%, -8%);
    }

    20% {
        transform: translate(5%, 3%);
    }

    30% {
        transform: translate(-2%, 6%);
    }

    40% {
        transform: translate(4%, -4%);
    }

    50% {
        transform: translate(-6%, 1%);
    }

    60% {
        transform: translate(3%, -6%);
    }

    70% {
        transform: translate(-4%, 4%);
    }

    80% {
        transform: translate(2%, -2%);
    }

    90% {
        transform: translate(-3%, 5%);
    }
}

.film-hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Nav back to lobby */
.film-nav-back {
    position: fixed;
    top: 40px;
    left: 40px;
    z-index: 10010;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.3);
    font-family: var(--font-main);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.film-nav-back:hover {
    color: var(--film-teal-light);
}

.film-nav-back svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.film-nav-back:hover svg {
    transform: translateX(-4px);
}

/* Hero name */
.film-hero-name {
    font-family: var(--font-display);
    font-size: clamp(3rem, 10vw, 7.5rem);
    font-weight: 300;
    color: #fff;
    letter-spacing: -0.02em;
    margin-bottom: 0rem;
    line-height: 1.1;
    opacity: 0;
    animation: slideUp 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s forwards;
    text-shadow: 0 10px 40px rgba(0, 0, 0, 0.9), 0 0 30px rgba(125, 190, 206, 0.25);
}

.film-hero-name i {
    font-style: italic;
    color: var(--film-teal-light);
    font-weight: 400;
}

/* Hero role */
.film-hero-role {
    font-family: var(--font-ui);
    font-size: clamp(0.7rem, 1.8vw, 0.95rem);
    letter-spacing: 0.45em;
    text-transform: uppercase;
    color: var(--film-teal-light);
    margin-bottom: 2rem;
    margin-top: 1rem;
    opacity: 0;
    animation: slideUp 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) 0.6s forwards;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

/* Hero tagline */
.film-hero-tagline {
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(1.1rem, 2.5vw, 1.6rem);
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 4rem;
    opacity: 0;
    animation: fadeIn 2s ease 1.2s forwards;
    text-shadow: 0 4px 15px rgba(0,0,0,0.8);
}

/* Premium Minimalist CTA */
.film-cta {
    display: inline-block;
    padding: 1.2rem 4rem;
    background: rgba(26, 58, 74, 0.1);
    border: 1px solid rgba(125, 190, 206, 0.4);
    border-radius: 50px;
    color: #fff;
    text-decoration: none;
    font-family: var(--font-ui);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.25, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(42, 107, 124, 0);
    opacity: 0;
    animation: fadeIn 1.5s ease 1.5s forwards;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.film-cta:hover {
    border-color: var(--film-teal-light);
    background: rgba(42, 107, 124, 0.15);
    box-shadow: 0 0 40px rgba(42, 107, 124, 0.3);
    transform: translateY(-2px);
    color: #fff;
}

/* ===== SERVICES SECTION ===== */
.film-services {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.film-section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    color: #fff;
    text-align: center;
    margin-bottom: 4rem;
    letter-spacing: 0.03em;
}

.film-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.film-service-card {
    background: linear-gradient(145deg, rgba(26, 58, 74, 0.12) 0%, rgba(20, 20, 20, 0.8) 100%);
    border: 1px solid rgba(42, 107, 124, 0.2);
    border-radius: 8px;
    padding: 3rem 2rem 2.5rem;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.film-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--film-teal-light), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.film-service-card:hover {
    border-color: rgba(42, 107, 124, 0.5);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(42, 107, 124, 0.15);
}

.film-service-card:hover::before {
    opacity: 1;
}

.film-service-icon {
    font-family: var(--font-display);
    font-size: 5rem;
    font-weight: 300;
    font-style: italic;
    color: var(--film-teal-light);
    opacity: 0.15;
    position: absolute;
    top: -0.5rem;
    right: 1rem;
    line-height: 1;
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.film-service-card:hover .film-service-icon {
    opacity: 0.35;
    transform: scale(1.1) translateX(-5px);
    color: #fff;
}

.film-service-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 1rem;
    letter-spacing: 0.04em;
    position: relative;
    z-index: 2;
}

.film-service-desc {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    line-height: 1.7;
    position: relative;
    z-index: 2;
}

/* ===== PRICING / PACKAGES SECTION ===== */
.film-pricing {
    padding: 8rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.pricing-header-wrap {
    text-align: center;
    margin-bottom: 5rem;
}

.pricing-subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
    max-width: 600px;
    margin: -3rem auto 0;
    font-weight: 300;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.pricing-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 480px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background-size: cover;
    background-position: center;
    transition: all 0.7s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.pricing-card::before {
    /* Base dark vignette overlay */
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5, 5, 5, 1) 0%, rgba(5, 5, 5, 0.4) 50%, rgba(5, 5, 5, 0.1) 100%);
    z-index: 1;
    transition: opacity 0.5s ease;
}

.pricing-glass-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 15, 20, 0.1);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    z-index: 2;
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(42, 107, 124, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}

.pricing-card:hover .pricing-glass-overlay {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: rgba(10, 15, 20, 0.4);
}

.pricing-card:hover::before {
    opacity: 0.8;
}

.pricing-content {
    position: relative;
    z-index: 10;
    padding: 2.5rem;
    transform: translateY(20px);
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.pricing-card:hover .pricing-content {
    transform: translateY(0);
}

.pricing-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #fff;
    text-transform: uppercase;
}

.badge-gold {
    border-color: #d4af37;
    color: #d4af37;
    background: rgba(212, 175, 55, 0.1);
}

.badge-teal {
    border-color: var(--film-teal);
    color: var(--film-teal);
    background: rgba(42, 107, 124, 0.1);
}

.badge-pink {
    border-color: #ff007f;
    color: #ff007f;
    background: rgba(255, 0, 127, 0.1);
}

.pricing-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.price-amount {
    font-size: 1.3rem;
    font-weight: 400;
    color: #6ed1e3;
    margin-bottom: 1rem;
    font-family: var(--font-main);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.price-period {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.pricing-desc {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.pricing-card:hover .pricing-desc {
    opacity: 1;
    max-height: 200px;
    margin-top: 1rem;
}

/* Make Bodas card larger in grid */
@media (min-width: 1024px) {
    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* 1. Rodaje */
    .pricing-card:nth-child(1) { 
        grid-column: 1; 
        grid-row: 1; 
    }
    
    /* 2. Bodas (Featured) */
    .pricing-card:nth-child(2).card-featured {
        grid-column: 2 / 4;
        grid-row: 1 / 3;
        height: 100%;
    }
    
    /* 3. Edición */
    .pricing-card:nth-child(3) { 
        grid-column: 1; 
        grid-row: 2; 
    }
    
    /* 4. Contenido Digital */
    .pricing-card:nth-child(4) { 
        grid-column: 1 / 4; 
        grid-row: 3;
        height: 400px;
    }
}

/* ===== ABOUT SECTION ===== */
.film-about {
    padding: 6rem 2rem;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.film-about-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.05rem;
    line-height: 1.9;
    margin-bottom: 2rem;
}

.film-about-text strong {
    color: var(--film-teal-light);
    font-weight: 500;
}

/* ===== FILMMAKER CONTACT ===== */
.film-contact {
    padding: 6rem 2rem;
    text-align: center;
    background: linear-gradient(to top, rgba(26, 58, 74, 0.08), transparent);
}

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {
    .film-hero {
        padding: 2rem 1.5rem;
    }

    .film-nav-back {
        top: 20px;
        left: 20px;
        font-size: 0.65rem;
    }

    .film-services {
        padding: 4rem 1.5rem;
    }

    .film-services-grid {
        grid-template-columns: 1fr;
    }

    .film-about {
        padding: 4rem 1.5rem;
    }

    .film-hero-tagline {
        margin-bottom: 2rem;
    }
}

@media (max-width: 374px) {
    .film-hero-role {
        font-size: 0.65rem;
        letter-spacing: 0.2em;
    }

    .film-cta {
        padding: 0.9rem 2rem;
        font-size: 0.8rem;
    }
}

@media (min-width: 1200px) {
    .film-services {
        padding: 8rem 3rem;
    }

    .film-services-grid {
        gap: 2rem;
    }
}

@media (min-width: 1920px) {
    .film-services {
        max-width: 1400px;
    }
}

/* Scroll hint teal accent for filmmaker */
.film-hero .scroll-hint {
    z-index: 10;
}

.film-hero .scroll-hint-text {
    color: rgba(125, 190, 206, 0.4);
}

.film-hero .scroll-hint-arrow {
    border-right-color: rgba(125, 190, 206, 0.35);
    border-bottom-color: rgba(125, 190, 206, 0.35);
}