/* ============================================================
   PROMPTLY V2 - CSS DESIGN SYSTEM
   ============================================================ */

:root {
    --bg-color: #000000;
    --text-color: #ffffff;
    --accent-color: #00d4ff;
    --accent-gradient: linear-gradient(135deg, #00d4ff 0%, #0080ff 100%);
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    --font-main: 'Inter', sans-serif;
    --font-display: 'Montserrat', sans-serif;
    
    --transition: cubic-bezier(0.23, 1, 0.32, 1);
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-color);
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* --- Preloader (Python Style) --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0d0d0d;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    font-family: 'Space Grotesk', monospace; /* Using a monospaced-feeling font */
    transition: opacity 0.8s ease, visibility 0.8s;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

#lang-selector {
    display: none;
    gap: 20px;
    align-items: center;
    animation: fadeIn 0.5s ease forwards;
}

#lang-selector.active {
    display: flex;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-color);
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
    opacity: 0.4;
    transition: all 0.3s var(--transition);
}

.lang-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

.lang-divider {
    color: rgba(255,255,255,0.2);
    font-size: 1.2rem;
}

#preloader-content {
    max-width: 600px;
    width: 100%;
    color: #dcdcdc;
    font-size: 1.1rem;
    line-height: 1.6;
}

#preloader-content.hidden {
    display: none;
}

#code-container {
    display: inline;
}

.code-keyword { color: #ff79c6; }
.code-func { color: #50fa7b; }
.code-string { color: #f1fa8c; }
.code-comment { color: #6272a4; }
.code-obj { color: #8be9fd; }

#cursor {
    display: inline-block;
    width: 10px;
    height: 1.2em;
    background-color: var(--accent-color);
    margin-left: 5px;
    vertical-align: middle;
    animation: blink 0.8s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 10px 0; /* Premium spacing at the top */
    background: rgba(10, 10, 10, 0.75); /* Dark semi-transparent background like reference */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05); /* Subtle border like reference */
    transition: all 0.5s var(--transition);
}

.nav.scrolled {
    padding: 6px 0; /* Slimmer header on scroll */
    background: rgba(10, 10, 10, 0.85); /* Slightly darker on scroll */
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%; /* Stretch layout all the way to absolute margins */
    margin: 0 auto;
    padding: 0 50px; /* Side gutter margin for absolute edges alignment */
}

.nav__logo img {
    height: 160px; /* Enlarged logo size (text is ~30px height) */
    width: auto;
    filter: brightness(0) invert(1);
    margin-top: -45px; /* Clean centring using negative margins for 500x500 square canvas */
    margin-bottom: -45px;
    transition: all 0.5s var(--transition);
}

.nav.scrolled .nav__logo img {
    height: 130px; /* Gracefully scaled down logo on scroll (text is ~24px height) */
    margin-top: -36px;
    margin-bottom: -36px;
}

.nav__links {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav__links a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.nav__links a:hover {
    opacity: 1;
}

.nav__cta {
    padding: 10px 24px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    backdrop-filter: blur(10px);
    opacity: 1 !important; /* Ensure CTA is fully opaque */
    transition: all 0.3s var(--transition);
}

.nav__cta:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    opacity: 1 !important;
}

/* --- Language Switcher in Nav --- */
.nav__lang-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 6px 14px;
    border-radius: 30px;
    backdrop-filter: blur(10px);
    transition: all 0.3s var(--transition);
}

.nav__lang-toggle:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
}

.nav__lang-btn {
    background: none;
    border: none;
    color: var(--text-color);
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    opacity: 0.4;
    letter-spacing: 0.05em;
    padding: 2px 4px;
    transition: all 0.3s var(--transition);
    position: relative;
    touch-action: manipulation;
}

.nav__lang-btn::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 4px;
    right: 4px;
    height: 1px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transition: transform 0.3s var(--transition);
}

.nav__lang-btn.active {
    opacity: 1;
    color: var(--accent-color);
}

.nav__lang-btn.active::after {
    transform: scaleX(1);
}

.nav__lang-btn:hover {
    opacity: 0.9;
}

.nav__lang-divider {
    color: rgba(255, 255, 255, 0.15);
    font-size: 0.75rem;
    pointer-events: none;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    width: 100%;
    height: 100vh; /* Fallback for older browsers */
    height: 100svh; /* Better for mobile Safari/Chrome */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero__bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5);
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.4) 100%);
}

.hero__content {
    position: relative;
    z-index: 10;
    text-align: center;
    width: 100%;
    max-width: 1000px;
    padding: 0 20px;
}

.hero__subtitle {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    margin-bottom: 20px;
    opacity: 0.6;
    animation: fadeInUp 1s ease forwards;
}

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 700;
    line-height: 1.0;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
    animation: fadeInUp 1.2s 0.2s ease forwards;
    opacity: 0;
}

.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#dynamic-word-container {
    position: relative;
    display: inline-block;
}

#word-canvas {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 5;
}

