/* Font Import */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;700;900&display=swap');

:root {
    --bg-color: #050505;
    --text-color: #F5F5F5;
    --accent-color: #00FF00;
    --card-bg: #0F0F0F;
    --font-main: 'Outfit', sans-serif;
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --border-radius: 24px;
    --border-radius-sm: 12px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

/* Noise Texture */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.1;
}

h1 {
    font-size: clamp(3.5rem, 8vw, 7rem);
    text-transform: uppercase;
    letter-spacing: -2px;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 1rem;
}

.text-accent {
    color: var(--accent-color);
}

.text-small {
    font-size: 0.9rem;
    color: #AAA;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.glow-text {
    text-shadow: 0 0 20px rgba(0, 255, 0, 0.8),
        0 0 40px rgba(0, 255, 0, 0.6),
        0 0 60px rgba(0, 255, 0, 0.4);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1.2rem 3rem;
    border-radius: 100px;
    /* Fully rounded */
    color: #000;
    background: var(--accent-color);
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: 1px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.8);
    color: #000;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    box-shadow: none;
}

.btn-outline:hover {
    background: var(--accent-color);
    color: #000;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.4);
}

.btn-lg {
    font-size: 1.5rem;
    padding: 1.5rem 4rem;
}

/* Nav Bar - Cinematic Floating */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 2rem 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    backdrop-filter: none;
    border-bottom: none;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.95);
    padding: 1.5rem 10%;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo img {
    height: 45px;
}

.nav-links {
    display: flex;
    gap: 3rem;
    align-items: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.nav-links a:not(.btn):hover {
    color: var(--accent-color);
}

.nav-links .btn {
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    margin-left: 1rem;
}

/* Hero Section - Cinematic Asymmetric Split */
.hero {
    height: 100vh;
    min-height: 700px;
    display: grid;
    grid-template-columns: 40% 60%;
    align-items: center;
    position: relative;
    padding: 0;
    overflow: hidden;
    background: #050505;
}

.hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background-image: url('../imagenes/hero_creative_green.png');
    background-size: cover;
    background-position: center left;
    z-index: 0;
    /* Green duotone gradient mask to blend with black */
    mask-image: linear-gradient(to left, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.9) 50%, rgba(0, 0, 0, 0) 100%);
    -webkit-mask-image: linear-gradient(to left, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.9) 50%, rgba(0, 0, 0, 0) 100%);
}

.hero-content {
    padding: 0 10% 0 15%;
    z-index: 1;
    text-align: left;
    max-width: none;
}

.hero-content h1 {
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: #FFFFFF;
    letter-spacing: -2px;
}

/* Highlighter Animation */
.highlight-text {
    position: relative;
    display: inline-block;
    color: #fff;
    padding: 0 0.2em;
    z-index: 1;
    animation: text-to-black 0.01s linear 0.9s forwards;
}

.highlight-text::before {
    content: '';
    position: absolute;
    top: 5%;
    bottom: 5%;
    left: 0;
    width: 0%;
    background-color: var(--accent-color);
    z-index: -1;
    transform: skewX(-8deg);
    animation: highlight-wipe 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.5s forwards;
}

@keyframes highlight-wipe {
    to {
        width: 100%;
    }
}

@keyframes text-to-black {
    to {
        color: #000;
        text-shadow: none;
    }
}

