/* ============================================================
   ABSTRACT STUDIO — Stylesheet

   Dirección visual:
   Minimalista, elegante, artística y atemporal.

   Inspiración:
   Porsche • Apple • PlayStation

   Identidad:
   Negro predominante, azul como color de acento,
   tipografía limpia, animaciones sutiles y mucho espacio.
   ============================================================ */

/* ============================================================

   INDEX

   01. Design Tokens
   02. Reset
   03. Layout
   04. Header
   05. Hero
   06. Services
   07. About
   08. Contact
   09. Footer
   10. Animations
   11. Responsive

   ============================================================ */
   
/* ============================================================
   DESIGN TOKENS
   Sistema de diseño global de Abstract Studio.
   Cualquier cambio aquí se reflejará en todo el sitio.
   ============================================================ */

:root {

    /* ---------- Color Palette ---------- */
    
    --bg: #050505;
    --surface: #0D0D0D;
    --surface-2: #171717;
    --accent-rgb: 50, 100, 200;
    --white: #ffffff;
    --primary: #3264d2;
    --primary-soft: #327de1;
    --accent: #3296ff;

    --text: #F5F5F5;
    --text-soft: #BDBDBD;

    --black:#000;
    --transparent:transparent;

    /* ---------- Social Links Color Palette ---------- */
    
    --instagram: #3296ff;
    --whatsapp: #3296ff;
    --facebook: #3296ff;
    --behance: #3296ff;

    /* ---------- Browser Preferences ----------*/

    color-scheme: dark;

    /* ---------- UI ---------- */

    --line: rgba(255, 255, 255, 0.08);

    /* ---------- Logo Size ---------- */

    --logo-size: 50px;

    /* ---------- Icon Size ---------- */

    --icon-sm: 16px;
    --icon-md: 24px;
    --icon-lg: 32px;
    --icon-xl: 48px;
    
    /* ---------- Fonts ---------- */
    
    --font-heading: "Rajdhani", sans-serif;
    --font-body: "Montserrat", sans-serif;

    /* ---------- Font Size ---------- */

    --fs-xs: .72rem;
    --fs-sm: .9rem;
    --fs-md: 1rem;
    --fs-lg: 1.1rem;
    --fs-xl: 1.4rem;
    --fs-2xl: 1.5rem;
    --fs-3xl: clamp(2.6rem, 5.5vw, 5rem);

    /* ---------- Font Weight ---------- */

    --fw-regular: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;

    /* ---------- Layout ---------- */

    --container-sm:720px;
    --container-md:960px;
    --container-lg:1280px;
    --container-xl:1440px;
    --header-height: 90px;
    --gutter: 1.5rem;
    --container-header: 1700px;

    /* ---------- Blur ---------- */
    
    --blur-sm:14px;
    --blur-lg:160px;
    
    /* ---------- Opacity ---------- */

    --opacity-low:.25;
    --opacity-medium:.65;
    --opacity-high:.85;

    /* ---------- Motion ---------- */

    --ease-standard: cubic-bezier(.19, 1, .22, 1);
    --ease-smooth: cubic-bezier(.16, 1, .3, 1);
    --ease-fast: cubic-bezier(.4, 0, .2, 1);

    /* ---------- Motion Duration ---------- */

    --duration-fast: 150ms;
    --duration-normal: 250ms;
    --duration-slow: 400ms;
    --duration-slower: 700ms;

    /* ---------- Motion Distance ---------- */

    --motion-distance-sm: 12px;
    --motion-distance-md: 20px;
    --motion-distance-lg: 28px;

    /* ---------- Transitions ---------- */

    --transition-fast:
        all var(--duration-fast) var(--ease-fast);

    --transition-standard:
        all var(--duration-normal) var(--ease-standard);

    --transition-smooth:
        all var(--duration-normal) var(--ease-smooth);

    --transition-opacity:
        opacity var(--duration-normal) var(--ease-fast);

    --transition-transform:
        transform var(--duration-normal) var(--ease-standard);

    --transition-button:
        background var(--duration-normal) var(--ease-smooth),
        color var(--duration-normal) var(--ease-smooth),
        border-color var(--duration-normal) var(--ease-smooth),
        transform var(--duration-normal) var(--ease-smooth),
        box-shadow var(--duration-normal) var(--ease-smooth);

    --transition-header:
        background var(--duration-normal) var(--ease-standard),
        padding var(--duration-normal) var(--ease-standard),
        border-color var(--duration-normal) var(--ease-standard),
        box-shadow var(--duration-normal) var(--ease-standard);

    --transition-menu:
        opacity var(--duration-normal) var(--ease-fast),
        color var(--duration-normal) var(--ease-standard);

    --transition-underline:
        transform var(--duration-normal) var(--ease-standard);

    --transition-padding:
        padding var(--duration-normal) var(--ease-smooth);

    --transition-reveal:
        opacity var(--duration-slower) var(--ease-smooth),
        transform var(--duration-slower) var(--ease-smooth);


    /* ---------- Border Line ---------- */

    --border-primary: 1px solid var(--primary-soft);
    --border-line: 1px solid var(--line);

    /* ---------- Border Radius ---------- */

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-full:999px;

    /* ---------- Z-index ---------- */

    --z-background: -1;
    --z-header: 100;
    --z-dropdown: 200;
    --z-tooltip: 500;
    --z-overlay: 900;
    --z-modal: 1000;
    --z-toast: 1100;
    
    /* ---------- Spacing ----------
    Utilizar estas variables para márgenes, paddings, gaps y separaciones.
    Evitar valores sueltos siempre que exista un equivalente dentro de esta escala.
    -------------------------------- */

    --space-3xs: .125rem;
    --space-2xs: .25rem;
    --space-xs: .5rem;
    --space-sm: .75rem;

    --space-md: 1rem;
    --space-md-lg: 1.25rem;
    --space-lg-sm: 1.5rem;
    --space-lg: 2rem;
    --space-lg-xl: 2.5rem;
    --space-xl-sm: 3rem;

    --space-xl: 4rem;
    --space-2xl: 8rem;
    --space-3xl: 12rem;
    --space-4xl: 16rem;

    /* ---------- Shadows ---------- */

    --shadow-sm: 0 4px 12px rgb(0 0 0 / .16);
    --shadow-md: 0 8px 24px rgb(0 0 0 / .24);
    --shadow-lg: 0 16px 48px rgb(0 0 0 / .32);
    --shadow-accent: 0 8px 24px rgb(var(--accent-rgb) / .25);
    
    /* ---------- Focus ---------- */

    --focus-outline: 2px solid var(--accent);
    --focus-offset: 3px;


    /* ---------- Laser Glow ---------- */

    --laser-rgb: 50, 100, 200;
    --laser-core-rgb: 180, 225, 255;

    --laser-border-opacity: .90;

    --laser-glow-sm: rgba(var(--laser-core-rgb), .95);
    --laser-glow-md: rgba(var(--laser-rgb), .70);
    --laser-glow-lg: rgba(var(--laser-rgb), .45);
    --laser-glow-xl: rgba(var(--laser-rgb), .20);

    --laser-shadow-sm: 0 0 4px var(--laser-glow-sm);
    --laser-shadow-md: 0 0 12px var(--laser-glow-md);
    --laser-shadow-lg: 0 0 28px var(--laser-glow-lg);
    --laser-shadow-xl: 0 0 70px var(--laser-glow-xl);

    --laser-blur: .3px;
    --laser-drop-shadow: 0 0 8px rgba(var(--laser-rgb), .60);

}