#dynamic-word {
    display: inline-block;
    position: relative;
    z-index: 1;
}

.hero__desc {
    font-size: 0.95rem;
    opacity: 0;
    max-width: 450px;
    margin: 20px auto 0;
    font-weight: 300;
    letter-spacing: 0.02em;
    animation: fadeInUp 1s 0.6s ease forwards;
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Manifesto Section --- */
.manifesto {
    padding: 150px 0 100px; /* Reduced bottom padding */
    text-align: center;
    background-color: var(--bg-color);
}

.manifesto__text {
    font-family: var(--font-display);
    font-size: clamp(2rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.2;
    max-width: 1100px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s var(--transition);
}

.manifesto__text.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.manifesto__word-reveal {
    display: inline-flex;
    gap: 2px;
}

.scroll-indicator {
    margin-top: 100px; /* Reduced from 250px */
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    justify-content: center;
}

.scroll-indicator.visible {
    opacity: 1;
}

.arrow-down {
    width: 30px;
    height: 30px;
    border-bottom: 2px solid var(--accent-color);
    border-right: 2px solid var(--accent-color);
    transform: rotate(45deg);
    animation: bounceArrow 2s infinite;
}

@keyframes bounceArrow {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0) rotate(45deg);}
    40% {transform: translateY(-10px) rotate(45deg);}
    60% {transform: translateY(-5px) rotate(45deg);}
}

.m-letter {
    display: inline-block;
    color: rgba(255, 255, 255, 0.2);
    transition: color 0.3s ease;
}

.m-letter.active {
    /* Color handled by JS now */
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

/* --- Services Bento Grid --- */
.services {
    padding: 60px 0 120px; /* Reduced top padding */
    background-color: var(--bg-color);
}

.section-title {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 700;
    text-align: center;
}

.services-header {
    margin-bottom: 80px;
    text-align: center;
}

.dynamic-service-title {
    position: relative;
    display: block; /* Block for centering */
    font-size: 5rem !important;
    cursor: pointer;
    margin: 0 auto;
    min-height: 1.2em; /* Prevent jump */
    text-align: center;
}

.facelock-reveal {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 3.5rem); /* Balanced size */
    font-weight: 700;
    color: rgba(255, 255, 255, 0.2);
    line-height: 1.3;
    width: 90%;
    max-width: 1000px !important;
    margin: 0 auto;
    display: block;
    text-align: center;
    letter-spacing: -0.02em;
}

.f-letter {
    display: inline;
    transition: color 0.3s ease;
}

.f-letter.active {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

#services-word-canvas {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 5;
}

.services__bento {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Clean 2-column layout */
    grid-auto-rows: 380px; /* Uniform height for cinematic widescreen cards */
    gap: 30px; /* Widen spacing for premium feel */
}

.bento__item {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), border-color 0.4s ease;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    text-decoration: none;
    color: inherit;
}

.bento__spotlight {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        600px circle at var(--x) var(--y),
        rgba(255, 255, 255, 0.06),
        transparent 40%
    );
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

@media (hover: hover) {
    .bento__item:hover .bento__spotlight {
        opacity: 1;
    }
}

.bento__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.bento__bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

.bento__bg img, .bento__bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    filter: grayscale(0.5);
    transition: transform 1.2s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.6s ease, filter 0.6s ease;
}

@media (hover: hover) {
    .bento__item:hover .bento__bg img, 
    .bento__item:hover .bento__bg video {
        transform: scale(1.1) translateZ(20px);
        opacity: 0.6;
        filter: grayscale(0);
    }
    .bento__item:hover .bento__bg video.hover-video,
    .bento__item:hover .bento__bg img.hover-target-img {
        opacity: 0.6;
    }
    .bento__item:hover .bento__bg img.hover-img {
        opacity: 0;
    }
}

.bento__bg video.hover-video,
.bento__bg img.hover-target-img {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.bento__content {
    position: relative;
    z-index: 2;
    transform: translateZ(40px);
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

@media (hover: hover) {
    .bento__item:hover .bento__content {
        transform: translateZ(60px) translateY(-5px);
    }
}

.bento__item h3 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-color);
    letter-spacing: -0.02em;
}

.bento__item p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
    max-width: 90%;
    transition: color 0.4s ease;
}

@media (hover: hover) {
    .bento__item:hover p {
        color: rgba(255, 255, 255, 0.9);
    }

    .bento__item:hover {
        border-color: rgba(255, 255, 255, 0.2);
    }
}

.services__footer {
    margin-top: 100px;
    text-align: center;
    width: 100%;
}



/* --- CTA Section --- */
.cta {
    position: relative;
    padding: 200px 0;
    text-align: center;
    overflow: hidden;
}

.cta__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.cta__bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0,0,0,0.6), rgba(0,0,0,0.9));
    z-index: 1;
}

.cta__content {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px;
    border-radius: 40px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
}

.cta__title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.1;
}

