/* ==========================================
   MODERN DOT CREATIVE LAB - INSPIRED BY BASIC AGENCY
   ========================================== */

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

:root {
    /* Colors */
    --black: #0a0a0a;
    --white: #ffffff;
    --gray: #666666;
    --light-gray: #e5e5e5;
    --accent: #0047FF;
    --light-blue: #00D4FF;
    
    /* Typography */
    --font-display: 'Syne', sans-serif;
    --font-body: 'Manrope', sans-serif;
    
    /* Spacing */
    --section-padding: 80px;
    --container-padding: 60px;
    
    /* Transitions */
    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-out-quad: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

body {
    font-family: var(--font-body);
    background-color: var(--white);
    color: var(--black);
    line-height: 1.6;
    overflow-x: hidden;
    /* cursor managed by JS based on pointer device */
}

/* ==========================================
   CUSTOM CURSOR
   ========================================== */

.cursor,
.cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 10000;
    border-radius: 50%;
    will-change: transform;
}

.cursor {
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, var(--light-blue), var(--accent));
    transform: translate(-50%, -50%);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.8), 0 0 25px rgba(0, 71, 255, 0.4);
    transition: transform 0.1s ease;
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border: 2px solid var(--light-blue);
    transform: translate(-50%, -50%);
    transition: width 0.3s var(--ease), height 0.3s var(--ease), border-color 0.3s var(--ease);
    opacity: 0.6;
}

body.hovering .cursor-follower {
    width: 60px;
    height: 60px;
    border-color: var(--accent);
    opacity: 1;
}

body.hovering .cursor {
    background: var(--accent);
    box-shadow: 0 0 15px rgba(0, 71, 255, 0.8);
}