.hero-content h2 {
    font-size: clamp(1rem, 2vw, 1.3rem);
    line-height: 1.6;
    color: #B0B0B0;
    font-weight: 400;
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-content .btn {
    border-radius: 50px;
    padding: 1.2rem 3rem;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Results / Counters */
.results-section {
    padding: 6rem 5%;
    background: #000;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 4rem;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.metric-card {
    padding: 2rem;
    background: transparent;
    border: none;
    transition: var(--transition);
}

.metric-card:hover {
    transform: translateY(-5px);
}

.metric-number {
    font-size: 5rem;
    color: var(--accent-color);
    text-shadow: 0 0 30px rgba(0, 255, 0, 0.8),
        0 0 60px rgba(0, 255, 0, 0.5),
        0 0 90px rgba(0, 255, 0, 0.3);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 1rem;
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {

    0%,
    100% {
        transform: scale(1);
        text-shadow: 0 0 30px rgba(0, 255, 0, 0.8),
            0 0 60px rgba(0, 255, 0, 0.5),
            0 0 90px rgba(0, 255, 0, 0.3);
    }

    50% {
        transform: scale(1.05);
        text-shadow: 0 0 40px rgba(0, 255, 0, 1),
            0 0 80px rgba(0, 255, 0, 0.7),
            0 0 120px rgba(0, 255, 0, 0.5);
    }
}

/* Clients Marquee */
.marquee-section {
    padding: 3rem 0;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.marquee-container {
    display: flex;
    width: max-content;
    animation: scroll 60s linear infinite;
    align-items: center;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.marquee-item {
    margin: 0 2.5rem;
    width: 260px;
    height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    position: relative;
    cursor: pointer;
}

.marquee-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: var(--transition);
}

.marquee-link {
    opacity: 0;
    transform: translateY(10px);
    margin-top: 10px;
    font-size: 0.8rem;
    color: var(--accent-color);
    transition: var(--transition);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
}

.marquee-item:hover img {
    filter: brightness(0) saturate(100%) invert(48%) sepia(79%) saturate(2476%) hue-rotate(86deg) brightness(118%) contrast(119%);
    transform: scale(1.15);
}

.marquee-item:hover .marquee-link {
    opacity: 1;
    transform: translateY(0);
}

/* Cases / TikToks */
.cases-section {
    padding: 4rem 5%;
}

.cases-section .section-title {
    padding-bottom: 3rem;
}

.cases-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 2rem !important;
    perspective: 1500px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

@media (max-width: 1100px) {
    .cases-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem !important;
    }
}

@media (max-width: 700px) {
    .cases-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        padding: 0 1rem;
    }
}

.case-card {
    background: transparent;
    width: 100% !important;
    height: 600px;
    position: relative;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    transition: transform 0.8s ease-in-out;
    -webkit-transition: -webkit-transform 0.8s ease-in-out;
    cursor: pointer;
    transform: rotateY(0deg);
    -webkit-transform: rotateY(0deg);
    display: block;
}

.case-card.flipped {
    transform: rotateY(180deg) !important;
    -webkit-transform: rotateY(180deg) !important;
}

.case-card-front,
.case-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.case-card-front {
    background: var(--card-bg);
    border: 1px solid #222;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 2rem;
    transition: border-color 0.3s;
    transform: rotateY(0deg);
    -webkit-transform: rotateY(0deg);
}

.case-card:hover .case-card-front {
    border-color: var(--accent-color);
}

.case-card-back {
    background: #000;
    transform: rotateY(180deg);
    -webkit-transform: rotateY(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
}

.case-stat {
    font-size: 2.5rem;
    color: var(--accent-color);
    font-weight: 900;
    margin-bottom: 1.2rem;
    text-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
}

.case-logo {
    width: 110px;
    height: 70px;
    object-fit: contain;
    margin-bottom: 1.2rem;
    filter: brightness(0) invert(1);
}

.case-card h4 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.case-card .text-small {
    margin-bottom: 1.5rem;
    color: #999;
    font-size: 0.9rem;
}

.case-action {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-color);
    font-weight: 700;
    padding: 0.8rem 1.5rem;
    border: 1px solid var(--accent-color);
    border-radius: 50px;
    transition: all 0.3s ease;
}

.case-card:hover .case-action {
    background: var(--accent-color);
    color: #000;
}

.case-video-embed {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow: auto;
}

.case-video-embed blockquote {
    margin: 0 auto;
}

.case-video-embed iframe {
    border-radius: var(--border-radius);
}

/* Pricing */
.pricing-section {
    padding: 4rem 5%;
}

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

.price-card {
    background: var(--card-bg);
    border: 1px solid #222;
    border-radius: var(--border-radius);
    padding: 3rem 2rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.price-card h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.price-tag {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 1rem 0;
    color: #fff;
}

.price-tag small {
    font-size: 1rem;
    color: #888;
    font-weight: 400;
}

.price-card.featured {
    border: 1px solid var(--accent-color);
    box-shadow: 0 0 40px rgba(0, 255, 0, 0.15);
    z-index: 10;
    transform: scale(1.05);
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    text-align: left;
    flex-grow: 1;
    /* Pushes button to bottom */
}

.plan-features li {
    position: relative;
    padding-left: 1.8rem;
    margin-bottom: 1rem;
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.4;
}

.plan-features li::before {
    content: '✦';
    color: var(--accent-color);
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.2rem;
}

/* Featured Badge */
.featured-badge {
    color: var(--accent-color);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Pulse Animation for Button/Card */
@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 255, 0, 0.7);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(0, 255, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 255, 0, 0);
    }
}

.btn-pulse {
    animation: pulse-green 2s infinite;
    background: var(--accent-color);
    color: #000;
    font-weight: 800;
    border: none;
}

.btn-pulse:hover {
    background: #00ff00;
    /* Brighter green on hover */
    transform: scale(1.05);
}

/* Adjust button spacing in cards */
.price-card .btn {
    width: 100%;
    margin-top: auto;
}

/* Team */
.team-section {
    padding: 4rem 5%;
}

.full-team {
    margin: 0 auto 4rem auto;
    max-width: 1000px;
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid #222;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.full-team img {
    width: 100%;
    display: block;
    transition: var(--transition);
}

.full-team:hover img {
    transform: scale(1.02);
}

.full-team-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 3rem;
    background: linear-gradient(to top, #000 0%, transparent 100%);
}

/* Team Members Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

@media (max-width: 1024px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
}

.team-card {
    position: relative;
    height: 500px;
    border-radius: 1.5rem;
    /* rounded-xl approx */
    overflow: hidden;
    cursor: pointer;
    border: 1px solid #333;
    transition: border-color 0.5s ease;
}