/* ============================================================
   RESET
   Normaliza el comportamiento por defecto de los navegadores
   y establece una base consistente para todo el proyecto.
   ============================================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    background-color: var(--bg);
        
    background-image:
        radial-gradient(
            circle at top,
            rgba(var(--accent-rgb), .10),
            var(--transparent) 50%
        );

    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.6;
    min-height: 100vh;

    overflow-x:hidden;

    font-synthesis: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

:focus-visible {
    outline: var(--focus-outline);
    outline-offset: var(--focus-offset);
}

section {
    position: relative;
}

::selection {
    background: var(--accent);
    color: var(--white);
}

.container {
    max-width: var(--container-lg);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

/* ---------- Background decoration (subtle, kept off unless needed) ---------- */
.background {
    position: fixed;
    inset: 0;
    z-index: var(--z-background);
    pointer-events: none;
}

.blur {
    position: absolute;
    filter: blur(var(--blur-lg));
    opacity: var(--opacity-low);
    mix-blend-mode: screen;
}

.blur1 {
    width: 640px;
    height: 640px;
    top: -12%;
    left: -10%;
    background: radial-gradient(
        circle,
        rgba(var(--accent-rgb), .9),
        transparent 70%
    );
}

.blur2 {
    width: 560px;
    height: 560px;
    bottom: -15%;
    right: -8%;
    background: radial-gradient(
        circle,
        rgba(var(--laser-rgb), .8),
        transparent 70%
    );
}

.noise {
    position: absolute;
    inset: 0;
    opacity: .035;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ============================================================
   HEADER
   ============================================================ */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-header);
    padding-block: var(--space-md);
    background: rgb(5 5 5 / 0.72);
    backdrop-filter: blur(var(--blur-sm)) saturate(125%);
    -webkit-backdrop-filter: blur(var(--blur-sm)) saturate(140%);
    border-bottom: var(--border-line);
    transition: var(--transition-header);
}

.header-left {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

/* Estado al hacer scroll */

.header.scrolled {
    padding-block: var(--space-sm);
    background: rgb(5 5 5 / 0.82);
    box-shadow: var(--shadow-accent);
    backdrop-filter: blur(var(--blur-sm)) saturate(150%);
    -webkit-backdrop-filter: blur(var(--blur-sm)) saturate(150%);
}

.header .container {
    width: calc(100% - var(--space-lg));
    max-width: var(--container-header);

    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ============================================================
   Logo
   ============================================================ */

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    width: var(--logo-size);
    height: auto;
    transition: 
      transform var(--duration-normal) var(--ease-smooth),
      filter var(--duration-normal) var(--ease-smooth);
}

.logo a:hover img {
    transform: translateY(-2px) scale(1.02);
    filter: drop-shadow(0 0 12px rgb(var(--accent-rgb) / .35));
}

.logo-text {
    font-family: var(--font-heading);
    font-size: var(--fs-xl);
    font-weight:var(--fw-bold);
    letter-spacing: 3px;
    color: var(--white);
}

/* ============================================================
   Navigation
   ============================================================ */

.menu {
    display: flex;
    align-items: center;
}

.menu-list {
    display: flex;
    align-items: center;
    gap: var(--space-lg-xl);
}

.menu-list li a {
    position: relative;
    display: inline-flex;
    align-items: center;

    padding: var(--space-sm) var(--space-xs);

    font-family: var(--font-body);
    font-size: var(--fs-xs);
    letter-spacing: 0.14em;
    text-transform: uppercase;

    color: var(--white);
    opacity: 0.65;

    transition: var(--transition-menu);
}

.menu-list li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: var(--space-xs);
    width: 100%;
    height: 1px;

    background: var(--accent);

    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-underline);
}

.menu-list li a:hover,
.menu-list li a[aria-current="page"] {
    opacity: 1;
}

.menu-list li a:hover::after,
.menu-list li a[aria-current="page"]::after {
    transform: scaleX(1);
}

/* ============================================================
   Focus
   ============================================================ */

.menu-list a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}


/* ============================================================
   Mobile Menu Toggle
   Oculto en escritorio; se activa en el breakpoint responsive.
   ============================================================ */

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;

    width: 32px;
    height: 32px;

    background: transparent;
    border: none;
    cursor: pointer;

    z-index: var(--z-dropdown);
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;

    background: var(--white);
    border-radius: var(--radius-full);

    transition:
        transform var(--duration-normal) var(--ease-standard),
        opacity var(--duration-normal) var(--ease-standard);
}

body.menu-open .menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

body.menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
}

body.menu-open .menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   Accessibility
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

    .header,
    .header *,
    .header *::before,
    .header *::after {
        transition: none !important;
    }

}

/* ============================================================
   CONTINUOUS GLOBAL WEBGL ATMOSPHERE
   ============================================================ */

.global-fluid-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    background: transparent;
    opacity: 0.88;
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--header-height));
    overflow: hidden;
    background-color: transparent;
}