.cta__desc {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 18px 40px;
    background: var(--accent-color);
    color: var(--bg-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.4s var(--transition);
}

.cta__btn:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 212, 255, 0.3);
    background: #ffffff;
}

.cta__btn svg {
    transition: transform 0.4s var(--transition);
}

.cta__btn:hover svg {
    transform: translateX(5px);
}

.cta__footer {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cta__socials {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

.cta__socials a {
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.3s var(--transition);
}

.cta__socials a:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
}

.cta__credit {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: lowercase;
    letter-spacing: 0.2em;
    font-family: var(--font-display);
}

/* --- Bento CTA Pill --- */
.bento__cta-pill {
    display: inline-flex;
    align-items: center;
    margin-top: 20px;
    padding: 8px 18px;
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.25);
    color: var(--accent-color);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 0.4s var(--transition);
    align-self: flex-start;
}

@media (hover: hover) {
    .bento__item:hover .bento__cta-pill {
        background: var(--accent-color);
        color: #000000;
        box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
        border-color: var(--accent-color);
        transform: translateY(-2px);
    }
}

/* --- Premium Modal --- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s var(--transition);
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    transition: opacity 0.5s var(--transition);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.modal__container {
    position: relative;
    width: 92%;
    max-width: 1100px;
    max-height: 85vh;
    background: rgba(10, 10, 10, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 32px;
    padding: 50px;
    z-index: 2001;
    overflow-y: auto;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(30px) scale(0.97);
    opacity: 0;
    transition: transform 0.5s var(--transition), opacity 0.5s var(--transition);
}

.modal.active .modal__container {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Custom Scrollbar for Modal Container */
.modal__container::-webkit-scrollbar {
    width: 8px;
}
.modal__container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
}
.modal__container::-webkit-scrollbar-thumb {
    background: rgba(0, 212, 255, 0.2);
    border-radius: 10px;
    transition: background 0.3s;
}
.modal__container::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 212, 255, 0.5);
}

.modal__close {
    position: absolute;
    top: 25px;
    right: 25px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.4s var(--transition);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.modal__close:hover {
    background: var(--accent-color);
    color: #000000;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
    border-color: var(--accent-color);
    transform: rotate(90deg);
}

.modal__close svg {
    width: 20px;
    height: 20px;
}

.modal__header {
    margin-bottom: 40px;
    text-align: center;
}

.modal__title {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

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

.modal__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.modal__card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 35px;
    display: flex;
    flex-direction: column;
    transition: all 0.4s var(--transition);
    position: relative;
    overflow: hidden;
}

.modal__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(0, 212, 255, 0.05), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.modal__card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 212, 255, 0.3);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.modal__card:hover::before {
    opacity: 1;
}

.modal__card--highlight {
    border-color: rgba(0, 212, 255, 0.25);
    background: rgba(0, 212, 255, 0.01);
}

.modal__card--highlight::after {
    content: 'RECOMENDADO';
    position: absolute;
    top: 15px;
    right: 20px;
    background: var(--accent-gradient);
    color: #000;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 10px;
    letter-spacing: 0.08em;
}

.modal__card-header {
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 20px;
}

.modal__card-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-color);
}

.modal__card-body {
    flex-grow: 1;
    margin-bottom: 30px;
}

.modal__card-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal__card-features li {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.4;
    position: relative;
    padding-left: 15px;
}

.modal__card-features li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-size: 1.1rem;
    line-height: 1;
    top: -1px;
}

.modal__card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    transition: all 0.4s var(--transition);
}

.modal__card-btn:hover {
    background: var(--accent-color);
    color: #000000;
    border-color: var(--accent-color);
    box-shadow: 0 10px 20px rgba(0, 212, 255, 0.25);
    transform: translateY(-2px);
}