.team-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: all 0.5s ease;
}

.team-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), transparent);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    transition: all 0.5s ease;
}

.team-info {
    transform: translateY(20px);
    transition: transform 0.5s ease;
}

.team-name {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
}

.team-role {
    color: var(--accent-color);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.team-desc {
    color: #ddd;
    font-size: 0.95rem;
    line-height: 1.4;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s ease;
    margin-top: 0;
}

/* Hover Effects */
.team-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.2);
}

.team-card:hover img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.team-card:hover .team-info {
    transform: translateY(0);
}

.team-card:hover .team-desc {
    max-height: 150px;
    /* Enough for the text */
    opacity: 1;
    margin-top: 1rem;
}

/* Testimonials Slider (Infinite Marquee) */
.testimonials-section {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
    background: #000;
}

.testimonials-track {
    display: flex;
    width: max-content;
    animation: scroll 60s linear infinite;
    gap: 2rem;
    padding: 2rem 0;
}

.testimonials-track:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 1rem));
    }
}

.testimonial-card {
    background: rgba(15, 15, 15, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 2.5rem;
    width: 400px;
    flex-shrink: 0;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    border-color: var(--accent-color);
    background: rgba(20, 20, 20, 0.9);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 255, 0, 0.1);
}

.quote-icon {
    font-size: 3rem;
    color: var(--accent-color);
    line-height: 1;
    margin-bottom: 1rem;
    font-family: serif;
    opacity: 0.5;
}

.stars {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    display: flex;
    gap: 2px;
}

.testimonial-text {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #eee;
    margin-bottom: 2rem;
    font-style: italic;
    flex-grow: 1;
}