/* ---------- Centered Wrapper ---------- */
.hero-center-wrapper {
    position: relative;
    width: 100%;
    min-height: 560px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

/* ---------- Penrose Triangle (Protagonista Central) ---------- */
.hero-triangle-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-triangle {
    width: clamp(380px, 46vw, 680px);
    height: auto;
    opacity: 50%;
    pointer-events: none;
    filter:
        drop-shadow(0 0 35px rgba(50, 150, 255, 0.40))
        drop-shadow(0 0 80px rgba(50, 100, 210, 0.25));
    animation: heroTriangleFloating 10s ease-in-out infinite;
}

@keyframes heroTriangleFloating {
    0%, 100% {
        transform: translateY(0) scale(1);
        filter:
            drop-shadow(0 0 35px rgba(50, 150, 255, 0.40))
            drop-shadow(0 0 80px rgba(50, 100, 210, 0.25));
    }
    50% {
        transform: translateY(-12px) scale(1.025);
        filter:
            drop-shadow(0 0 55px rgba(50, 150, 255, 0.55))
            drop-shadow(0 0 100px rgba(50, 100, 210, 0.35));
    }
}

/* ============================================================
   HERO TEXT ENTRANCE ANIMATION
   Animación suave de entrada vertical para el contenido del Hero
   ============================================================ */
@keyframes heroTextEnter {
    0% {
        opacity: 0;
        transform: translateY(25px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-lg);
    width: 100%;
    max-width: 820px;
    margin-inline: auto;
}

@media (prefers-reduced-motion: no-preference) {
    .hero-content > * {
        opacity: 0;
        transform: translateY(25px);
        will-change: transform, opacity;
        animation: heroTextEnter 800ms cubic-bezier(.22, 1, .36, 1) forwards;
    }

    .hero-content > *:nth-child(1) {
        animation-delay: 100ms;
    }

    .hero-content > *:nth-child(2) {
        animation-delay: 250ms;
    }

    .hero-content > *:nth-child(3) {
        animation-delay: 400ms;
    }
}

.hero-content .subtitle {
    display: inline-block;
    white-space: nowrap;
    padding-bottom: var(--space-md);
    border-bottom: var(--border-line);
    font-family: var(--font-heading);
    font-size: var(--fs-xs);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    text-align: center;
    margin-inline: auto;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
}

.hero h1 {
    max-width: 800px;
    font-family: var(--font-heading);
    font-size: var(--fs-3xl);
    font-weight: var(--fw-bold);
    line-height: 0.98;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    text-align: center;
    margin-inline: auto;
    color: var(--text);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.85);
}

.hero-description {
    max-width: 52ch;
    font-size: var(--fs-lg);
    color: var(--accent);
    text-align: center;
    margin-inline: auto;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85);
}

.primary-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);

    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);

    font-family: var(--font-body);
    font-size: var(--fs-xs);
    letter-spacing: 0.08em;
    text-transform: uppercase;

    transition: var(--transition-button);

    background: var(--accent);
    color: var(--white);
}

.primary-btn:hover {
    background: var(--bg);
    color: var(--white);
    transform: translateY(-2px);
}

/* ============================================================
   SERVICES
   Dirección visual:
   Cinematográfica · Minimalista · Oscuridad · Luz azul
   ============================================================ */

.services {

    position: relative;
    overflow: hidden;

    background:
        radial-gradient(
            circle at 50% 20%,
            rgba(var(--laser-rgb), .12) 0%,
            transparent 50%
        );

    padding-block: clamp(6rem, 10vw, 10rem);

}

.services::before {

    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(var(--laser-rgb), .025),
            transparent
        );

    opacity: .5;

    pointer-events: none;

}

.services::after {

    content: "";

    position: absolute;
    inset: 0;

    background:
        radial-gradient(
            circle at 20% 35%,
            rgba(var(--laser-rgb), .05),
            transparent 35%
        ),
        radial-gradient(
            circle at 80% 70%,
            rgba(var(--laser-rgb), .04),
            transparent 40%
        );

    filter: blur(60px);

    opacity: .7;

    pointer-events: none;

}

/* ============================================================
   SERVICES TICKER BANNER
   Banda doble animada con movimiento infinito y haz láser central.
   ============================================================ */