.modal__card-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Modal Responsive override */
@media screen and (max-width: 900px) {
    .modal__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media screen and (max-width: 600px) {
    .modal {
        align-items: flex-end; /* Slide drawer up from the bottom */
    }
    
    .modal__container {
        width: 100%;
        max-height: 90vh;
        border-radius: 28px 28px 0 0;
        padding: 35px 20px 20px;
        transform: translateY(100%) scale(1);
    }
    
    .modal.active .modal__container {
        transform: translateY(0);
    }
    
    .modal__close {
        top: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
    }
    
    .modal__title {
        font-size: 1.6rem;
    }
    
    .modal__desc {
        font-size: 0.85rem;
    }
    
    .modal__card {
        padding: 25px 20px;
    }
}

/* --- Glitch Effect --- */
.glitch {
    animation: glitchAnim 0.4s ease;
}

@keyframes glitchAnim {
    0% {
        transform: translate(0);
        text-shadow: -2px 0 var(--accent-color), 2px 0 #ff00ff;
        clip-path: inset(44% 0 56% 0);
    }
    20% {
        transform: translate(-3px, 2px);
        clip-path: inset(12% 0 88% 0);
    }
    40% {
        transform: translate(3px, -2px);
        text-shadow: 2px 0 var(--accent-color), -2px 0 #ff00ff;
        clip-path: inset(76% 0 24% 0);
    }
    60% {
        transform: translate(-3px, 1px);
        clip-path: inset(34% 0 66% 0);
    }
    80% {
        transform: translate(2px, -1px);
        text-shadow: -1px 0 var(--accent-color), 1px 0 #ff00ff;
        clip-path: inset(92% 0 8% 0);
    }
    100% {
        transform: translate(0);
        text-shadow: none;
        clip-path: inset(0 0 0 0);
    }
}

/* ============================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ============================================================ */

/* --- Tablets & Smaller Desktops (1024px) --- */
@media screen and (max-width: 1024px) {
    .container {
        width: 100%;
        padding: 0 30px;
    }
    
    .nav__container {
        padding: 0 30px;
    }

    .services__bento {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 320px;
        gap: 20px;
    }


    .dynamic-service-title {
        font-size: 4rem !important;
    }
}

/* --- Phones & Small Tablets (768px) --- */
@media screen and (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .nav__container {
        padding: 0 20px;
    }

    .nav__links {
        gap: 15px;
    }

    .nav__links a:not(.nav__cta) {
        display: none; /* Simplify nav on mobile */
    }

    .nav__lang-toggle {
        padding: 4px 10px;
        gap: 4px;
    }

    .nav__lang-btn {
        font-size: 0.65rem;
    }

    .hero__title {
        font-size: clamp(2.5rem, 8vw, 4rem);
    }

    .manifesto {
        padding: 100px 0;
    }

    .manifesto__text {
        font-size: 2.2rem;
    }

    .services__bento {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }

    .bento__item {
        grid-column: span 1;
        min-height: 380px;
    }

    .bento__content {
        transform: none;
    }

    .bento__cta-pill {
        pointer-events: none;
    }


    .dynamic-service-title {
        font-size: 3rem !important;
    }

    .facelock-reveal {
        font-size: 1.8rem;
    }

    .cta__content {
        padding: 40px 20px;
    }

    .cta__title {
        font-size: 2.2rem;
    }
}

/* --- Small Phones (480px) --- */
@media screen and (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .nav__container {
        padding: 0 15px;
    }

    .hero__title {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .hero__desc {
        font-size: 0.85rem;
    }

    .nav__logo img {
        height: 90px; /* Scaled mobile size (text is ~17px) */
        margin-top: -25px; /* Pulls header up on mobile */
        margin-bottom: -25px;
    }

    .nav__cta {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    .manifesto__text {
        font-size: 1.5rem;
    }

    .scroll-indicator {
        margin-top: 60px;
    }

    .dynamic-service-title {
        font-size: 2rem !important;
    }

    .facelock-reveal {
        font-size: 1.2rem;
    }
    
    .bento__item {
        padding: 20px;
    }

    .cta__btn {
        padding: 15px 25px;
        font-size: 0.95rem;
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================================
   SERVICE PAGES SPECIFIC STYLES
   ========================================================================== */

.service-page {
    background-color: var(--bg-color);
}

.service-page .nav {
    background: rgba(10, 10, 10, 0.8);
}

/* Service Hero */
.sp-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end; /* Push content to bottom naturally */
    padding-top: 100px;
    padding-bottom: 25px; /* Premium spacing at the bottom of hero */
    overflow: hidden;
}

.sp-hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.sp-hero__img, .sp-hero__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top; /* Align vertically to show model faces instead of cropping them */
    opacity: 0.4;
}

.sp-hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, var(--bg-color) 0%, transparent 100%);
    z-index: 1;
}

.sp-hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    width: 100%;
}

.sp-hero__title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-family: var(--font-display);
    font-weight: 700;
    margin: 0 0 24px 0; /* Added clean gap from the sentence below */
    line-height: 0.85; /* Compact line height */
    letter-spacing: -0.02em;
    word-spacing: -0.15em;
}

.sp-hero__desc {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* Service Portfolio */
.sp-portfolio {
    padding: 30px 20px 80px; /* Reduced top padding to tighten spacing with hero */
    text-align: center;
}

.sp-section-desc {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 12px; /* Small clean gap directly under the title */
    margin-bottom: 40px;
    margin-left: auto;
    margin-right: auto;
    max-width: 800px;
}

.sp-portfolio__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

/* --- Portfolio Conveyor Belt (Banda Transportadora) --- */
/* --- Showcase Layout (Interactive Video Player & Sidebar) --- */
.sp-showcase {
    padding: 20px 0 80px;
}

.sp-showcase__grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 40px;
    align-items: start;
    max-width: 1300px;
    margin: 0 auto;
}

.sp-showcase__player-column {
    width: 100%;
    position: sticky;
    top: 100px;
}

.sp-showcase__player-wrapper {
    position: relative;
    border-radius: 24px;
    background: #0d0d0d;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    transition: aspect-ratio 0.6s cubic-bezier(0.23, 1, 0.32, 1), transform 0.4s ease;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.sp-showcase__player-wrapper.aspect-landscape {
    aspect-ratio: 16/9;
}