/* ==========================================
   UTILITIES
   ========================================== */

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.container-small {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.container-fluid {
    width: 100%;
    padding: 0;
}

/* ==========================================
   HEADER
   ========================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 30px 0;
    background-color: rgba(255, 255, 255, 0.95);
    transition: padding 0.3s var(--ease), background-color 0.3s var(--ease);
}

@supports (backdrop-filter: blur(1px)) {
    .header {
        background-color: rgba(255, 255, 255, 0.88);
        backdrop-filter: blur(8px);
    }
}

.header.scrolled {
    padding: 20px 0;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 1px 0 var(--light-gray);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 16px;
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 800;
    color: var(--black);
    text-decoration: none;
    letter-spacing: -0.02em;
    transition: opacity 0.3s var(--ease);
}

.logo:hover {
    opacity: 0.8;
}

.logo-isotipo {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.logo-text {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.logo-sub {
    font-size: 15px;
    font-weight: 500;
    color: var(--gray);
}

.logo-r {
    font-size: 14px;
    vertical-align: super;
}

.nav-menu {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-menu a {
    color: var(--black);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s var(--ease);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--black);
    transition: width 0.3s var(--ease);
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-cta {
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--accent), var(--light-blue));
    color: var(--white) !important;
    border-radius: 50px;
    transition: transform 0.3s var(--ease);
}

.nav-cta:hover {
    transform: translateY(-2px);
}

.nav-cta::after {
    display: none;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--black);
    transition: transform 0.3s var(--ease);
}

/* ==========================================
   HERO
   ========================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    position: relative;
    background: #03050f;
    overflow: hidden;
}

#dna-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
    margin-left: 0;
    max-width: none;
    padding-left: 50px;
    padding-right: var(--container-padding);
}

.hero-left {
    width: 46%;
    min-width: 320px;
    padding: 40px 0;
    flex-shrink: 0;
}

.hero-label {
    font-size: 12px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 40px;
    color: rgba(0, 212, 255, 0.7);
    font-weight: 500;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(40px, 7vw, 82px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    margin-bottom: 40px;
    color: #ffffff;
}

.hero-title-outline {
    -webkit-text-stroke: 2px var(--light-blue);
    -webkit-text-fill-color: transparent;
    color: transparent;
    filter: drop-shadow(0 0 18px rgba(0, 212, 255, 0.5));
}

.hero-bottom {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 36px;
}

.hero-description {
    max-width: 100%;
    font-size: 16px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.55);
}

.hero-stats {
    display: flex;
    gap: 40px;
    flex-shrink: 0;
}

.stat {
    text-align: left;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 8px;
    color: var(--light-blue);
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.stat-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    right: var(--container-padding);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    z-index: 1;
}

.scroll-indicator span {
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

.scroll-line {
    width: 1px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background: linear-gradient(to bottom, var(--light-blue), var(--accent));
    animation: scroll-down 2s infinite;
}

@keyframes scroll-down {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(200%); }
}

/* ==========================================
   HEADER — DARK HERO MODE
   ========================================== */

.header.dark-mode {
    background-color: rgba(3, 5, 15, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: none;
    border-bottom: 1px solid rgba(0, 212, 255, 0.08);
}

.header.dark-mode .logo {
    color: var(--white);
}

.header.dark-mode .logo-sub {
    color: rgba(255, 255, 255, 0.5);
}

.header.dark-mode .nav-menu a {
    color: rgba(255, 255, 255, 0.8);
}

.header.dark-mode .nav-menu a:hover,
.header.dark-mode .nav-menu a.active {
    color: var(--light-blue);
}

.header.dark-mode .nav-cta {
    border-color: rgba(0, 212, 255, 0.5) !important;
    color: var(--light-blue) !important;
}

.header.dark-mode .menu-toggle span {
    background-color: var(--white);
}

/* ==========================================
   VIDEO SECTION
   ========================================== */

.video-section {
    padding: var(--section-padding) 0;
    background: linear-gradient(180deg, rgba(0, 212, 255, 0.03) 0%, rgba(255, 255, 255, 1) 50%, rgba(0, 71, 255, 0.02) 100%);
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 70vh;
    overflow: hidden;
    border-radius: 0;
}

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

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.4s var(--ease);
}

.video-wrapper:hover .video-overlay {
    opacity: 1;
}

.play-btn {
    padding: 20px 40px;
    background-color: var(--white);
    color: var(--black);
    border: 2px solid var(--light-blue);
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    transition: transform 0.3s var(--ease), background-color 0.3s var(--ease);
}

.play-btn:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, var(--light-blue), var(--accent));
    color: var(--white);
    border-color: var(--accent);
}

/* ==========================================
   FEATURED WORK
   ========================================== */