.services-ticker-banner {
    position: relative;
    width: 100%;
    max-width: var(--container-xl);
    margin-inline: auto;
    margin-top: clamp(1.5rem, 3vw, 2.5rem);
    margin-bottom: clamp(3.5rem, 6vw, 5.5rem);
    overflow: hidden;
    background: transparent;
    user-select: none;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.ticker-track {
    width: 100%;
    overflow: hidden;
    display: flex;
    padding-block: clamp(0.35rem, 0.7vw, 0.55rem);
}

.ticker-content {
    display: flex;
    flex-shrink: 0;
    white-space: nowrap;
    will-change: transform;
}

.ticker-content span {
    font-family: var(--font-heading);
    font-size: clamp(0.72rem, 1.05vw, 0.92rem);
    font-weight: var(--fw-medium);
    letter-spacing: clamp(0.18em, 0.25vw, 0.28em);
    text-transform: uppercase;
    color: var(--accent);
    text-shadow: 0 0 10px rgba(50, 150, 255, 0.3);
    padding-right: 0.25em;
}

.ticker-track-ltr .ticker-content {
    animation: tickerMoveLTR 35s linear infinite;
}

.ticker-track-rtl .ticker-content {
    animation: tickerMoveRTL 35s linear infinite;
}

@keyframes tickerMoveLTR {
    0% {
        transform: translate3d(-50%, 0, 0);
    }
    100% {
        transform: translate3d(0, 0, 0);
    }
}

@keyframes tickerMoveRTL {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

/* Haz Láser de Energía Central */
.ticker-laser-line {
    position: relative;
    width: 100%;
    height: 1.5px;
    background: linear-gradient(
        90deg,
        rgba(50, 150, 255, 0.15) 0%,
        rgba(50, 150, 255, 0.95) 20%,
        rgba(255, 255, 255, 0.9) 50%,
        rgba(50, 150, 255, 0.95) 80%,
        rgba(50, 150, 255, 0.15) 100%
    );
    box-shadow: 
        0 0 6px rgba(50, 150, 255, 0.7),
        0 0 16px rgba(50, 150, 255, 0.35);
    animation: tickerLaserBreathing 5s ease-in-out infinite alternate;
}

@keyframes tickerLaserBreathing {
    0% {
        opacity: 0.55;
        filter: drop-shadow(0 0 2px rgba(50, 150, 255, 0.4));
    }
    50% {
        opacity: 1;
        filter: drop-shadow(0 0 7px rgba(50, 150, 255, 0.85));
    }
    100% {
        opacity: 0.65;
        filter: drop-shadow(0 0 4px rgba(50, 150, 255, 0.5));
    }
}

.services-stage {

    position: relative;

    display: flex;
    flex-direction: column;

    gap: clamp(7rem, 12vw, 10rem);

    width: 100%;
    max-width: 90rem;

    margin-inline: auto;

}

.service-scene {

    position: relative;

    isolation: isolate;
    overflow: clip;

    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 85vh;

    padding-block: clamp(2rem, 4vw, 3rem);

    animation: cameraDrift 26s ease-in-out infinite alternate;

}

.service-scene:nth-child(even) {

    flex-direction: row-reverse;
    justify-content: space-between;

}

.service-scene:nth-child(even) .service-content {

    text-align: right;

}

.service-content {

    position: relative;
    z-index: 3;

    width: 100%;
    max-width: 42rem;
    min-width: 0;

    padding: 16px;

    opacity: 0;
    transform: translate3d(0, 30px, 0) scale(.96);
    will-change: transform, opacity;
    transition:
        transform 800ms cubic-bezier(.22, 1, .36, 1),
        opacity 800ms cubic-bezier(.22, 1, .36, 1);

}

.service-content > * {

    opacity: 0;
    transform: translateY(24px);
    will-change: transform, opacity;
    transition:
        transform 800ms cubic-bezier(.22, 1, .36, 1),
        opacity 800ms cubic-bezier(.22, 1, .36, 1);

}

.service-scene.scene-active .service-content {

    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);

}

.service-scene.scene-active .service-content > * {

    opacity: 1;
    transform: translateY(0);

}

/* Entrada escalonada; al salir, la descripción se retira antes del título. */
.service-scene.scene-active .service-content h3 {
    transition-delay: 100ms;
}

.service-scene.scene-active .service-content p {
    transition-delay: 250ms;
}

.service-scene:not(.scene-active) .service-content h3 {
    transition-delay: 150ms;

}

/* ============================================================
   SERVICES LOGOS / 3D SYMBOLS
   Especificidad para los SVG dentro de .service-scene
   ============================================================ */

.service-scene .logo {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(300px, 38vw, 560px);
    height: clamp(280px, 36vh, 480px);
    max-width: 100%;
    flex-shrink: 0;
    pointer-events: none;
    animation: serviceLogoFloating 10s ease-in-out infinite;
    will-change: transform, filter;
}

.service-scene .logo img {
    --logo-scale: 1;

    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 50%;
    filter: drop-shadow(0 0 35px rgba(50, 150, 255, 0.30))
            drop-shadow(0 0 70px rgba(50, 100, 210, 0.18));
    transition: transform var(--duration-slow) var(--ease-smooth),
                filter var(--duration-slow) var(--ease-smooth);
    will-change: transform, filter;
    animation: serviceLogoSpin 32s linear infinite;
}

@keyframes serviceLogoSpin {
    from {
        transform: scale(var(--logo-scale)) rotate(0deg);
    }

    to {
        transform: scale(var(--logo-scale)) rotate(360deg);
    }
}

@keyframes serviceLogoFloating {
    0%, 100% {
        transform: translateY(0) scale(1);
        filter:
            drop-shadow(0 0 35px rgba(50, 150, 255, 0.40))
            drop-shadow(0 0 80px rgba(50, 100, 210, 0.25));
    }

    50% {
        transform: translateY(-12px) scale(1.025);
        filter:
            drop-shadow(0 0 55px rgba(50, 150, 255, 0.55))
            drop-shadow(0 0 100px rgba(50, 100, 210, 0.35));
    }
}

/* Escala óptica individual para equilibrar visualmente el tamaño
   de los 4 símbolos vectoriales dentro de su viewBox 1600x900 */

.service-scene[data-service="branding"] .logo img {
    --logo-scale: 2.13;
}

.service-scene[data-service="web"] .logo img {
    --logo-scale: 1.93;
    animation-direction: reverse;
}

.service-scene[data-service="graphic"] .logo img {
    --logo-scale: 2.19;
}

.service-scene[data-service="video"] .logo img {
    --logo-scale: 1.68;
    animation-direction: reverse;
}

.service-scene.scene-active .logo img {
    filter: drop-shadow(0 0 45px rgba(50, 150, 255, 0.45))
            drop-shadow(0 0 90px rgba(50, 100, 210, 0.28));
}


.service-content h3 {

    font-family: var(--font-heading);
    font-weight: var(--fw-bold);

    font-size: clamp(3rem, 6vw, 5.5rem);

    line-height: .9;

    letter-spacing: -.04em;

    text-transform: uppercase;

    color: var(--text);

    margin-bottom: 0.65rem;

    text-wrap: balance;

    text-shadow: 0 0 12px rgba(var(--laser-rgb), .08);

}

.service-content .laser-rig-horizontal {

    position: relative;
    inset: auto;

    width: 100%;
    height: 2px;

    margin-bottom: 1.5rem;

    pointer-events: none;
    overflow: visible;

}

.service-content .laser-horizontal {

    position: relative;
    inset: auto;

    width: 100%;
    height: 2px;

}

.service-scene.scene-active .service-content .laser-rig-horizontal {

    transition-delay: 175ms;

}

.service-content p {

    width: 100%;
    max-width: 62ch;

    font-family: var(--font-body);

    font-size: var(--fs-lg);

    line-height: 1.7;

    text-align: start;

    color: rgba(255,255,255,.72);

}

.service-scene::after {

    content: "";

    position: absolute;

    inset: 0;

    background:

        radial-gradient(
            circle at center,
            transparent 55%,
            rgba(3,3,3,.35) 100%
        );

    pointer-events: none;

    z-index: 2;

}

/* ============================================================
   SERVICES LIGHT
   ============================================================ */

.service-light {

    position: absolute;

    inset: 0;

    overflow: hidden;

    pointer-events: none;

    z-index: 1;

    will-change:transform;


}

.service-light::before {

    content: "";

    position: absolute;

    width: 42rem;
    aspect-ratio: 1;

    left: 55%;
    top: 50%;

    transform: translate(-50%, -50%);

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(var(--laser-rgb), .10) 0%,
            rgba(var(--laser-rgb), .04) 35%,
            transparent 75%
        );

    filter: blur(40px);

    opacity: .55;

}

.service-light::after {

    content: "";

    position: absolute;

    inset: -25%;

    background:

        radial-gradient(

            circle at 70% 45%,

            rgba(var(--laser-rgb), .04),

            transparent 60%

        );

    filter: blur(90px);

    opacity: .45;
    
    animation:

        cameraFog 32s ease-in-out infinite alternate;

}

/* ============================================================
   LASER RIGS
   ============================================================ */

.laser-rig{

    position:absolute;

    inset:0;

    overflow:visible;

    pointer-events:none;

    will-change:transform;

}

.laser-rig-horizontal{

    animation:

        rigHorizontalDrift 42s cubic-bezier(.42,.05,.58,.95) infinite alternate;

}

/* ============================================================
   LASER TIMING
   ============================================================ */

.service-scene:nth-child(1) .laser-rig-horizontal{

    animation-delay:-4s;

}

.service-scene:nth-child(2) .laser-rig-horizontal{

    animation-delay:-15s;

}

.service-scene:nth-child(3) .laser-rig-horizontal{

    animation-delay:-28s;

}

.service-scene:nth-child(4) .laser-rig-horizontal{

    animation-delay:-37s;

}


/* ============================================================
   SERVICES LASERS
   ============================================================ */

.laser{

    position:absolute;
    display:block;
    height:2px;

    --laser-speed:7.2s;
    --laser-intensity:1;
    --laser-opacity:.85;

    border-radius:999px;

    overflow:visible;

    opacity:var(--laser-opacity);

       animation:

        laserBreathing var(--laser-speed)
        ease-in-out infinite;

}