.sp-showcase__player-wrapper.aspect-portrait {
    aspect-ratio: 9/16;
    max-height: 70vh;
    margin: 0 auto;
}

/* Backglow Neon Effect */
.sp-showcase__glow {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.25) 0%, transparent 70%);
    filter: blur(30px);
    z-index: -1;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.sp-showcase__main-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.4s ease;
}

.sp-showcase__main-video.fade-out {
    opacity: 0;
}

/* Floating Glass Caption */
.sp-showcase__caption {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(10, 10, 10, 0.65);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px 25px;
    border-radius: 16px;
    z-index: 10;
    text-align: left;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.sp-showcase__caption.fade-out {
    opacity: 0;
    transform: translateY(10px);
}

.sp-showcase__caption-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.sp-showcase__caption-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
}

/* Sidebar List */
.sp-showcase__sidebar {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 30px 20px;
    width: 100%;
    max-height: 70vh;
    overflow-y: auto;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.sp-showcase__sidebar::-webkit-scrollbar {
    width: 4px;
}

.sp-showcase__sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.sp-showcase__sidebar-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 25px;
    text-align: left;
    padding-left: 5px;
    letter-spacing: -0.01em;
}

/* Thumbnail Card */
.sp-showcase__thumb-card {
    display: flex;
    gap: 15px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 12px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s var(--transition);
    align-items: center;
}

.sp-showcase__thumb-card:last-child {
    margin-bottom: 0;
}

.sp-showcase__thumb-media {
    position: relative;
    width: 90px;
    height: 60px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: #000;
}

.sp-showcase__thumb-img,
.sp-showcase__thumb-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.sp-showcase__play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 28px;
    height: 28px;
    background: rgba(10, 10, 10, 0.8);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.sp-showcase__play-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 55%;
    transform: translate(-50%, -50%);
    border-style: solid;
    border-width: 5px 0 5px 8px;
    border-color: transparent transparent transparent #fff;
}

.sp-showcase__thumb-info {
    text-align: left;
}

.sp-showcase__thumb-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 4px;
    transition: color 0.3s ease;
}

.sp-showcase__thumb-info span {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
}

/* Card States */
.sp-showcase__thumb-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(0, 212, 255, 0.3);
    transform: translateX(5px);
}

.sp-showcase__thumb-card:hover .sp-showcase__thumb-img,
.sp-showcase__thumb-card:hover .sp-showcase__thumb-video {
    opacity: 0.9;
}

.sp-showcase__thumb-card:hover .sp-showcase__play-btn {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: translate(-50%, -50%) scale(1.1);
}

.sp-showcase__thumb-card:hover .sp-showcase__play-btn::after {
    border-left-color: #000;
}

.sp-showcase__thumb-card.is-active {
    background: rgba(0, 212, 255, 0.05);
    border-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.1);
}

.sp-showcase__thumb-card.is-active h4 {
    color: var(--accent-color);
}

.sp-showcase__thumb-card.is-active .sp-showcase__thumb-img,
.sp-showcase__thumb-card.is-active .sp-showcase__thumb-video {
    opacity: 1;
}

.sp-showcase__thumb-card.is-active .sp-showcase__play-btn {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.sp-showcase__thumb-card.is-active .sp-showcase__play-btn::after {
    border-left-color: #000;
}

/* Responsive Showcase */
@media (max-width: 1024px) {
    .sp-showcase__grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .sp-showcase__player-column {
        position: relative;
        top: 0;
    }
    .sp-showcase__sidebar {
        max-height: none;
    }
}

@media (max-width: 768px) {
    .sp-showcase__sidebar {
        padding: 20px 15px;
    }
    
    /* Horizontal scroll of thumbs on small mobile */
    .sp-showcase__sidebar {
        display: flex;
        flex-direction: column;
    }
    
    .sp-showcase__thumb-card {
        padding: 10px;
    }
}

.sp-portfolio__item {
    border-radius: 20px;
    overflow: hidden;
    background: #000;
    height: 480px; /* Altura optimizada para resaltar las imágenes y videos en pantallas grandes */
    max-width: 100%;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease, z-index 0.4s;
    position: relative;
    z-index: 1;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.sp-portfolio__item:hover {
    transform: scale(1.15); /* Se amplía elegantemente al pasar el cursor */
    z-index: 10; /* Se coloca por encima de las demás tarjetas */
    box-shadow: 0 15px 35px rgba(0, 212, 255, 0.25), 0 0 15px rgba(0, 212, 255, 0.1);
}

.sp-portfolio__item:not(.sp-portfolio__item--portrait) {
    aspect-ratio: 16/9;
}

.sp-portfolio__item--portrait {
    aspect-ratio: 9/16;
}

.sp-portfolio__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.sp-portfolio__item video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cambiado a cover para que llene el marco ampliado perfectamente */
    background: #000;
    border-radius: 20px;
}

/* Service Pricing */
.sp-pricing {
    padding: 40px 20px 100px;
}

.sp-pricing__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.sp-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), border-color 0.4s ease;
}