.featured-work {
    padding: var(--section-padding) 0;
    background: linear-gradient(180deg, rgba(0, 212, 255, 0.02) 0%, rgba(0, 71, 255, 0.03) 100%);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.section-link {
    color: var(--black);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s var(--ease), transform 0.3s var(--ease);
    display: inline-block;
}

.section-link:hover {
    transform: translateX(10px);
    color: var(--light-blue);
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.work-card {
    overflow: hidden;
}

.work-image {
    width: 100%;
    height: 500px;
    overflow: hidden;
    margin-bottom: 20px;
}

.work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

.work-card:hover .work-image img {
    transform: scale(1.05);
}

.work-info h3 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    transition: color 0.3s var(--ease);
}

.work-card:hover .work-info h3 {
    color: var(--light-blue);
}

.work-info p {
    color: var(--gray);
    font-size: 14px;
}

/* ==========================================
   SERVICES
   ========================================== */

.services {
    padding: 140px 0 var(--section-padding);
    background: linear-gradient(135deg, #001a4d 0%, #002d5c 30%, #003d82 60%, #0047FF 100%);
    color: var(--white);
    min-height: 100vh;
}

.services-intro {
    margin-bottom: 60px;
}

.mega-title {
    font-family: var(--font-display);
    font-size: clamp(40px, 7vw, 70px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 30px;
}

.mega-subtitle {
    font-size: clamp(18px, 2.5vw, 28px);
    line-height: 1.6;
    max-width: 700px;
    color: rgba(255, 255, 255, 0.85);
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.service-item {
    display: flex;
    gap: 40px;
    padding: 40px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: padding-left 0.4s var(--ease), border-color 0.4s var(--ease), background-color 0.4s var(--ease);
    align-items: center;
}

.service-item:hover {
    padding-left: 20px;
    border-color: var(--light-blue);
    background-color: rgba(255, 255, 255, 0.03);
}

.service-image {
    flex-shrink: 0;
    width: 200px;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease), filter 0.6s var(--ease);
    filter: grayscale(20%);
}

.service-item:hover .service-image img {
    transform: scale(1.1);
    filter: grayscale(0%);
}

.service-number {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    min-width: 60px;
    transition: color 0.4s var(--ease);
    flex-shrink: 0;
}

.service-item:hover .service-number {
    color: var(--light-blue);
}

.service-content {
    flex: 1;
}

.service-content h3 {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.service-content p {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
}

/* ==========================================
   CLIENTS
   ========================================== */

.clients {
    padding: 80px 0;
    border-top: 1px solid var(--light-gray);
    border-bottom: 1px solid var(--light-gray);
}

.clients-label {
    font-size: 12px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gray);
    margin-bottom: 40px;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.client-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: #00D4FF;
    opacity: 0.6;
    transition: opacity 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease), text-shadow 0.3s var(--ease);
    text-align: center;
}

.client-logo:hover {
    opacity: 1;
    color: #00D4FF;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
    transform: scale(1.05);
}

/* ==========================================
   ABOUT
   ========================================== */

.about {
    padding: 140px 0 var(--section-padding);
    background: 
        linear-gradient(135deg, rgba(0, 71, 255, 0.92) 0%, rgba(0, 47, 167, 0.88) 100%),
        url('tech-bg.avif') center/cover;
    position: relative;
    color: var(--white);
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.about::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 212, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 212, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.about-content {
    position: relative;
    z-index: 1;
}

.about-label {
    font-size: 12px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--light-blue);
    margin-bottom: 40px;
    font-weight: 600;
}

.about-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -0.02em;
    margin-bottom: 80px;
    color: var(--white);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.about-stats-row {
    display: flex;
    gap: 80px;
    padding-top: 60px;
    border-top: 1px solid rgba(0, 212, 255, 0.3);
}

.about-stat-number {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--light-blue);
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
}

.about-stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

/* ==========================================
   CONTACT
   ========================================== */

.contact {
    padding: 140px 0 var(--section-padding);
    background: linear-gradient(135deg, #0047FF 0%, #003d82 50%, rgba(0, 71, 255, 0.95) 100%);
    color: var(--white);
    min-height: 100vh;
}

.contact-content {
    max-width: 1200px;
}

.contact-title {
    font-family: var(--font-display);
    font-size: clamp(40px, 6vw, 70px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 40px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 60px;
}

.contact-link {
    color: var(--white);
    text-decoration: none;
    font-size: 24px;
    font-weight: 500;
    transition: color 0.3s var(--ease);
    position: relative;
}

.contact-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--light-blue), var(--accent));
    transition: width 0.3s var(--ease);
}

.contact-link:hover {
    color: var(--light-blue);
}

.contact-link:hover::after {
    width: 100%;
}

.contact-form {
    max-width: 800px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--black);
    font-family: var(--font-body);
    font-size: 16px;
    transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
    border-radius: 4px;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(0, 0, 0, 0.5);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--light-blue);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.2);
}

.contact-form textarea {
    resize: vertical;
    margin-bottom: 30px;
}

.btn-submit {
    padding: 20px 50px;
    background: var(--white);
    color: var(--accent);
    border: none;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
    border-radius: 50px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
    background: var(--light-blue);
    color: var(--white);
}

/* ==========================================
   FOOTER
   ========================================== */