.laser-horizontal{

    --random-speed:1.6s;
    position:absolute;
    height:2px;

      animation:
        laserBreathing var(--laser-speed) ease-in-out infinite,
        laserPulse 5s ease-in-out infinite,
        laserHorizontalDrift calc(22s + var(--random-speed)) ease-in-out infinite;
    
        animation-delay:
        0s,
        0s;

}


/* ============================================================
   CAPA 1
   NIEBLA LUMINOSA
   ============================================================ */

.laser::before{

    content:"";

    position:absolute;

    inset:-18px 0;

    background:

        linear-gradient(

            90deg,

            transparent,

            rgba(var(--laser-rgb),.18),

            transparent

        );

    filter:blur(16px);

    opacity:.22;

    animation:

        laserHeat 4s ease-in-out infinite;

}

@keyframes laserHeat{

    0%,100%{

        transform:scaleY(1);

    }

    50%{

        transform:scaleY(1.45);

    }

}


/* ============================================================
   CAPA 2
   HALO
   ============================================================ */

.laser::after{

    content:"";

    position:absolute;

    inset:-6px 0;

    background:

        linear-gradient(

            90deg,

            transparent,

            rgba(var(--laser-rgb),.55),

            transparent

        );

    filter:blur(5px);

    opacity:.45;

}

/* ============================================================
   CAPA 3
   CUERPO
   ============================================================ */

/* ============================================================
   ABOUT · VOLUMETRIC PHYSICAL LASER PRISM
   ============================================================ */