.sp-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

.sp-card__spotlight {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        600px circle at var(--x) var(--y),
        rgba(0, 212, 255, 0.06),
        transparent 40%
    );
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

@media (hover: hover) {
    .sp-card:hover .sp-card__spotlight {
        opacity: 1;
    }
}

.sp-card--highlight {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.sp-card--highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #ffffff, #666666);
}

.sp-card__header {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2;
}

.sp-card__header h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.sp-card__tools {
    font-size: 0.85rem;
    color: #a3a3a3;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sp-card__features {
    list-style: none;
    margin-bottom: 40px;
    flex-grow: 1;
    position: relative;
    z-index: 2;
}

.sp-card__features li {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
    line-height: 1.5;
    position: relative;
    padding-left: 20px;
}

.sp-card__features li::before {
    content: '→';
    position: absolute;
    left: 0;
    top: 0;
    color: #fff;
    opacity: 0.5;
}

.sp-card__features strong {
    color: #fff;
    font-weight: 600;
}

.sp-card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 15px;
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.25);
    color: var(--accent-color);
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.4s var(--transition);
    z-index: 2;
    touch-action: manipulation;
}

.sp-card__btn:hover,
.sp-card:hover .sp-card__btn {
    background: var(--accent-gradient);
    color: #000000;
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
    transform: translateY(-2px);
}

@media screen and (max-width: 768px) {
    .sp-hero {
        min-height: 42vh; /* Make hero compact and perfect on mobile */
        padding-top: 80px;
        padding-bottom: 15px;
    }
    
    .sp-portfolio {
        padding-top: 15px;
        padding-bottom: 40px;
    }
    
    .sp-portfolio__carousel {
        padding: 20px 0;
    }
    
    .sp-portfolio__carousel .sp-portfolio__item {
        height: 340px !important;
    }
    
    .sp-section-desc {
        margin-top: 8px;
        font-size: 0.95rem;
        line-height: 1.4;
        padding: 0 5px;
        margin-bottom: 25px;
    }
    
    .sp-portfolio__item {
        height: auto !important;
        width: 100% !important;
        max-width: 500px;
    }
    
    .sp-portfolio__item.sp-portfolio__item--portrait {
        width: calc(50% - 13px) !important;
    }
    
    .sp-card {
        padding: 30px 20px;
    }
    
    .sp-pricing__grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   MODEL CATALOG STYLES
   ========================================================================== */

.model-catalog__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.model-catalog__card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4/5;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
}

.model-catalog__card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--accent-color);
    box-shadow: 0 12px 30px rgba(0, 212, 255, 0.15);
}

.model-catalog__image-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.model-catalog__card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.model-catalog__card video.hover-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    transform: scale(1);
    z-index: 1;
}

.model-catalog__card:hover img {
    transform: scale(1.08);
}

.model-catalog__card:hover img.hover-img {
    opacity: 0;
}

.model-catalog__card:hover video.hover-video {
    opacity: 1;
    transform: scale(1.08);
}

.model-catalog__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px 20px 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transform: translateY(10px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2;
}

.model-catalog__card:hover .model-catalog__overlay {
    transform: translateY(0);
}

.model-catalog__name {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 5px;
    letter-spacing: 0.02em;
}

.model-catalog__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: 0.1s;
}

.model-catalog__card:hover .model-catalog__tags {
    opacity: 1;
    transform: translateY(0);
}

.model-catalog__tag {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.model-catalog__tag--accent {
    background: rgba(0, 212, 255, 0.15);
    border-color: rgba(0, 212, 255, 0.3);
    color: var(--accent-color);
}

@media screen and (max-width: 768px) {
    .model-catalog__grid {
        grid-template-columns: repeat(2, 1fr) !important; /* Force a premium 2-column grid on mobile */
        gap: 15px;
        margin-top: 30px;
    }
    
    .model-catalog__overlay {
        transform: translateY(0) !important; /* Always show text on touch/mobile screens */
        background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.55) 60%, transparent 100%) !important;
        padding: 20px 12px 12px !important;
    }
    
    .model-catalog__tags {
        opacity: 1 !important; /* Always show tags on touch/mobile screens */
        transform: translateY(0) !important;
        gap: 4px !important;
        margin-top: 6px !important;
    }
    
    .model-catalog__name {
        font-size: 1.05rem !important;
        margin-bottom: 2px !important;
    }
    
    .model-catalog__tag {
        font-size: 0.55rem !important;
        padding: 1px 6px !important;
    }
}

@media screen and (max-width: 480px) {
    .model-catalog__grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px; /* More compact spacing for very small mobile screens */
    }
    
    .model-catalog__overlay {
        padding: 15px 8px 8px !important;
    }
    
    .model-catalog__name {
        font-size: 0.95rem !important;
    }
    
    .model-catalog__tag {
        font-size: 0.5rem !important;
        padding: 1px 4px !important;
    }
}