.testimonial-author h4 {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.testimonial-author p {
    color: #888;
    font-size: 0.9rem;
    font-weight: 500;
}

.testimonials-section::before,
.testimonials-section::after {
    content: "";
    position: absolute;
    top: 0;
    width: 15%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.testimonials-section::before {
    left: 0;
    background: linear-gradient(to right, #000, transparent);
}

.testimonials-section::after {
    right: 0;
    background: linear-gradient(to left, #000, transparent);
}

@media (max-width: 768px) {
    .testimonial-card {
        width: 300px;
        padding: 2rem;
    }
}

/* Extensions: Location, FAQ, CTA */
.location-section,
.faq-section,
.final-cta {
    padding: 6rem 5%;
}

.map-container {
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 450px;
    border: 1px solid #333;
    filter: grayscale(100%) invert(90%) contrast(120%);
    transition: var(--transition);
}

.map-container:hover {
    filter: grayscale(100%) invert(90%) contrast(100%);
}

.faq-item {
    border-bottom: 1px solid #222;
    padding: 1.5rem 0;
}

.faq-question {
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
}

.faq-question::after {
    content: '+';
    color: var(--accent-color);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    color: #999;
}

/* Contact Form (Premium Glow Card) */
.contact-section {
    padding: 6rem 5%;
    position: relative;
    z-index: 2;
}

.contact-card {
    max-width: 600px;
    margin: 0 auto;
    background: #0A0A0A;
    border: 1px solid #222;
    border-radius: 1.5rem;
    /* rounded-2xl */
    padding: 3rem;
    box-shadow: 0 0 60px rgba(0, 255, 0, 0.05);
    /* Subtle smooth glow */
    position: relative;
}

/* Enhance glow on hover? Maybe subtly */
/*.contact-card:hover {
    box-shadow: 0 0 80px rgba(0, 255, 0, 0.1);
}*/

.contact-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.contact-header h2 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.contact-header p {
    color: #888;
    font-size: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-label {
    display: block;
    color: #666;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    margin-left: 0.2rem;
}

.form-input,
.form-select {
    width: 100%;
    background: #111;
    /* Neutral 900 approx */
    border: 1px solid transparent;
    border-radius: 0.5rem;
    /* rounded-lg */
    padding: 1rem;
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(0, 255, 0, 0.2);
    /* ring-2 ring-green */
    background: #000;
}

.btn-block {
    width: 100%;
    padding: 1.2rem;
    font-size: 1.1rem;
    margin-top: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Premium Footer */
.site-footer {
    background: #050505;
    border-top: 1px solid #1a1a1a;
    padding: 5rem 5% 2rem;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto 4rem;
}

.footer-col h3 {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 1rem;
    display: block;
}

.footer-desc {
    color: #888;
    line-height: 1.6;
    font-size: 0.95rem;
    max-width: 300px;
}

.footer-nav {
    list-style: none;
    padding: 0;
}

.footer-nav li {
    margin-bottom: 0.8rem;
}

.footer-nav a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.footer-nav a:hover {
    color: var(--accent-color);
}

.footer-contact p {
    color: #ccc;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid #1a1a1a;
    padding-top: 2rem;
    text-align: center;
    color: #555;
    font-size: 0.9rem;
}

.footer-credits {
    margin-top: 0.5rem;
}

.footer-credits span {
    color: #fff;
    font-weight: 600;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .footer-desc,
    .footer-contact p {
        margin: 0 auto 1rem;
    }
}

/* WhatsApp Pulse Animation */
.whatsapp-btn {
    animation: none;
    /* Reset if needed */
}

.whatsapp-pulse {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-pulse::before,
.whatsapp-pulse::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.5);
    width: 100%;
    height: 100%;
    z-index: -1;
    animation: pulse-waves 2s infinite;
}

.whatsapp-pulse::after {
    animation-delay: 1s;
}

@keyframes pulse-waves {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

.final-cta {
    text-align: center;
    padding: 8rem 5%;
    background: radial-gradient(circle at center, #111 0%, #000 70%);
}

/* Contact Form */
.form-input,
.form-select,
.form-textarea {
    border-radius: var(--border-radius-sm);
    background: #0F0F0F;
    border: 1px solid #222;
    padding: 1.5rem;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--accent-color);
    background: #151515;
}

/* Footer */
footer {
    padding: 5rem 5% 2rem;
    background: #050505;
    border-top: 1px solid #111;
}

/* Animation Utilities */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Don't apply fade transform to case cards */
.case-card.fade-in-up {
    transform: rotateY(0deg) !important;
}

.case-card.fade-in-up.visible {
    transform: rotateY(0deg) !important;
}

.case-card.fade-in-up.flipped {
    transform: rotateY(180deg) !important;
}

@media (max-width: 768px) {
    .navbar {
        padding: 1rem 5%;
    }

    .nav-links {
        position: static;
        transform: none;
        gap: 1.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero {
        grid-template-columns: 1fr;
        padding: 120px 5% 60px;
        text-align: center;
    }

    .hero-bg {
        width: 100%;
        right: auto;
        left: 0;
        opacity: 0.3;
        mask-image: none;
        -webkit-mask-image: none;
    }

    .hero-content {
        padding: 0 5%;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content h2 {
        max-width: 100%;
    }

    h1 {
        font-size: 13vw;
    }
}

/* =========================================
   MOBILE RESPONSIVE & OPTIMIZATIONS
   ========================================= */

/* --- Navbar Mobile --- */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 2000;
}

.menu-toggle .bar {
    height: 3px;
    width: 100%;
    background-color: #fff;
    border-radius: 10px;
    transition: 0.3s;
}

/* Nav Links Base (Desktop) */
.nav-links {
    list-style: none;
    /* Reset ul */
    display: flex;
    gap: 2rem;
    align-items: center;
}

@media (max-width: 768px) {

    /* Navbar Toggle */
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100% !important;
        height: 100vh;
        background: #000000 !important;
        /* Solid Black */
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: transform 0.4s ease-in-out;
        transform: translateX(100%);
        /* Hidden to right */
        z-index: 9998;
    }

    .nav-links.active {
        transform: translateX(0);
        /* Show */
        right: auto;
        /* Reset right property if set elsewhere */
    }

    .nav-links li {
        margin: 1.5rem 0;
    }

    .nav-links a {
        font-size: 1.2rem;
    }

    /* Toggle Animation */
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* --- General Section Padding fix --- */
    section {
        padding: 3rem 1rem !important;
    }

    .hero {
        padding-top: 8rem !important;
        /* Space for navbar */
        padding-bottom: 4rem !important;
        min-height: auto;
        /* Remove 100vh requirement on mobile */
    }

    .hero-content h1 {
        font-size: 3rem !important;
        /* Smaller H1 */
    }

    /* --- Team Cards Mobile Touch Fix --- */
    .team-card {
        cursor: pointer;
        /* Indicar que es touchable */
    }

    .team-card-overlay {
        /* En móvil, el overlay puede estar siempre semi-visible o activarse con clase */
        opacity: 0;
        /* Usaremos JS para añadir clase .active en touch */
    }

    .team-card.mobile-active .team-card-overlay {
        opacity: 1;
        background: rgba(0, 0, 0, 0.85);
        /* Más oscuro para legibilidad */
    }

    /* Adjust Marquee */
    .marquee-item {
        margin: 0 1rem;
        width: 150px;
        height: 80px;
    }

    /* Audit Form Padding */
    .contact-card {
        padding: 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .footer-col {
        align-items: center;
    }

    .footer-contact p {
        justify-content: center;
    }
}


/* --- Additional Mobile Tweaks --- */
@media (max-width: 768px) {
    /* Team Cards Fix */
    .team-card.mobile-active .team-card-overlay {
        opacity: 1 !important;
        visibility: visible !important;
        background: rgba(0, 0, 0, 0.9) !important;
        transform: translateY(0) !important;
    }
    
    .team-card:hover .team-card-overlay {
        opacity: 0; /* Prevent sticky hover on mobile */
    }

    @media (hover: hover) {
        .team-card:hover .team-card-overlay {
            opacity: 1;
        }
    }

    /* Section Padding Fix */
    section {
        padding: 4rem 1.5rem !important;
    }
    
    .hero-content h1 {
        font-size: 2.8rem !important;
        line-height: 1.1 !important;
    }
    
    .hero-content h2 {
        font-size: 1.1rem !important;
    }
}

/* --- FIXES: MENÚ SALIDA & EQUIPO VISIBLE --- */

@media (max-width: 768px) {
    /* 1. Botón Hamburguesa Fijo (Para poder salir) */
    .menu-toggle {
        position: fixed !important;
        top: 25px; /* Ajustar según altura del logo */
        right: 20px;
        z-index: 10001 !important; /* Encima del menú negro (9998) */
    }

    /* 2. Equipo: Nombre y Título SIEMPRE visibles */
    .team-card-overlay {
        opacity: 1 !important;
        visibility: visible !important;
        background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 80%) !important;
        transform: translateY(0) !important;
        /* Alinear contenido abajo */
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        padding-bottom: 1.5rem;
    }

    /* Ocultar descripción por defecto en móvil */
    .team-desc {
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transition: 0.3s ease;
        margin-top: 0;
    }

    /* Estado Activo (Al tocar): Mostrar descripción y fondo más oscuro */
    .team-card.mobile-active .team-card-overlay {
        background: rgba(0, 0, 0, 0.9) !important; /* Fondo solido oscuro */
        justify-content: center; /* Centrar todo o mantener abajo */
    }

    .team-card.mobile-active .team-desc {
        max-height: 200px; /* Suficiente para el texto */
        opacity: 1;
        margin-top: 1rem;
    }
}