.laser-rig-about {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.laser-about {
    width: 100%;
    height: 2px;
    top: 50%;
    left: 0;
    transform: translateY(-50%) rotate(-15deg);
}

.laser-haze {
    position: absolute;
    inset: -35px 0;
    background: radial-gradient(ellipse at center, rgba(50, 150, 255, 0.25) 0%, rgba(50, 100, 210, 0.08) 50%, transparent 80%);
    filter: blur(25px);
    opacity: 0.7;
    animation: laserPhysicsPulse 8s ease-in-out infinite alternate;
}

@keyframes laserPhysicsPulse {
    0%, 100% {
        opacity: 0.55;
        transform: scaleY(0.9);
    }
    50% {
        opacity: 0.85;
        transform: scaleY(1.25);
    }
}

.laser{

    background:

        linear-gradient(

            90deg,

            transparent 0%,

            rgba(var(--laser-rgb),0) 8%,

            rgba(var(--laser-rgb),.65) 25%,

            rgba(var(--laser-rgb),1) 50%,

            rgba(var(--laser-rgb),.65) 75%,

            rgba(var(--laser-rgb),0) 100%

        );

    box-shadow:

        0 0 4px rgba(var(--laser-rgb),.55),

        0 0 12px rgba(var(--laser-rgb),.25);

}

/* ==========================================================
   LASER CORE
   ========================================================== */

.laser-core{

    position:absolute;

    inset:0;

    border-radius:inherit;

    background:

        linear-gradient(

            90deg,

            transparent,

            rgba(var(--laser-core-rgb),1),

            transparent

        );

    filter:blur(.35px);

    pointer-events:none;

}

.laser-energy{

    position:absolute;

    left:-80px;

    top:50%;

    width:72px;

    height:10px;

    transform:translateY(-50%);

    border-radius:999px;

    pointer-events:none;

    background:
        radial-gradient(
            ellipse,
            rgba(var(--laser-core-rgb),1) 0%,
            rgba(var(--laser-rgb),.55) 45%,
            transparent 72%
        );

    filter:blur(2px);

    mix-blend-mode:screen;

    animation:
        laserEnergy linear infinite,
        laserEnergyGlow 6s ease-in-out infinite;

    animation-duration:
        calc(4.5s + var(--random-speed)),
        6s;

}

/* ============================================================
   IMPERFECCIÓN ÓPTICA
   ============================================================ */

.laser{

    mask-image:

        linear-gradient(

            90deg,

            transparent 0%,

            #000 6%,

            #000 94%,

            transparent 100%

        );

}

/* ============================================================
   SERVICES ACTIVE SCENE
   ============================================================ */


.scene-active .service-light::before{

    animation:

        lightBreath 8s ease-in-out infinite;

}

.scene-active .camera-light{

    animation-duration:14s;

}

.scene-active .camera-light-secondary{

    animation-duration:20s;

}

@keyframes rigHorizontalDrift{

    0%{

        transform:
            translate3d(8%,0,0);

    }

    50%{

        transform:
            translate3d(-10%,2%,0);

    }

    100%{

        transform:
            translate3d(6%,-1%,0);

    }

}

@keyframes laserPulse{

    0%{

        opacity:.45;

        filter:brightness(.9);

    }

    50%{

        opacity:1;

        filter:brightness(1.4);

    }

    100%{

        opacity:.45;

        filter:brightness(.9);

    }

}

@keyframes lightBreath{

    0%{

        transform:translate(-50%,-50%) scale(.94);

        opacity:.35;

    }

    50%{

        transform:translate(-50%,-50%) scale(1.08);

        opacity:.65;

    }

    100%{

        transform:translate(-50%,-50%) scale(.94);

        opacity:.35;

    }

}

@keyframes cameraSweep{

    0%{

        transform:

            translate(-18%,-50%)

            rotate(-18deg)

            scale(1);

    }

    50%{

        transform:

            translate(18%,-50%)

            rotate(-14deg)

            scale(1.12);

    }

    100%{

        transform:

            translate(-18%,-50%)

            rotate(-18deg)

            scale(1);

    }

}

/* ============================================================
   LASER ANIMATIONS
   ============================================================ */

   @keyframes laserBreathing{

    0%{

        opacity:.78;

        filter:brightness(.9);

    }

    50%{

        opacity:1;

        filter:brightness(1.18);

    }

    100%{

        opacity:.78;

        filter:brightness(.9);

    }

}

@keyframes laserEnergy{

    from{

        left:-90px;

    }

    to{

        left:calc(100% + 90px);

    }

}

@keyframes laserEnergyGlow {

    0%{
        opacity:.38;
        filter:blur(2px);
    }

    30%{
        opacity:.55;
        filter:blur(3px);
    }

    70%{
        opacity:.46;
        filter:blur(2.5px);
    }

    100%{
        opacity:.38;
        filter:blur(2px);
    }

}

/* ============================================================
   CINEMATIC CAMERA
   ============================================================ */

@keyframes cameraDrift{

    0%{

        transform:
            translate3d(-10px,-6px,0)
            scale(1);

    }

    35%{

        transform:
            translate3d(8px,4px,0)
            scale(1.015);

    }

    70%{

        transform:
            translate3d(-4px,10px,0)
            scale(1.025);

    }

    100%{

        transform:
            translate3d(12px,-5px,0)
            scale(1.035);

    }

}

@keyframes cameraLight{

    0%{

        transform:
            translate(-50%,-50%)
            scale(.95);

    }

    50%{

        transform:
            translate(calc(-50% + 40px),
                      calc(-50% - 20px))
            scale(1.08);

    }

    100%{

        transform:
            translate(calc(-50% - 25px),
                      calc(-50% + 25px))
            scale(.98);

    }

}

@keyframes cameraFog{

    0%{

        transform:
            translateX(-2%)
            translateY(-1%)
            scale(1);

    }

    100%{

        transform:
            translateX(3%)
            translateY(2%)
            scale(1.08);

    }

}


/* ============================================================
   BRANDING
   Geometría limpia y estable
   ============================================================ */

.service-scene[data-service="branding"] .laser-horizontal {

    width: 100%;

    --laser-speed:9s;
    --laser-opacity:.72;

}

.service-scene[data-service="branding"] .service-light::before {

    left: 58%;

    opacity: .45;

}

/* ============================================================
   WEB
   Arquitectura y estructura
   ============================================================ */

.service-scene[data-service="web"] .laser-horizontal {

    width: 100%;

    --laser-speed:9s;
    --laser-opacity:.72;

}

.service-scene[data-service="web"] .service-light::before {

    right: 58%;

    opacity: .45;

}

/* ============================================================
   GRAPHIC DESIGN
   Más tensión visual
   ============================================================ */

.service-scene[data-service="graphic"] .laser-horizontal {

    width: 100%;

    --laser-speed:9s;
    --laser-opacity:.72;

}

.service-scene[data-service="graphic"] .service-light::before {

    left: 46%;

    opacity: .65;

}

/* ============================================================
   VIDEO
   Dirección y movimiento
   ============================================================ */

.service-scene[data-service="video"] .laser-horizontal {

    width: 100%;

    --laser-speed:9s;
    --laser-opacity:.72;

}

.service-scene[data-service="video"] .service-light::before {

    right: 25%;

    opacity: .75;

}

/* ============================================================
   SERVICES · Horizontal Laser Drift
   ============================================================ */

@keyframes laserHorizontalDrift {

    0% {
        transform: translateX(2%);
    }

    50% {
        transform: translateX(-2%);
    }

    100% {
        transform: translateX(2%);
    }

}


/* ============================================================
   ABOUT
   ============================================================ */

.about {
    position: relative;
    overflow: hidden;

    background:
        radial-gradient(
            circle at 75% 40%,
            rgba(var(--laser-rgb), .08) 0%,
            transparent 45%
        );

    color: var(--white);
    padding-block: clamp(5rem, 10vw, 8rem);
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(3rem, 7vw, 8rem);
    align-items: center;
}

.section-tag {
    display: inline-block;

    font-family: var(--font-heading);
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    font-weight: var(--fw-semibold);

    letter-spacing: .22em;
    text-transform: uppercase;

    color: var(--accent);

    margin-bottom: var(--space-md);
}

.about-content h2 {
    max-width: 16ch;

    font-family: var(--font-heading);
    font-weight: var(--fw-bold);
    font-size: clamp(2.2rem, 4vw, 4rem);
    line-height: 1;

    text-transform: uppercase;
    letter-spacing: -.02em;

    margin-bottom: var(--space-lg);
}

.about-content p {
    max-width: 42ch;

    color: var(--text-soft);
    font-size: var(--fs-lg);
    line-height: 1.7;
}

/* ============================================================
   ABOUT TEXT STAGGERED ENTRANCE ANIMATION
   Animación de entrada de izquierda a derecha con escalonado (stagger)
   para el contenido textual de la sección 'Acerca de'.
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
    .about-content > * {
        opacity: 0;
        transform: translateX(-35px);
    }

    .about-content.is-visible > * {
        will-change: transform, opacity;
        animation: heroTextEnter 800ms cubic-bezier(.22, 1, .36, 1) forwards;
    }

    .about-content.is-visible > *:nth-child(1) {
        animation-delay: 100ms;
    }

    .about-content.is-visible > *:nth-child(2) {
        animation-delay: 250ms;
    }

    .about-content.is-visible > *:nth-child(3) {
        animation-delay: 400ms;
    }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

    .prism-core,
    .laser-haze,
    .hero-triangle,
    .service-scene .logo {
        animation: none;
    }
}

.service-scene:nth-child(even) .service-content p {
    margin-left: auto;
    text-align: end;
}

/* ============================================================
   CONTACT
   ============================================================ */

.contact {
    position: relative;
    overflow: hidden;

    
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    color: var(--white);
    text-align: center;
    padding-block: clamp(5rem, 12vw, 9rem);

    border-top: var(--border-primary);
}

.contact .container {
    width: min(100% - 3rem, 1200px);
    margin-inline: auto;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    text-align: left;
    position: relative;
    z-index: 1;
}

.contact h2 {
    font-family: var(--font-body);
    font-weight: var(--fw-bold);
    font-size: clamp(2.25rem, 5vw, 4rem);
    text-transform: uppercase;
    letter-spacing: -0.01em;
    max-width: 18ch;
    margin: 0;
}

.contact p {
    margin-top: var(--space-lg);
    max-width: 48ch;
    font-size: var(--fs-lg);
    color: var(--white);
}

.contact .primary-btn {
    display: inline-flex;
    margin-top: var(--space-md);
    background: var(--bg);
    color: var(--white);
}

.contact .primary-btn:hover {
    background: var(--accent);
    color: var(--white);
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.contact .contact-actions .primary-btn {
    margin-top: 0;
}

.project-trigger,
.project-submit,
.project-success__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(var(--laser-rgb), .72);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--white);
    font-family: var(--font-body);
    font-size: var(--fs-xs);
    font-weight: var(--fw-medium);
    letter-spacing: .08em;
    line-height: 1;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition-button);
}

.project-trigger {
    padding: .65rem .85rem;
}

.project-trigger:hover,
.project-submit:hover,
.project-success__close:hover {
    border-color: var(--accent);
    background: rgba(var(--laser-rgb), .13);
    box-shadow: 0 0 12px rgba(var(--laser-rgb), .22);
    transform: translateY(-2px);
}

/* Panel lateral: mantiene la sección Contacto visible bajo una superficie de vidrio. */
.project-panel {
    position: fixed;
    z-index: var(--z-modal);
    top: 0;
    right: 0;
    width: clamp(22rem, 34vw, 34rem);
    height: 100dvh;
    padding: clamp(.65rem, 1.3vw, 1.25rem);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate3d(105%, 0, 0);
    transition:
        transform 600ms cubic-bezier(.16, 1, .3, 1),
        opacity 350ms ease,
        visibility 0s linear 600ms;
}