/* --- Webkit Autoplay/Video Controls Hide Hack --- */
video::-webkit-media-controls {
    display: none !important;
    -webkit-appearance: none !important;
}

video::-webkit-media-controls-play-button,
video::-webkit-media-controls-start-play-button,
video::-webkit-media-controls-panel {
    display: none !important;
    -webkit-appearance: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* ==========================================================================
   PREMIUM LIGHTBOX MODAL FOR PORTFOLIO
   ========================================================================== */
#portfolio-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

#portfolio-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 12, 0.65);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    opacity: 0;
    transition: opacity 0.35s ease;
}

#portfolio-lightbox.active .lightbox-overlay {
    opacity: 1;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 3.5rem;
    font-weight: 200;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    transform: scale(0.8) rotate(-45deg);
    transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s;
    line-height: 1;
}

#portfolio-lightbox.active .lightbox-close {
    opacity: 0.6;
    transform: scale(1) rotate(0deg);
}

#portfolio-lightbox.active .lightbox-close:hover {
    opacity: 1;
    color: var(--accent-color);
    transform: scale(1.15) rotate(90deg);
}

.lightbox-content {
    position: relative;
    z-index: 2;
    max-width: 90%;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

#portfolio-lightbox.active .lightbox-content {
    opacity: 1;
    transform: scale(1);
}

.lightbox-content img, .lightbox-content video {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 16px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 40px rgba(0, 212, 255, 0.18);
    object-fit: contain;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

@media screen and (max-width: 768px) {
    .lightbox-close {
        top: 20px;
        right: 25px;
        font-size: 3rem;
    }
}

/* ==========================================================================
   SPOTLIGHT REVEAL EFFECT STYLES
   ========================================================================== */
.spotlight-container {
    position: relative;
    overflow: hidden;
    cursor: none !important; /* Hide normal cursor to emphasize spotlight visual */
    width: 100%;
    width: 100vw;
    height: 100vh;
    height: 100svh;
    border-radius: 0 !important;
    max-width: 100% !important;
    transform: none !important; /* Disable hover scale to keep layout stable */
    box-shadow: none !important;
}

.spotlight-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
    border-radius: 0 !important;
}

.spotlight-layer--sub {
    background-image: url('fondo_sub.jpeg');
    z-index: 1;
}

.spotlight-layer--main {
    background-image: url('fondo_1.jpeg');
    z-index: 2;
    -webkit-mask-image: radial-gradient(circle 110px at var(--mouse-x, -500px) var(--mouse-y, -500px), transparent 0%, transparent 45%, #000 100%);
    mask-image: radial-gradient(circle 110px at var(--mouse-x, -500px) var(--mouse-y, -500px), transparent 0%, transparent 45%, #000 100%);
}

/* Responsive Spotlight Reveal */
@media (max-width: 768px) {
    .spotlight-container {
        height: 75vh;
        height: 75svh;
    }
    
    .spotlight-layer--main {
        -webkit-mask-image: radial-gradient(circle 70px at var(--mouse-x, -500px) var(--mouse-y, -500px), transparent 0%, transparent 45%, #000 100%);
        mask-image: radial-gradient(circle 70px at var(--mouse-x, -500px) var(--mouse-y, -500px), transparent 0%, transparent 45%, #000 100%);
    }
}

/* Fullwidth Portfolio Override for Spotlight */
.sp-portfolio--fullwidth {
    padding: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}

.sp-portfolio--fullwidth .sp-portfolio__grid {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ==========================================================================
   EXPRESS CLONE GENERATOR STYLES
   ========================================================================== */
.sp-generator {
    padding: 80px 20px;
    text-align: center;
}

.sp-generator__grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 40px auto 0;
    align-items: stretch;
}

.generator-card, .result-display {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 35px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    text-align: left;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.generator-step {
    margin-bottom: 30px;
    position: relative;
    padding-left: 45px;
}

.step-number {
    position: absolute;
    left: 0;
    top: -2px;
    width: 30px;
    height: 30px;
    background: var(--accent-color);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: var(--font-display);
    font-size: 0.95rem;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.4);
}

.generator-step h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 15px;
}

/* Drag & Drop Zone */
.drop-zone {
    width: 100%;
    height: 160px;
    border: 2px dashed rgba(0, 212, 255, 0.25);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
}

.drop-zone:hover, .drop-zone.drag-over {
    border-color: var(--accent-color);
    background: rgba(0, 212, 255, 0.03);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.08);
}

.drop-zone__input {
    display: none;
}

.drop-zone__prompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    padding: 20px;
}

.drop-zone__prompt svg {
    color: var(--accent-color);
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.drop-zone:hover .drop-zone__prompt svg {
    transform: translateY(-5px);
}

.drop-zone__prompt span {
    font-size: 0.9rem;
    font-weight: 500;
}

.drop-zone__subtitle {
    font-size: 0.75rem !important;
    color: rgba(255, 255, 255, 0.35);
    margin-top: 5px;
}

.drop-zone__preview {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.drop-zone__preview-img {
    height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.drop-zone__remove-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 0, 0, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1rem;
    transition: background 0.3s ease;
    z-index: 10;
}

.drop-zone__remove-btn:hover {
    background: rgba(255, 0, 0, 1);
}

/* Templates Selector */
.templates-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.template-card {
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    background: rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.template-card__media {
    width: 100%;
    height: 100px;
    overflow: hidden;
    background: #000;
}

.template-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.template-card:hover .template-card__media img {
    opacity: 0.8;
}

.template-card__info {
    padding: 10px 15px;
    text-align: left;
}

.template-card__info h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 2px;
    transition: color 0.3s ease;
}

.template-card__info span {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
}

.template-card.is-active {
    border-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.08);
}

.template-card.is-active .template-card__media img {
    opacity: 1;
}

.template-card.is-active h4 {
    color: var(--accent-color);
}

.btn-generate {
    width: 100%;
    justify-content: center;
    background: linear-gradient(135deg, #00b4db, #0083b0);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
    font-weight: 600;
    margin-top: 10px;
    padding: 18px 25px !important;
}

.btn-generate:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #444;
    box-shadow: none;
}

/* Result Display */
.result-display {
    min-height: 480px;
    align-items: center;
    justify-content: center;
}

.result-display__container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.result-display__placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    max-width: 280px;
}

.ai-avatar-silhouette {
    color: rgba(0, 212, 255, 0.15);
    margin-bottom: 20px;
    animation: pulseSilhouette 3s infinite ease-in-out;
}

.result-display__placeholder p {
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Loading Scanner */
.result-display__loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: rgba(255,255,255,0.7);
    width: 100%;
    height: 380px;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: rgba(0,0,0,0.3);
}

.scanner-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    box-shadow: 0 0 10px var(--accent-color);
    animation: scanAnimation 2.5s infinite ease-in-out;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(0, 212, 255, 0.1);
    border-top: 3px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s infinite linear;
    margin-bottom: 20px;
}