.footer {
    padding: 80px 0 40px;
    background: linear-gradient(180deg, #001a4d 0%, #000a1f 100%);
    color: var(--white);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 80px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 16px;
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 16px;
}

.footer-isotipo {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.footer-brand p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.1em;
}

.footer-links {
    display: flex;
    gap: 80px;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-col a {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 12px;
    transition: color 0.3s var(--ease);
}

.footer-col a:hover {
    color: var(--white);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

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

/* ==========================================
   PAGE HEADER
   ========================================== */

.page-header {
    padding: 150px 0 80px;
    background: linear-gradient(135deg, rgba(0, 71, 255, 0.03) 0%, rgba(0, 212, 255, 0.05) 100%);
    text-align: center;
}

.page-title {
    font-family: var(--font-display);
    font-size: clamp(40px, 7vw, 80px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.page-subtitle {
    font-size: 18px;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================
   CTA SECTION
   ========================================== */

.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #0047FF 0%, #00D4FF 100%);
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.2;
}

.cta-description {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
}

.cta-btn {
    display: inline-block;
    padding: 18px 40px;
    background-color: var(--white);
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* ==========================================
   MISSION SECTION
   ========================================== */

.mission-section {
    padding: var(--section-padding) 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f4f8 50%, #f0f8ff 100%);
    position: relative;
}

.mission-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 10% 20%, rgba(0, 212, 255, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(0, 71, 255, 0.08) 0%, transparent 40%);
    pointer-events: none;
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    position: relative;
    z-index: 1;
}

.mission-item {
    padding: 40px 30px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
    border-radius: 16px;
    border: 2px solid transparent;
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.4s var(--ease);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.1);
}

.mission-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), transparent);
    transition: left 0.6s var(--ease);
}

.mission-item:hover::before {
    left: 100%;
}

.mission-item::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 2px;
    background: linear-gradient(135deg, #00D4FF 0%, #0047FF 50%, #00D4FF 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s var(--ease);
}

.mission-item:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 15px 40px rgba(0, 212, 255, 0.25),
        0 0 25px rgba(0, 212, 255, 0.15);
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(240, 248, 255, 0.95) 100%);
}

.mission-item:hover::after {
    opacity: 1;
}

.mission-item h3 {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #0047FF;
    transition: color 0.3s var(--ease);
}

.mission-item:hover h3 {
    color: #00D4FF;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.mission-item p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--gray);
}

/* ==========================================
   TEAM SECTION
   ========================================== */

.team-section {
    padding: var(--section-padding) 0;
    background: linear-gradient(180deg, rgba(0, 212, 255, 0.02) 0%, rgba(255, 255, 255, 1) 100%);
}

.section-subtitle {
    text-align: center;
    color: var(--gray);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto 60px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.team-member {
    text-align: center;
}

.team-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    margin-bottom: 20px;
    border-radius: 8px;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s var(--ease);
}

.team-member:hover .team-image img {
    transform: scale(1.05);
}

.team-member h4 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.team-member p {
    color: var(--gray);
    font-size: 14px;
}

/* 3-column grid for real team */
.team-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

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

.team-member-card {
    text-align: left;
}

.team-member-card .team-image {
    height: 340px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
    position: relative;
}

.team-member-card .team-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, rgba(0, 71, 255, 0.25), transparent);
    pointer-events: none;
    transition: opacity 0.4s var(--ease);
    opacity: 0;
}

.team-member-card:hover .team-image::after {
    opacity: 1;
}

.team-member-info {
    padding: 0 4px;
}

.team-member-card h4 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--black);
}

.team-role {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 14px !important;
}

.team-bio {
    font-size: 15px;
    line-height: 1.7;
    color: var(--gray) !important;
}

/* ==========================================
   SERVICE FEATURES LIST
   ========================================== */

.service-features {
    list-style: none;
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.service-features li {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    padding-left: 20px;
}

.service-features li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--light-blue);
    font-weight: bold;
}

/* ==========================================
   ACTIVE NAV STATE
   ========================================== */

.nav-menu a.active {
    color: var(--accent);
}

.nav-menu a.active::after {
    width: 100%;
}