.project-panel.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate3d(0, 0, 0);
    transition-delay: 0s;
}

.project-panel__surface {
    position: relative;
    height: 100%;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: clamp(2rem, 4vw, 3.25rem) clamp(1.1rem, 2.5vw, 2rem) 2rem;
    border: 1px solid rgba(var(--laser-rgb), .26);
    border-radius: var(--radius-md);
    background:
        linear-gradient(135deg, rgba(3, 3, 3, .30), rgba(5, 5, 5, .12)),
        rgba(5, 5, 5, .08);
    box-shadow: -18px 0 48px rgba(0, 0, 0, .20), 0 0 26px rgba(var(--laser-rgb), .08);
    backdrop-filter: blur(16px) saturate(115%);
    -webkit-backdrop-filter: blur(16px) saturate(115%);
}

.project-panel__surface::before {
    content: "";
    position: absolute;
    top: 0;
    right: 11%;
    left: 11%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(var(--laser-rgb), .55), transparent);
    box-shadow: var(--laser-shadow-sm), var(--laser-shadow-md);
    animation: projectPanelLaser 4s ease-in-out infinite;
}

@keyframes projectPanelLaser {
    0%, 100% { opacity: .22; }
    50% { opacity: .45; }
}

.project-panel__close {
    position: absolute;
    top: .7rem;
    right: .7rem;
    display: grid;
    width: 2.2rem;
    height: 2.2rem;
    place-items: center;
    border: 1px solid transparent;
    border-radius: 50%;
    background: transparent;
    color: var(--white);
    font-size: 1.55rem;
    line-height: 1;
    cursor: pointer;
    transition: var(--transition-button);
}

.project-panel__close:hover {
    border-color: rgba(var(--laser-rgb), .65);
    background: rgba(var(--laser-rgb), .1);
    box-shadow: 0 0 12px rgba(var(--laser-rgb), .18);
}

.project-panel__intro {
    padding-right: 2rem;
    margin-bottom: var(--space-xl-sm);
}

.project-panel__eyebrow {
    margin-bottom: var(--space-sm);
    color: var(--accent);
    font-family: var(--font-heading);
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    letter-spacing: .2em;
    text-transform: uppercase;
}

.project-panel h3 {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 2.7vw, 2.6rem);
    font-weight: var(--fw-bold);
    line-height: .96;
    text-transform: uppercase;
    text-shadow: 0 2px 14px rgba(0, 0, 0, .72);
}

.project-panel__intro > p:last-child,
.project-success p:not(.project-panel__eyebrow) {
    margin-top: var(--space-md);
    color: var(--text-soft);
    font-size: var(--fs-sm);
}

.project-form {
    display: grid;
    gap: var(--space-lg);
}

.project-form__group {
    min-width: 0;
    border: 0;
}

.project-form__group > label,
.project-form legend {
    display: block;
    margin-bottom: var(--space-sm);
    color: var(--white);
    font-family: var(--font-heading);
    font-size: var(--fs-md);
    font-weight: var(--fw-semibold);
    letter-spacing: .04em;
}

.project-form legend span,
.project-fields label span {
    color: var(--text-soft);
    font-family: var(--font-body);
    font-size: var(--fs-xs);
    font-weight: var(--fw-regular);
}

.project-options {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

.project-options label {
    position: relative;
}

.project-options input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.project-options span {
    display: block;
    padding: .52rem .68rem;
    border: 1px solid rgba(var(--laser-rgb), .34);
    border-radius: var(--radius-sm);
    color: rgba(255, 255, 255, .9);
    font-size: var(--fs-xs);
    line-height: 1.2;
    cursor: pointer;
    transition: var(--transition-button);
}

.project-options label:hover span,
.project-options input:focus-visible + span {
    border-color: rgba(var(--laser-rgb), .9);
    background: rgba(var(--laser-rgb), .08);
    box-shadow: 0 0 10px rgba(var(--laser-rgb), .16);
}

.project-options input:checked + span {
    border-color: var(--accent);
    background: rgba(var(--laser-rgb), .2);
    box-shadow: inset 0 0 14px rgba(var(--laser-rgb), .12), 0 0 12px rgba(var(--laser-rgb), .16);
    color: var(--white);
}

.project-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-sm);
}

.project-fields label {
    color: var(--text-soft);
    font-size: var(--fs-xs);
}

.project-fields input,
.project-form textarea {
    width: 100%;
    margin-top: var(--space-2xs);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: var(--radius-sm);
    outline: none;
    background: rgba(0, 0, 0, .14);
    color: var(--white);
    font: inherit;
    font-size: var(--fs-sm);
    transition: border-color var(--duration-normal) var(--ease-smooth), box-shadow var(--duration-normal) var(--ease-smooth), background var(--duration-normal) var(--ease-smooth);
}

.project-fields input {
    height: 2.55rem;
    padding-inline: .7rem;
}

.project-form textarea {
    min-height: 7rem;
    padding: .7rem;
    resize: vertical;
}

.project-fields input:focus,
.project-form textarea:focus {
    border-color: var(--accent);
    background: rgba(var(--laser-rgb), .06);
    box-shadow: 0 0 0 3px rgba(var(--laser-rgb), .12), 0 0 13px rgba(var(--laser-rgb), .12);
}

.project-fields input[aria-invalid="true"],
.project-form textarea[aria-invalid="true"] {
    border-color: #ff8d8d;
}

.project-form__notice {
    min-height: 1.3em;
    color: #ffb0b0;
    font-size: var(--fs-xs);
}

.project-submit,
.project-success__close {
    justify-self: start;
    padding: .8rem 1rem;
}

.project-success {
    padding-top: var(--space-xl);
}

.project-success__close {
    margin-top: var(--space-lg);
}

body.project-panel-open {
    overflow: hidden;
}


/* ============================================================
   CONTACT TOP LIGHT
   ============================================================ */

.contact::before {
    content: "";
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 1px;

    background: var(--accent);

    box-shadow:
        0 0 6px rgba(var(--laser-core-rgb), .95),
        0 0 18px rgba(var(--laser-rgb), .70),
        0 0 40px rgba(var(--laser-rgb), .40);

    pointer-events: none;
    z-index: 2;
}

/* ============================================================
   CONTACT REVEAL
   ============================================================ */

.contact h2,
.contact p,
.contact .primary-btn,
.contact .project-trigger {
    opacity: 0;
}