.result-display__loading h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.result-display__loading p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

/* Success Result */
.result-display__success {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    justify-content: space-between;
}

.result-display__image-wrapper {
    width: 100%;
    height: 340px;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.result-display__image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.result-display__actions {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 15px;
    margin-top: 25px;
}

.action-btn {
    padding: 15px 20px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.download-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
}

.download-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

.whatsapp-btn {
    background: #25d366;
    color: #000;
    border: none;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.25);
}

.whatsapp-btn:hover {
    background: #20ba5a;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
}

/* Keyframe Animations */
@keyframes pulseSilhouette {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.03); }
}

@keyframes scanAnimation {
    0% { top: 0%; }
    50% { top: 100%; }
    100% { top: 0%; }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive grid */
@media (max-width: 991px) {
    .sp-generator__grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .templates-grid {
        grid-template-columns: 1fr;
    }
    
    .result-display__actions {
        grid-template-columns: 1fr;
    }
}

/* --- Footer --- */
.footer {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(5, 5, 5, 0.95) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 80px 0 0 0;
    font-family: var(--font-main);
    color: var(--text-color);
}

.footer-trail-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.footer__container {
    position: relative;
    z-index: 2;
    max-width: 1650px;
    width: 100%;
    margin: 0 auto;
    padding: 0 50px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer__brand-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer__logo img {
    height: 90px; /* Slimmer logo for footer */
    width: auto;
    filter: brightness(0) invert(1);
    margin-top: -25px; /* Clean centring */
    margin-bottom: -25px;
}

.footer__tagline {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.5);
    max-width: 320px;
}

.footer__links-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer__links-col h3, .footer__social-col h3 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-color);
}

.footer__links-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer__links-col a, .footer__links-col span {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer__links-col a:hover {
    color: var(--accent-color);
    transform: translateX(3px);
}

.footer__social-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer__socials {
    display: flex;
    gap: 15px;
}

.footer__socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s var(--transition);
}

.footer__socials a:hover {
    background: rgba(0, 212, 255, 0.08);
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.2);
}

.footer__bottom {
    position: relative;
    z-index: 2;
    margin-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px 0;
}

.footer__bottom-container {
    max-width: 1650px;
    width: 100%;
    margin: 0 auto;
    padding: 0 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer__bottom p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer__bottom-links {
    display: flex;
    gap: 20px;
}

.footer__bottom-links a {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer__bottom-links a:hover {
    color: var(--accent-color);
}

/* --- Responsive Footer --- */
@media screen and (max-width: 1024px) {
    .footer__container {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
        padding: 0 30px;
    }
    .footer__bottom-container {
        padding: 0 30px;
    }
}

@media screen and (max-width: 600px) {
    .footer__container {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 20px;
    }
    .footer__bottom-container {
        flex-direction: column;
        text-align: center;
        padding: 0 20px;
    }
}