/* ==========================================
   FLOATING SOCIAL BUTTONS
   ========================================== */

.floating-social {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
    animation: fadeInUp 0.6s ease 0.3s backwards;
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.floating-btn svg {
    width: 28px;
    height: 28px;
}

.floating-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.whatsapp-btn {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: var(--white);
}

.whatsapp-btn:hover {
    background: linear-gradient(135deg, #128C7E 0%, #075E54 100%);
}

.instagram-btn {
    background: linear-gradient(135deg, #E1306C 0%, #C13584 50%, #833AB4 100%);
    color: var(--white);
}

.instagram-btn:hover {
    background: linear-gradient(135deg, #C13584 0%, #833AB4 50%, #5851DB 100%);
}

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

/* ==========================================
   RESPONSIVE — TABLET (max 1024px)
   ========================================== */

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

    .hero-title {
        font-size: clamp(36px, 6vw, 65px);
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .team-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================
   RESPONSIVE — MOBILE (max 768px)
   ========================================== */

@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
        --container-padding: 20px;
    }

    /* Hide custom cursor on touch */
    .cursor,
    .cursor-follower {
        display: none;
    }

    body {
        cursor: auto;
    }

    /* ── NAV ── */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 32px;
        transition: right 0.4s var(--ease);
        z-index: 999;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu a {
        font-size: 18px;
    }

    .menu-toggle {
        display: flex;
        z-index: 1001;
    }

    .menu-toggle.active span:first-child {
        transform: rotate(45deg) translate(7px, 7px);
    }

    .menu-toggle.active span:last-child {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    /* ── HERO ── */
    .hero {
        min-height: 100svh;
        padding-top: 110px;
        padding-bottom: 60px;
    }

    .hero-left {
        max-width: 100%;
    }

    .hero-label {
        font-size: 11px;
        margin-bottom: 24px;
    }

    .hero-title {
        font-size: clamp(38px, 11vw, 60px);
        margin-bottom: 32px;
    }

    .hero-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 32px;
    }

    .hero-description {
        font-size: 16px;
        max-width: 100%;
    }

    .hero-stats {
        width: 100%;
        justify-content: space-between;
        gap: 0;
    }

    .stat { text-align: left; }

    .stat-number {
        font-size: 28px;
    }

    .stat-label {
        font-size: 11px;
    }

    .scroll-indicator {
        display: none;
    }

    /* ── VIDEO ── */
    .video-wrapper {
        height: 45vh;
    }

    /* ── WORK GRID ── */
    .work-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .work-image {
        height: 280px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 30px;
    }

    .section-title {
        font-size: clamp(26px, 7vw, 40px);
    }

    /* ── SERVICES ── */
    .service-item {
        flex-direction: column;
        gap: 20px;
        padding: 28px 0;
    }

    .service-image {
        width: 100%;
        height: 220px;
    }

    .service-features {
        grid-template-columns: 1fr;
    }

    .mega-title {
        font-size: clamp(34px, 9vw, 55px);
    }

    .mega-subtitle {
        font-size: 16px;
    }

    /* ── CONTACT FORM ── */
    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-title {
        font-size: clamp(32px, 9vw, 55px);
    }

    .contact-link {
        font-size: 18px;
    }

    .contact {
        padding: 110px 0 60px;
    }

    /* ── ABOUT / NOSOTROS ── */
    .about {
        padding: 110px 0 60px;
        min-height: auto;
    }

    .about-title {
        font-size: clamp(20px, 5vw, 32px);
    }

    .about-stats-row {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 30px;
    }

    .about-stat {
        min-width: 80px;
    }

    .about-stat-number {
        font-size: 34px;
    }

    /* ── MISSION ── */
    .mission-grid {
        grid-template-columns: 1fr;
    }

    /* ── TEAM ── */
    .team-grid,
    .team-grid-3 {
        grid-template-columns: 1fr;
    }

    .team-member-card .team-image {
        height: 380px;
    }

    /* ── CLIENTS ── */
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .client-logo {
        font-size: 14px;
        height: 60px;
    }

    /* ── CTA ── */
    .cta-section {
        padding: 60px 0;
    }

    .cta-title {
        font-size: clamp(24px, 7vw, 40px);
    }

    /* ── SERVICES PAGE ── */
    .services {
        padding: 110px 0 60px;
    }

    /* ── PAGE HEADER ── */
    .page-header {
        padding: 110px 0 50px;
    }

    /* ── FOOTER ── */
    .footer {
        padding: 60px 0 30px;
    }

    .footer-content {
        flex-direction: column;
        gap: 40px;
        margin-bottom: 40px;
        padding-bottom: 40px;
    }

    .footer-links {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .footer-col h4 {
        font-size: 12px;
    }

    .footer-col a {
        font-size: 13px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        font-size: 11px;
    }

    /* ── FLOATING BUTTONS ── */
    .floating-social {
        bottom: 20px;
        right: 16px;
        gap: 10px;
    }

    .floating-btn {
        width: 48px;
        height: 48px;
    }

    .floating-btn svg {
        width: 22px;
        height: 22px;
    }
}

/* ==========================================
   RESPONSIVE — SMALL MOBILE (max 380px)
   ========================================== */

@media (max-width: 380px) {
    .hero-title {
        font-size: 34px;
    }

    .footer-links {
        grid-template-columns: 1fr 1fr;
    }

    .clients-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ==========================================
   ANIMATIONS
   ========================================== */

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

.animate-in {
    animation: fadeInUp 0.8s var(--ease) forwards;
}


/* ==========================================
   CUSTOM CURSOR SYSTEM
   ========================================== */

/* Default: native cursor everywhere */
.menu-toggle,
.work-card,
.play-btn,
.btn-submit,
.floating-btn {
    cursor: auto;
}

/* Custom cursor only when JS detects fine pointer (mouse) */
.has-custom-cursor,
.has-custom-cursor a,
.has-custom-cursor button,
.has-custom-cursor .menu-toggle,
.has-custom-cursor .work-card,
.has-custom-cursor .play-btn,
.has-custom-cursor .btn-submit,
.has-custom-cursor .floating-btn {
    cursor: none;
}

/* Always keep native cursor on text inputs */
.has-custom-cursor input,
.has-custom-cursor textarea,
.has-custom-cursor select {
    cursor: auto !important;
}
/* ==========================================
   1. FOCUS VISIBLE — ACCESSIBILITY
   ========================================== */

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid var(--light-blue);
    outline-offset: 4px;
    border-radius: 8px;
    box-shadow: 0 0 0 6px rgba(0, 212, 255, 0.15);
}

/* ==========================================
   2. REDUCED MOTION SUPPORT
   ========================================== */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto !important;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    /* Disable scroll-driven parallax */
    .hero-stats {
        transform: none !important;
    }

    /* Disable hover transforms that involve motion */
    .work-card:hover .work-image img,
    .team-member:hover .team-image img,
    .service-item:hover .service-image img {
        transform: none !important;
    }

    .section-link:hover,
    .mission-item:hover,
    .floating-btn:hover {
        transform: none !important;
    }

    .scroll-line::after,
    .floating-social {
        animation: none !important;
    }
}

/* ==========================================
   7. PERFORMANCE — TAP HIGHLIGHT & IMAGES
   ========================================== */

* {
    -webkit-tap-highlight-color: transparent;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}
/* ── WORK CARD LINK (trabajo.html) ─────────── */
.work-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.work-card-link .work-image {
    position: relative;
    overflow: hidden;
}

.work-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 71, 255, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.work-card-link:hover .work-overlay {
    opacity: 1;
}

.work-visit {
    color: #ffffff;
    font-family: 'Syne', sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    transform: translateY(8px);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.work-card-link:hover .work-visit {
    transform: translateY(0);
}

.work-card-link:hover .work-info h3 {
    color: var(--accent);
}