@keyframes contactTextReveal {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.contact.is-visible h2 {
    animation: contactTextReveal 0.8s ease-out 0s forwards;
}

.contact.is-visible p {
    animation: contactTextReveal 0.8s ease-out 0.2s forwards;
}

.contact.is-visible .primary-btn {
    animation: contactTextReveal 0.8s ease-out 0.4s forwards;
}

.contact.is-visible .project-trigger {
    animation: contactTextReveal 0.8s ease-out 0.5s forwards;
}

@media (prefers-reduced-motion: reduce) {

    .contact h2,
    .contact p,
    .contact .primary-btn,
    .contact .project-trigger {
        opacity: 1;
        animation: none;
        transform: none;
    }

}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {

    position: relative;

    background: var(--bg);
    color: var(--white);

    border-top: none;
}


/* ============================================================
   FOOTER TOP LIGHT
   ============================================================ */

.footer::before {

    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 1px;

    background: var(--accent);

    box-shadow:
        0 0 6px
        rgba(var(--laser-core-rgb), .95),

        0 0 18px
        rgba(var(--laser-rgb), .70),

        0 0 40px
        rgba(var(--laser-rgb), .40);

    pointer-events: none;

    z-index: 2;
}

.footer > .container {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: var(--space-lg);
    padding-block: var(--space-xl);
}

.footer-brand .logo img {
    height: 50px;
    filter: brightness(1) invert(0);
    margin-bottom: var(--space-md-lg);
}

.footer-description {
    color: var(--primary-soft);
    max-width: 32ch;
    font-size: var(--fs-sm);
}

.footer h3 {
    font-family: var(--font-body);
    font-size: var(--fs-xs);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--primary-soft);
    margin-bottom: var(--space-md-lg);
}

.footer ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.footer ul a {
    font-size: var(--fs-sm);
    color: var(--white);
    opacity: 0.85;
    transition: color var(--duration-normal) var(--ease-standard),
                opacity var(--duration-normal) var(--ease-standard);
}

.footer ul a:hover {
    opacity: 1;
    color: var(--accent);
}

/* ============================================================
   SOCIAL LINKS
   ============================================================ */

.footer .instagram-link:hover {
    color: var(--instagram);
}

.footer .whatsapp-link:hover {
    color: var(--whatsapp);
}

.footer .facebook-link:hover {
    color: var(--facebook);
}

.footer .behance-link:hover {
    color: var(--behance);
}

.footer-bottom {
    border-top: var(--border-primary);
}

.footer-bottom .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: var(--space-md);
    font-family: var(--font-body);
    font-size: var(--fs-xs);
    letter-spacing: 0.04em;
    color: var(--primary-soft);
}

.footer-bottom nav ul {
    flex-direction: row;
    gap: var(--space-md);
}

.footer-bottom nav ul a {
    color: var(--primary-soft);
    opacity: 1;
}

.footer-bottom nav ul a:hover {
    color: var(--white);
}

/* ============================================================
   SCROLL REVEAL
   Asume que script.js añade la clase 'is-visible' (vía
   IntersectionObserver) a los elementos .reveal cuando entran
   en el viewport. Ajusta el nombre de la clase si tu JS usa otro.
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-reveal);
}

.reveal.is-visible,
.reveal.active,
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
    .service-scene,
    .service-scene:nth-child(even) {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: clamp(2rem, 4vw, 3rem);
        min-height: auto;
        padding-block: clamp(3.5rem, 6vw, 5.5rem);
    }

    .service-scene:nth-child(even) .service-content {
        text-align: center;
    }

    .service-content {
        text-align: center;
        max-width: 100%;
    }

    .service-content p {
        margin-inline: auto;
    }

    .service-scene .logo {
        width: clamp(240px, 60vw, 420px);
        height: clamp(220px, 50vh, 360px);
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-decoration {
        display: none;
    }

    .menu-list {
        gap: var(--space-lg);
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl)
    }

    .about-content {
        text-align: center;
    }

    .about-content h2,
    .about-content p {
        margin-inline: auto;
    }

    .about-visual {
        min-height: 420px;
    }

    .footer > .container {
        grid-template-columns: 1fr 1fr;
    }

    .project-panel {
        width: min(30rem, 56vw);
    }

}

@media (max-width: 640px) {

    .service-scene .logo {
        width: clamp(200px, 75vw, 320px);
        height: clamp(180px, 40vh, 260px);
    }

    .about-visual {
        min-height: 340px;
    }

    
    .about-glow {
        width: 300px;
        height: 300px;
    }


    .menu-toggle {
        display: flex;
    }

    .menu-list {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;

        flex-direction: column;
        align-items: stretch;
        gap: 0;

        padding: var(--space-md) var(--gutter) var(--space-lg);

        background: rgb(5 5 5 / .96);
        backdrop-filter: blur(var(--blur-sm));
        -webkit-backdrop-filter: blur(var(--blur-sm));
        border-bottom: var(--border-line);

        opacity: 0;
        visibility: hidden;
        transform: translateY(-12px);
        pointer-events: none;

        transition:
            opacity var(--duration-normal) var(--ease-standard),
            transform var(--duration-normal) var(--ease-standard),
            visibility var(--duration-normal) var(--ease-standard);
    }

    .menu-list.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    .menu-list li {
        width: 100%;
    }

    .menu-list li a {
        width: 100%;
        padding-block: var(--space-md);
    }

    .footer > .container {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .footer-bottom .container {
        flex-direction: column;
        gap: var(--space-sm);
        text-align: center;
    }

    .project-panel {
        width: 100%;
        padding: .35rem;
    }

    .project-panel__surface {
        padding: 2.8rem 1rem 1.25rem;
        border-radius: var(--radius-sm);
    }

    .project-fields {
        grid-template-columns: 1fr;
    }

    .project-options span {
        padding: .6rem .65rem;
    }
}

/* ============================================================
   SERVICES SCROLL STATE
   La transición la controla .scene-active para que el SVG conserve
   su presencia mientras el contenido entra y sale de forma reversible.
   ============================================================ */
/* Anular interferencias del sistema .reveal genérico en las tarjetas de servicio */
.service-scene.reveal,
.service-scene.reveal.is-visible,
.service-scene.reveal.active,
.service-scene.reveal.visible {
    opacity: 1;
    transform: none;
    transition: none !important;
}

/* ============================================================
   CINEMATIC SINGLE TRACKING SHOT (PLANO SECUENCIA CONTINUO)
   ============================================================ */
.hero-content,
.hero-decoration,
.about-visual,
.contact {
    will-change: transform, opacity, filter;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                filter 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-scene {
    will-change: transform, opacity, filter;
    transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
                filter 0.65s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

@media (prefers-reduced-motion: no-preference) {
    .service-scene:not(.scene-active) {
        opacity: 1;
        transform: none;
        filter: none;
    }

    .service-scene.scene-active {
        opacity: 1;
        transform: none;
        filter: none;
    }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0ms !important;
        scroll-behavior: auto !important;
    }
}
