/* =====================================================
   DIGITAL BULTZADA — ESTILOS PRINCIPALES
   Paleta: pino oscuro + papel frío + acento oro
   Tipografía: Fraunces (titulares) + Work Sans (texto)
   ===================================================== */

:root {

    /* Color */
    --paper:        #050B16;
    --paper-soft:   #0A1526;
    --ink:          #F1F8FF;
    --ink-soft:     #9BAFC4;
    --ink-faint:    #667A91;
    --line:         rgba(126, 184, 255, 0.13);
    --line-strong:  rgba(126, 184, 255, 0.28);

    --pine:         #08152A;
    --pine-2:       #0D2850;

    --accent:       #38E8FF;
    --accent-2:     #2B8CFF;
    --accent-soft:  rgba(43, 140, 255, 0.14);

    --white:        #0B1729;

    /* Type */
    --font-display: "Space Grotesk", "Segoe UI", Arial, sans-serif;
    --font-body:    "Inter", "Helvetica Neue", Arial, sans-serif;

    /* Motion */
    --ease-out:     cubic-bezier(0.23, 1, 0.32, 1);
    --ease-in-out:  cubic-bezier(0.77, 0, 0.175, 1);
    --ease-drawer:  cubic-bezier(0.32, 0.72, 0, 1);

    /* Layout */
    --gutter:       6vw;
    --max:          1180px;
    --radius-lg:    22px;
    --radius-md:    14px;
    --radius-sm:    8px;
}

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

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    * {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
    }}

body {
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
}

img, svg {
    display: block;
    max-width: 100%;
}

::selection {
    background: var(--accent);
    color: var(--pine);
}

:focus-visible {
    outline: 2px solid var(--accent-2);
    outline-offset: 3px;
    border-radius: 4px;
}

h1, h2, h3 {
    font-family: var(--font-display);
    color: var(--ink);
    font-weight: 500;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 16px;

    color: var(--accent-2);

    font-size: 13px;
    font-weight: 600;
}


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

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 84px;

    padding: 0 var(--gutter);

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: rgba(239, 242, 239, 0.86);
    backdrop-filter: blur(14px);

    border-bottom: 1px solid var(--line);

    z-index: 200;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 210;
}

.logo-mark {
    position: relative;

    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    border-radius: 10px;

    background: var(--pine);

    box-shadow: inset 0 0 0 1px rgba(226, 155, 31, 0.25);

    transition:
        transform 0.2s var(--ease-out),
        box-shadow 0.2s ease;

}

.logo-mark::before {
    content: "";

    position: absolute;
    top: 0;
    left: -150%;

    width: 60%;
    height: 100%;

    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.6),
        transparent
    );

    transform: skewX(-20deg);

    z-index: 2;
    pointer-events: none;

    display: none;
}

@keyframes logo-pop {
    0% {
        opacity: 0;
        transform: scale(0.4) rotate(-30deg);
    }
    60% {
        opacity: 1;
        transform: scale(1.1) rotate(5deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes logo-shine {
    0% {
        left: -150%;
    }
    20% {
        left: 150%;
    }
    100% {
        left: 150%;
    }
}

@media (hover: hover) and (pointer: fine) {
.logo:hover .logo-mark {
    transform: scale(1.04);

    box-shadow:
        inset 0 0 0 1px rgba(226, 155, 31, 0.45),
        0 8px 18px rgba(226, 155, 31, 0.35);
}
}

.mark-icon-img {
    position: relative;
    z-index: 1;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.4s ease;
}

@media (hover: hover) and (pointer: fine) {
.logo:hover .mark-icon-img {
    transform: scale(1.08);
}
}

.logo-name {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1.1;
    color: var(--ink);

    transition: color 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
.logo:hover .logo-name {
    color: var(--accent-2);
}
}

.nav {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav a {
    position: relative;

    color: var(--ink-soft);
    font-size: 14px;
    font-weight: 500;

    transition: color 0.2s ease;
}

.nav a::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: -5px;

    width: 100%;
    height: 1px;

    background: var(--accent-2);

    transform: scaleX(0);
    transform-origin: left;

    transition: transform 0.25s ease;
}

@media (hover: hover) and (pointer: fine) {
.nav a:hover {
    color: var(--ink);
}
}

@media (hover: hover) and (pointer: fine) {
.nav a:hover::after {
    transform: scaleX(1);
}
}

.lang-btn {
    border: 1px solid var(--line-strong);
    background: transparent;

    color: var(--ink);

    padding: 8px 14px;
    border-radius: 999px;

    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;

    cursor: pointer;

    transition:
        border-color 0.2s ease,
        background 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
.lang-btn:hover {
    border-color: var(--accent-2);
    background: var(--accent-soft);
}
}

.menu-btn {
    display: none;

    width: 40px;
    height: 40px;

    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;

    border: none;
    background: transparent;

    cursor: pointer;

    z-index: 210;
}

.menu-btn span {
    width: 22px;
    height: 2px;

    background: var(--ink);

    transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-btn.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-btn.open span:nth-child(2) {
    opacity: 0;
}

.menu-btn.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


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

.hero {
    min-height: 100svh;
    position: relative;

    display: flex;
    align-items: center;

    padding: 150px var(--gutter) 100px;

    overflow: hidden;
}

.hero-glow {
    position: absolute;

    width: 620px;
    height: 620px;

    right: -220px;
    top: 45%;

    transform: translateY(-50%);

    background: radial-gradient(
        circle,
        var(--accent-soft),
        transparent 70%
    );

    filter: blur(60px);

    border-radius: 50%;

    animation: glow-pulse 9s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% {
        opacity: 0.75;
        transform: translateY(-50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translateY(-50%) scale(1.18);
    }
}

.hero-content {
    position: relative;
    z-index: 2;

    width: 56%;
    max-width: 720px;
}

.hero-content > * {
    opacity: 0;
    transform: translateY(20px);
    animation: rise 0.75s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.hero-content > h1 {
    animation-delay: 0.05s;
}

.hero-content > .hero-text {
    animation-delay: 0.28s;
}

.hero-content > .hero-buttons {
    animation-delay: 0.48s;
}

@keyframes rise {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-size: clamp(44px, 6vw, 84px);

    line-height: 1.04;
    letter-spacing: -1.5px;

    font-weight: 400;
}

.hero h1 strong {
    color: var(--pine);
    font-weight: 600;
    font-style: italic;
}

.hero-text {
    max-width: 480px;

    margin-top: 28px;

    color: var(--ink-soft);

    font-size: 18px;
    line-height: 1.65;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;

    margin-top: 38px;
}

.button {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    justify-content: center;

    min-height: 50px;

    padding: 0 24px;

    border-radius: 999px;

    font-size: 14px;
    font-weight: 600;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}

.button svg {
    width: 15px;
    height: 15px;
    transition: transform 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
.button:hover {
    transform: translateY(-2px);
}
}

@media (hover: hover) and (pointer: fine) {
.button:hover svg {
    transform: translateX(3px);
}
}

.button-primary {
    position: relative;
    overflow: hidden;

    background: var(--pine);
    color: var(--paper);
    border: 1px solid var(--pine);
}

.button-primary span,
.button-primary svg {
    position: relative;
    z-index: 1;
}

.button-primary::before {
    content: "";

    position: absolute;
    top: 0;
    left: -75%;

    width: 50%;
    height: 100%;

    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );

    transform: skewX(-20deg);

    transition: left 0.6s ease;
}

@media (hover: hover) and (pointer: fine) {
.button-primary:hover {
    background: var(--pine-2);
}
}

@media (hover: hover) and (pointer: fine) {
.button-primary:hover::before {
    left: 125%;
}
}

.button-secondary {
    border: 1px solid var(--line-strong);
    color: var(--ink);
    background: transparent;
}

@media (hover: hover) and (pointer: fine) {
.button-secondary:hover {
    border-color: var(--ink);
    background: rgba(18, 38, 31, 0.04);
}
}

.float-dot {
    position: absolute;

    border-radius: 50%;

    background: var(--accent);

    opacity: 0.8;

    animation: float 5s ease-in-out infinite;
}

.dot-a {
    width: 12px;
    height: 12px;

    top: 12%;
    left: 6%;

    animation-delay: 0s;
}

.dot-b {
    width: 8px;
    height: 8px;

    bottom: 18%;
    right: 2%;

    background: var(--pine-2);

    animation-delay: 1.6s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-14px) scale(1.2);
    }
}

.float-card {
    position: absolute;

    left: -10%;
    bottom: 24px;

    display: flex;
    align-items: center;
    gap: 12px;

    padding: 14px 18px;

    width: 190px;

    background: var(--white);

    border: 1px solid var(--line);
    border-radius: var(--radius-md);

    box-shadow: 0 22px 44px rgba(18, 38, 31, 0.14);

    transform: rotate(-4deg);

    transition: transform 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
.hero-visual:hover .float-card {
    transform: rotate(0deg);
}
}

.float-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;

    width: 38px;
    height: 38px;

    border-radius: 10px;

    background: var(--accent-soft);
    color: var(--accent-2);
}

.float-card-icon svg {
    width: 18px;
    height: 18px;
}

.float-card-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.float-card-text strong {
    font-family: var(--font-display);
    font-size: 20px;
    color: var(--pine);
}

.float-card-text span {
    font-size: 12px;
    color: var(--ink-soft);
}


/* =====================================================
   EMBLEMA DEL HERO — bloque único y definitivo
   (sustituye a los ~7 parches conflictivos que había antes)
   ===================================================== */

.hero-visual {
    position: absolute;

    right: 4vw;
    top: 50%;

    width: 440px;
    height: 560px;

    transform: translateY(-50%);

    opacity: 0;
    animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.35s forwards;
}

/* Anillo decorativo y emblema comparten el mismo centro,
   fijado a una altura concreta dentro de .hero-visual */
.badge-ring {
    position: absolute;
    top: 40px;
    left: 50%;

    width: 380px;
    height: 380px;

    transform: translate(-50%, -50%);

    animation: spin 36s linear infinite;
}

.badge-ring-arc {
    stroke: var(--accent);
    stroke-dasharray: 170 750;
    stroke-dashoffset: 0;

    filter: drop-shadow(0 0 8px rgba(56, 232, 255, 0.5));

    opacity: 0;
    animation: fade-in 0.6s ease 0.4s forwards;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes fade-in {
    to { opacity: 1; }
}

/* badge-core: solo posiciona; el círculo visible es la imagen */
.badge-core {
    position: absolute;
    top: 40px;
    left: 50%;

    width: 300px;
    height: 300px;

    transform: translate(-50%, -50%);

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    animation: badge-pop 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s both,
               badge-breathe 6s ease-in-out infinite 1.4s;
}

@keyframes badge-pop {
    0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.55); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes badge-breathe {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50%      { transform: translate(-50%, -50%) scale(1.025); }
}

.badge-icon-img {
    width: 300px;
    height: 300px;

    border-radius: 50%;
    object-fit: cover;

    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.45),
        inset 0 0 0 1px rgba(56, 232, 255, 0.3),
        0 0 50px rgba(43, 140, 255, 0.16);

    transition: transform 0.5s ease, filter 0.5s ease, box-shadow 0.5s ease;
}

@media (hover: hover) and (pointer: fine) {
.hero-visual:hover .badge-icon-img {
    transform: scale(1.035) rotate(-1deg);
    filter: saturate(1.08) brightness(1.04);
    box-shadow:
        0 34px 70px rgba(0, 0, 0, 0.5),
        inset 0 0 0 1px rgba(56, 232, 255, 0.4),
        0 0 60px rgba(56, 232, 255, 0.22);
}
}

/* La etiqueta va SIEMPRE debajo del círculo, en flujo fijo — nunca se recorta */
.badge-tagline {
    position: absolute;
    top: 270px;
    left: 50%;

    transform: translateX(-50%);

    width: max-content;

    padding: 8px 16px;

    border: 1px solid rgba(56, 232, 255, 0.18);
    border-radius: 999px;

    background: rgba(3, 11, 24, 0.62);
    backdrop-filter: blur(8px);

    color: rgba(223, 239, 255, 0.85);

    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;

    text-shadow: 0 0 14px rgba(56, 232, 255, 0.2);
}

@media (max-width: 1100px) {

    .hero-visual {
        width: 360px;
        height: 480px;
    }

    .badge-ring {
        top: 35px;
        width: 320px;
        height: 320px;
    }

    .badge-core,
    .badge-icon-img {
        width: 250px;
        height: 250px;
    }

    .badge-core {
        top: 35px;
    }

    .badge-tagline {
        top: 240px;
        font-size: 10px;
        letter-spacing: 0.22em;
    }

    .float-card {
        bottom: 18px;
    }

}

@media (max-width: 760px) {
    .hero-visual {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .badge-ring,
    .badge-core,
    .badge-icon-img {
        animation: none !important;
        transition: none !important;
    }
}


/* =====================================================
   SECCIONES
   ===================================================== */

.section {
    width: min(var(--max), 88vw);
    margin: 0 auto;
}

.section-heading {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 70px;

    margin-bottom: 60px;
}

.section-heading h2,
.statement-content h2 {
    font-size: clamp(34px, 4.2vw, 58px);

    line-height: 1.08;

    letter-spacing: -1px;

    font-weight: 400;
}

.section-intro {
    align-self: end;

    max-width: 340px;

    color: var(--ink-soft);

    font-size: 16px;
    line-height: 1.65;
}


/* =====================================================
   SERVICIOS — grid tipo bento
   ===================================================== */

.services-section {
    padding: 130px 0;
}

.services-grid {
    display: grid;

    grid-template-columns: repeat(12, minmax(0, 1fr));

    gap: 18px;
}

.service-card {
    grid-column: span 6;

    position: relative;

    padding: 34px;

    border: 1px solid var(--line);

    border-radius: var(--radius-lg);

    background: var(--white);

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

@media (hover: hover) and (pointer: fine) {
.service-card:hover {
    transform: translateY(-4px);

    border-color: var(--line-strong);

    box-shadow: 0 18px 40px rgba(18, 38, 31, 0.08);
}
}

.service-card--wide {
    grid-column: span 7;
}

.service-card--narrow {
    grid-column: span 5;
}

.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 52px;
    height: 52px;

    border-radius: var(--radius-sm);

    background: var(--paper-soft);

    color: var(--accent-2);

    transition:
        transform 0.2s var(--ease-out),
        background 0.2s ease,
        color 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
.service-card:hover .service-icon {
    transform: scale(1.06);

    background: var(--accent);
    color: var(--white);
}
}

.service-icon svg {
    width: 24px;
    height: 24px;
}

.service-card h3 {
    margin-top: 26px;

    font-size: 25px;
    font-weight: 500;

    letter-spacing: -0.3px;
}

.service-card p {
    max-width: 420px;

    margin-top: 12px;

    color: var(--ink-soft);

    font-size: 15px;
    line-height: 1.65;
}


/* =====================================================
   NOSOTROS
   ===================================================== */

.statement-section {
    padding: 60px 0 150px;
}

.statement-content {
    max-width: 780px;
}

.statement-content p:last-child {
    max-width: 620px;

    margin-top: 28px;

    color: var(--ink-soft);

    font-size: 17px;

    line-height: 1.75;
}


/* =====================================================
   CONTACTO
   ===================================================== */

.contact-section {
    padding-bottom: 140px;
}

.contact-box {
    display: grid;

    grid-template-columns: 1fr auto;

    gap: 60px;

    align-items: end;

    padding: 64px;

    border-radius: var(--radius-lg);

    background: var(--pine);
    color: var(--paper);

    position: relative;
    overflow: hidden;
}

.contact-box::before {
    content: "";

    position: absolute;

    width: 380px;
    height: 380px;

    right: -140px;
    top: -160px;

    background: radial-gradient(
        circle,
        rgba(226, 155, 31, 0.22),
        transparent 70%
    );

    border-radius: 50%;
}

.contact-box .eyebrow {
    color: var(--accent);
}

.contact-box h2,
.contact-box h3 {
    position: relative;
    color: var(--paper);
}

.contact-box h2 {
    font-size: clamp(36px, 4.6vw, 62px);

    line-height: 1.05;
    letter-spacing: -1px;
}

.contact-box h3 {
    margin-top: 10px;

    color: var(--accent);

    font-size: clamp(20px, 2.4vw, 30px);

    font-weight: 400;
    font-style: italic;
}

.contact-box-note {
    position: relative;

    max-width: 220px;

    color: rgba(239, 242, 239, 0.75);

    font-size: 14px;
    line-height: 1.6;

    text-align: right;
}

.contact-service-area {
    margin-top: 28px;

    color: var(--ink-faint);

    font-size: 13px;
    line-height: 1.6;
}

.statement-location {
    margin-top: 18px !important;

    color: var(--ink-faint) !important;

    font-size: 14px !important;
}


/* ---- Formulario ---- */

.contact-grid {
    display: grid;

    grid-template-columns: 1.6fr 1fr;
    gap: 40px;

    margin-top: 40px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;

    padding: 40px;

    background: var(--white);

    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
}

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

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-soft);
}

.field input,
.field select,
.field textarea {
    padding: 13px 16px;

    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);

    background: var(--paper);
    color: var(--ink);

    font-family: var(--font-body);
    font-size: 16px;

    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field textarea {
    resize: vertical;
    min-height: 100px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;

    border-color: var(--accent-2);
    box-shadow: 0 0 0 4px var(--accent-soft);
}

.hp-field {
    position: absolute;
    left: -9999px;

    width: 1px;
    height: 1px;

    opacity: 0;
}

.form-submit {
    align-self: flex-start;

    margin-top: 4px;
}

.form-note {
    font-size: 13px;
    color: var(--ink-faint);
}

.form-status {
    font-size: 14px;
    font-weight: 600;
    min-height: 20px;
}

.form-status.is-success {
    color: #2E7D4F;
}

.form-status.is-error {
    color: #B3261E;
}

.contact-direct {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;

    padding-top: 8px;
}

.contact-direct-label {
    color: var(--ink-soft);

    font-size: 14px;
    font-weight: 500;

    margin-bottom: 4px;
}

.contact-direct .contact-link {
    border-color: var(--line-strong);
    color: var(--ink);
}

@media (hover: hover) and (pointer: fine) {
.contact-direct .contact-link:hover {
    background: var(--paper-soft);
    border-color: var(--ink);
}
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 12px 20px;

    border: 1px solid rgba(239, 242, 239, 0.25);
    border-radius: 999px;

    color: var(--paper);

    font-size: clamp(14px, 1.4vw, 16px);
    font-weight: 600;

    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}

.contact-link svg {
    width: 15px;
    height: 15px;
    opacity: 0.8;
}

@media (hover: hover) and (pointer: fine) {
.contact-link:hover {
    background: rgba(239, 242, 239, 0.08);
    border-color: rgba(239, 242, 239, 0.5);
}
}


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

.footer {
    width: 88vw;
    max-width: var(--max);

    margin: 0 auto;

    padding: 56px 0 32px;

    border-top: 1px solid var(--line);

    color: var(--ink-faint);

    font-size: 13px;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;

    padding-bottom: 32px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-logo-name {
    font-family: var(--font-display);
    color: var(--ink);
    font-weight: 600;
    letter-spacing: 0.5px;
    font-size: 15px;
}

.footer-tagline {
    max-width: 260px;
    line-height: 1.6;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col-title {
    color: var(--ink);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.footer-col a,
.footer-col span {
    color: var(--ink-faint);
    transition: color 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
.footer-col a:hover {
    color: var(--accent-2, var(--accent));
}
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--line);

    font-size: 12px;
}

@media (max-width: 760px) {
    .footer-main {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}


/* =====================================================
   AVISO DE COOKIES
   ===================================================== */

.cookie-banner {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;

    z-index: 500;

    display: none;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    max-width: 900px;
    margin: 0 auto;

    padding: 20px 24px;

    background: rgba(6, 14, 28, 0.96);
    backdrop-filter: blur(10px);

    border: 1px solid var(--line-strong);
    border-radius: var(--radius-md);

    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.cookie-banner.is-visible {
    display: flex;
}

.cookie-banner p {
    flex: 1 1 320px;
    min-width: 220px;

    margin: 0;

    color: var(--ink-faint);
    font-size: 13px;
    line-height: 1.6;
}

.cookie-banner a {
    color: var(--accent-2, var(--accent));
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-actions .button {
    min-height: 40px;
    padding: 0 18px;
    font-size: 13px;
}

@media (max-width: 500px) {
    .cookie-banner {
        left: 12px;
        right: 12px;
        bottom: 12px;
        padding: 18px;
    }
    .cookie-actions {
        width: 100%;
    }
    .cookie-actions .button {
        flex: 1;
    }
}


/* =====================================================
   REVELADO AL HACER SCROLL
   ===================================================== */

.reveal {
    opacity: 0;
    transform: translateY(32px);

    transition:
        opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
        transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}


/* =====================================================
   RESPONSIVE — TABLET
   ===================================================== */

@media (max-width: 1000px) {

    .hero-content {
        width: 62%;
    }

    .section-heading {
        grid-template-columns: 1fr 0.6fr;
        gap: 36px;
    }

    .service-card,
    .service-card--wide,
    .service-card--narrow {
        grid-column: span 6;
    }}


/* =====================================================
   RESPONSIVE — MÓVIL
   ===================================================== */

@media (max-width: 760px) {

    .header {
        height: 68px;

        padding: 0 5.5vw;
    }

    .menu-btn {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 0;
        right: 0;

        width: min(78vw, 320px);
        height: 100dvh;

        flex-direction: column;
        align-items: flex-start;
        justify-content: center;

        gap: 26px;

        padding: 0 40px;

        background: var(--paper);

        border-left: 1px solid var(--line);

        transform: translateX(100%);

        transition: transform 0.4s var(--ease-drawer);

        z-index: 205;
    }

    .nav.open {
        transform: translateX(0);
    }

    .nav a {
        font-size: 20px;
    }

    .lang-btn {
        margin-top: 10px;
    }


    .hero {
        min-height: auto;

        padding: 130px 6.5vw 90px;
    }

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

    .hero h1 {
        font-size: clamp(40px, 12vw, 60px);

        letter-spacing: -1px;
    }

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

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .button {
        width: 100%;
    }


    .section {
        width: 87vw;
    }

    .services-section {
        padding: 90px 0;
    }

    .section-heading {
        display: block;

        margin-bottom: 40px;
    }

    .section-heading h2,
    .statement-content h2 {
        font-size: 34px;

        letter-spacing: -0.5px;
    }

    .section-intro {
        margin-top: 20px;
        max-width: 100%;
    }


    .services-grid {
        display: flex;
        flex-direction: column;
    }

    .service-card,
    .service-card--wide,
    .service-card--narrow {
        grid-column: unset;
    }


    .statement-section {
        padding: 20px 0 90px;
    }

    .statement-content p:last-child {
        font-size: 16px;
    }


    .contact-section {
        padding-bottom: 90px;
    }

    .contact-box {
        display: block;

        padding: 36px 26px;
    }

    .contact-box-note {
        margin-top: 24px;

        max-width: 100%;
        text-align: left;
    }

    .contact-grid {
        display: block;

        margin-top: 28px;
    }

    .contact-form {
        padding: 26px 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .form-submit {
        align-self: stretch;
        justify-content: center;
    }

    .contact-direct {
        margin-top: 28px;
    }


    .footer {
        width: 87vw;

        flex-direction: column;
        align-items: flex-start;

        gap: 8px;
    }}


/* =====================================================
   MÓVILES PEQUEÑOS
   ===================================================== */

@media (max-width: 400px) {

    .logo-name {
        font-size: 10px;
    }

    .hero h1 {
        font-size: 38px;
    }

    .section-heading h2,
    .statement-content h2 {
        font-size: 30px;
    }}


/* =====================================================
   DIGITAL BULTZADA — POLISH / MOTION SYSTEM
   ===================================================== */
:root {
    --blue: #2B8CFF;
    --cyan: #38E8FF;
    --green: #8CF24A;
    --green-2: #27C86B;
    --navy: #050B16;
    --navy-2: #08152A;
    --glass: rgba(8, 21, 42, 0.72);
    --shadow-blue: rgba(43, 140, 255, 0.20);
}

body {
    background:
        radial-gradient(circle at 78% 12%, rgba(43,140,255,.12), transparent 28%),
        radial-gradient(circle at 15% 72%, rgba(39,200,107,.06), transparent 26%),
        var(--paper);
}

.page-noise {
    position: fixed;
    inset: 0;
    z-index: 999;
    pointer-events: none;
    opacity: .035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.cursor-glow {
    position: fixed;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    background: radial-gradient(circle, rgba(56,232,255,.10), rgba(43,140,255,.045) 35%, transparent 70%);
    left: 0;
    top: 0;
    transform: translate3d(-50%, -50%, 0);
    transition: opacity .35s ease;
    will-change: transform;
}

.header {
    background: rgba(5, 11, 22, .74);
    border-bottom-color: rgba(126,184,255,.12);
    box-shadow: 0 10px 40px rgba(0,0,0,.16);
}

.logo-mark {
    background: linear-gradient(145deg, #07152B, #0D2A52);
    box-shadow: inset 0 0 0 1px rgba(56,232,255,.24), 0 8px 26px rgba(43,140,255,.12);
}

.logo-name {
    color: var(--ink);
    font-family: var(--font-body);
    font-weight: 700;
    letter-spacing: 1.8px;
}
.logo-name::first-line { color: var(--cyan); }

.nav a { color: #A9BCD0; }
@media (hover: hover) and (pointer: fine) {
.nav a:hover { color: #F1F8FF; }
}
.nav a::after { background: linear-gradient(90deg, var(--cyan), var(--blue)); height: 2px; }

.lang-btn {
    color: #DDEBFA;
    border-color: rgba(126,184,255,.24);
    background: rgba(255,255,255,.025);
}
@media (hover: hover) and (pointer: fine) {
.lang-btn:hover { border-color: var(--cyan); background: rgba(56,232,255,.07); }
}

.hero {
    background:
        radial-gradient(circle at 76% 48%, rgba(43,140,255,.12), transparent 25%),
        radial-gradient(circle at 86% 75%, rgba(39,200,107,.07), transparent 22%);
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .22;
    background-image: linear-gradient(rgba(126,184,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(126,184,255,.07) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(to bottom, black, transparent 88%);

}
@keyframes grid-drift { to { transform: translate3d(64px,64px,0); } }

.hero-glow {
    width: 720px;
    height: 720px;
    right: -250px;
    background: radial-gradient(circle, rgba(43,140,255,.18), rgba(56,232,255,.05) 38%, transparent 70%);
    filter: blur(45px);
    animation: glow-pulse 7s ease-in-out infinite;
}

.hero h1 { color: #F3F8FF; font-weight: 600; letter-spacing: -2.5px; }
.hero h1 strong {
    background: linear-gradient(100deg, var(--cyan), var(--blue) 48%, var(--green) 95%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 35px rgba(56,232,255,.08);
    font-style: normal;
}
.hero-text { color: #9DB2C9; }

.button-primary {
    background: linear-gradient(135deg, #1674E8, #2B8CFF 55%, #38BFFF);
    border-color: transparent;
    box-shadow: 0 12px 30px rgba(43,140,255,.22);
}
@media (hover: hover) and (pointer: fine) {
.button-primary:hover {
    background: linear-gradient(135deg, #2384F7, #38BFFF);
    box-shadow: 0 16px 38px rgba(43,140,255,.30);
    transform: translateY(-3px);
}
}
.button-secondary {
    color: #E8F3FF;
    border-color: rgba(126,184,255,.25);
    background: rgba(255,255,255,.025);
}
@media (hover: hover) and (pointer: fine) {
.button-secondary:hover { border-color: rgba(56,232,255,.6); background: rgba(56,232,255,.06); }
}
.float-dot { background: var(--green); box-shadow: 0 0 16px rgba(140,242,74,.55); }
.dot-b { background: var(--cyan); }
.float-card {
    background: rgba(10,21,38,.82);
    border-color: rgba(126,184,255,.18);
    box-shadow: 0 24px 60px rgba(0,0,0,.28), 0 0 30px rgba(43,140,255,.08);
    backdrop-filter: blur(16px);
}
.float-card-icon { background: rgba(56,232,255,.08); color: var(--cyan); }
.float-card-text strong { color: #F1F8FF; }
.float-card-text span { color: #8EA5BD; }

.section-heading h2, .statement-content h2 { color: #EFF7FF; font-weight: 600; }
.eyebrow { color: var(--cyan); letter-spacing: 1.8px; text-transform: uppercase; }
.section-intro, .service-card p, .statement-content p:last-child { color: #92A8BF; }

.services-section { position: relative; }
.services-section::before {
    content: "";
    position: absolute;
    left: 5%; right: 5%; top: 4%; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(56,232,255,.22), rgba(140,242,74,.18), transparent);
}
.service-card {
    background: linear-gradient(145deg, rgba(11,23,41,.88), rgba(7,17,31,.94));
    border-color: rgba(126,184,255,.13);
    box-shadow: 0 18px 50px rgba(0,0,0,.10);
    overflow: hidden;
    isolation: isolate;
}
.service-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(56,232,255,.11), transparent 30%);
    opacity: 0;
    transition: opacity .35s ease;
    z-index: -1;
}
@media (hover: hover) and (pointer: fine) {
.service-card:hover::before { opacity: 1; }
}
@media (hover: hover) and (pointer: fine) {
.service-card:hover {
    transform: translateY(-4px);
    border-color: rgba(56,232,255,.30);
    box-shadow: 0 24px 60px rgba(0,0,0,.25), 0 0 35px rgba(43,140,255,.08);
}
}
.service-icon {
    background: linear-gradient(145deg, rgba(56,232,255,.09), rgba(43,140,255,.08));
    color: var(--cyan);
    border: 1px solid rgba(56,232,255,.12);
}
@media (hover: hover) and (pointer: fine) {
.service-card:hover .service-icon {
    background: linear-gradient(145deg, var(--blue), #1674E8);
    color: white;
    box-shadow: 0 10px 26px rgba(43,140,255,.28);
}
}
.service-card h3 { color: #EFF7FF; }

.statement-section { position: relative; }
.statement-content { position: relative; }
.statement-content::after {
    content: "";
    display: block;
    width: 110px;
    height: 3px;
    margin-top: 34px;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--cyan), var(--green));
    box-shadow: 0 0 18px rgba(56,232,255,.24);
}

.contact-box {
    background: linear-gradient(135deg, #07152A 0%, #0A2450 62%, #071A2B 100%);
    box-shadow: 0 30px 80px rgba(0,0,0,.28);
    border: 1px solid rgba(56,232,255,.15);
}
.contact-box::before { background: radial-gradient(circle, rgba(56,232,255,.16), transparent 70%); }
.contact-box::after {
    content: "";
    position: absolute;
    width: 260px; height: 260px;
    left: -120px; bottom: -160px;
    border-radius: 50%;
    border: 1px solid rgba(140,242,74,.14);
    box-shadow: 0 0 70px rgba(140,242,74,.07);
}
.contact-box .eyebrow { color: var(--cyan); }
.contact-box h3 { color: var(--green); }
.contact-box-note { color: rgba(224,239,255,.68); }
.contact-form {
    background: rgba(10,21,38,.78);
    border-color: rgba(126,184,255,.14);
    box-shadow: 0 20px 50px rgba(0,0,0,.16);
    backdrop-filter: blur(14px);
}
.field label { color: #91A8C0; }
.field input, .field select, .field textarea {
    background: rgba(5,11,22,.78);
    color: #EFF7FF;
    border-color: rgba(126,184,255,.18);
}
.field input::placeholder, .field textarea::placeholder { color: #60758C; }
.field input:focus, .field select:focus, .field textarea:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 4px rgba(56,232,255,.08), 0 0 24px rgba(43,140,255,.08);
}
.form-note { color: #657B92; }
.contact-direct-label { color: #91A8C0; }
.contact-direct .contact-link { color: #EAF5FF; border-color: rgba(126,184,255,.18); }
@media (hover: hover) and (pointer: fine) {
.contact-direct .contact-link:hover { background: rgba(56,232,255,.06); border-color: rgba(56,232,255,.45); }
}

.footer { border-top-color: rgba(126,184,255,.12); color: #61778E; }
.footer-logo-name { color: #DCEBFA; }
.footer-col-title { color: #DCEBFA; }
.footer-bottom { border-top-color: rgba(126,184,255,.12); }
.cookie-banner { background: rgba(6,14,28,.97); border-color: rgba(126,184,255,.18); }

.reveal {
    opacity: 0;
    transform: translate3d(0, 16px, 0);
    transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
}
.reveal.in-view { opacity: 1; transform: translate3d(0,0,0); }

@keyframes orbit-breathe { 0%,100% { transform: scale(1); opacity:.55; } 50% { transform: scale(1.035); opacity:1; } }

@media (hover:hover) and (pointer:fine) {
    .service-card, .button, .logo-mark, .float-card { will-change: transform; }}

@media (prefers-reduced-motion: reduce) {
    .page-noise, .cursor-glow, .hero::before { display:none; }}


/* =====================================================
   FINAL POLISH — LOGO + CONTACT CTA
   ===================================================== */

/* El emblema usa ahora un recorte limpio del símbolo, no el logotipo completo. */
.logo-mark {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    padding: 3px;
    background: radial-gradient(circle at 35% 30%, #10376B, #061226 72%);
    box-shadow:
        inset 0 0 0 1px rgba(56,232,255,.28),
        0 8px 28px rgba(43,140,255,.16);
}

.mark-icon-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 9px;
}

.float-card {
    left: -4%;
    bottom: 7%;
}

/* CTA de contacto: abandona el bloque negro y gana contraste y profundidad. */
.contact-box {
    background:
        radial-gradient(circle at 88% 18%, rgba(56,232,255,.25), transparent 28%),
        radial-gradient(circle at 8% 90%, rgba(140,242,74,.13), transparent 24%),
        linear-gradient(135deg, #0B2B58 0%, #0B55A5 52%, #073B74 100%);
    border: 1px solid rgba(56,232,255,.34);
    box-shadow:
        0 30px 80px rgba(0,0,0,.32),
        0 0 55px rgba(43,140,255,.10);
}

.contact-box::before {
    width: 500px;
    height: 500px;
    right: -180px;
    top: -230px;
    background: radial-gradient(circle, rgba(56,232,255,.24), transparent 68%);
}

.contact-box h2 {
    color: #FFFFFF;
    text-shadow: 0 3px 22px rgba(0,0,0,.22);
}

.contact-box h3 {
    color: #B8FF63;
    text-shadow: 0 0 24px rgba(140,242,74,.18);
}

.contact-box .eyebrow {
    color: #72F2FF;
}

.contact-box-note {
    color: rgba(242,249,255,.90);
}

/* CTA: contraste real contra el fondo oscuro */
.contact-section {
    position: relative;
}

.contact-box {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 82% 15%, rgba(56,232,255,.34), transparent 27%),
        radial-gradient(circle at 12% 100%, rgba(140,242,74,.20), transparent 30%),
        linear-gradient(135deg, #123B73 0%, #0873C9 48%, #07538F 100%);
    border: 1px solid rgba(115,239,255,.58);
    box-shadow:
        0 28px 80px rgba(0,0,0,.42),
        0 0 70px rgba(43,140,255,.20),
        inset 0 1px 0 rgba(255,255,255,.10);
}

.contact-box::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,.07) 48%, transparent 62%);
    display: none;
}

.contact-box h2,
.contact-box h3,
.contact-box .eyebrow,
.contact-box-note {
    position: relative;
    z-index: 2;
}

.contact-box h2 {
    color: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    text-shadow: 0 4px 24px rgba(0,0,0,.30);
}

.contact-box h3 {
    color: #C4FF70;
    font-family: var(--font-display);
    font-weight: 700;
    text-shadow: 0 0 22px rgba(140,242,74,.22);
}

.contact-box .eyebrow {
    color: #9AF6FF;
    font-weight: 700;
}

.contact-box-note {
    color: #F4FAFF;
    font-weight: 500;
    text-shadow: 0 2px 12px rgba(0,0,0,.18);
}

@keyframes contact-shine {
    0%, 58%, 100% { transform: translateX(-120%); }
    72% { transform: translateX(120%); }
}

@media (prefers-reduced-motion: reduce) {
    .contact-box::after { animation: none !important; }}


/* ===== HERO ALIGNMENT + EMBLEM CLEANUP ===== */
.hero {
    min-height: 100svh;
    box-sizing: border-box;
}


/* ===== HERO FINAL FIX: composición completa y sin recorte ===== */
.hero {
    overflow: hidden;
}

/* Evita que el bloque visual vuelva a quedar cortado por la altura del hero */
@media (min-width: 901px) {
    .hero {
        min-height: 680px;
        height: 100svh;
        max-height: 900px;
        padding-top: 110px;
        padding-bottom: 80px;
    }}

/* =====================================================
   HERO — RECOMPOSICIÓN DEFINITIVA
   Emblema completo + descriptor siempre visible
   ===================================================== */
@media (min-width: 901px) {
  .hero {
    min-height: 760px;
    height: auto;
    padding: 108px var(--gutter) 92px;
    align-items: center;
  }

  .hero-content {
    width: 54%;
  }

  .float-card { bottom: 8%; }}


/* =====================================================
   PÁGINAS LEGALES (aviso legal, privacidad, cookies)
   ===================================================== */

.legal-main {
    width: min(760px, 88vw);
    margin: 0 auto;

    padding: 160px 0 100px;
}

.legal-main h1 {
    font-size: clamp(30px, 4vw, 42px);
    margin-bottom: 8px;
}

.legal-main .legal-updated {
    color: var(--ink-faint);
    font-size: 13px;
    margin-bottom: 40px;
}

.legal-main h2 {
    font-size: 20px;
    margin: 40px 0 12px;
}

.legal-main p,
.legal-main li {
    color: var(--ink-soft, var(--ink-faint));
    font-size: 15px;
    line-height: 1.75;
}

.legal-main ul {
    padding-left: 20px;
    margin: 12px 0;
}

.legal-main a {
    color: var(--accent-2, var(--accent));
    text-decoration: underline;
}

.legal-main .placeholder {
    background: rgba(242, 96, 61, 0.12);
    border: 1px dashed rgba(242, 96, 61, 0.5);
    border-radius: 4px;
    padding: 1px 6px;
    color: inherit;
    font-style: italic;
}

.legal-back {
    display: inline-block;
    margin-top: 8px;
}


/* =====================================================
   ACCESIBILIDAD — saltar al contenido
   ===================================================== */

.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;

    z-index: 1000;

    padding: 12px 20px;

    background: var(--accent);
    color: #06101F;

    border-radius: 8px;

    font-size: 14px;
    font-weight: 600;

    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 16px;
}


/* =====================================================
   FAQ
   ===================================================== */

.faq-section {
    padding: 40px 0 130px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 14px;

    max-width: 820px;
}

.faq-item {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);

    background: var(--white, rgba(255,255,255,0.02));

    padding: 22px 26px;
}

.faq-item summary {
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    color: var(--ink);
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 500;

    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";

    flex-shrink: 0;

    width: 26px;
    height: 26px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    border: 1px solid var(--line-strong);

    font-size: 18px;
    color: var(--accent-2, var(--accent));

    transition: transform 0.25s ease;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item p {
    margin-top: 16px;

    color: var(--ink-soft, var(--ink-faint));
    font-size: 15px;
    line-height: 1.7;

    max-width: 640px;
}


/* =====================================================
   BOTÓN FLOTANTE DE WHATSAPP
   ===================================================== */

.whatsapp-float {
    position: fixed;
    right: 24px;
    bottom: 24px;

    z-index: 400;

    width: 56px;
    height: 56px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #25D366;
    color: white;

    border-radius: 50%;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);

    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float svg {
    width: 28px;
    height: 28px;
}

@media (hover: hover) and (pointer: fine) {
.whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
}
}

@media (max-width: 760px) {
    .whatsapp-float {
        right: 16px;
        bottom: 88px;
    }
}


/* =====================================================
   SEO — NUEVOS ELEMENTOS (kicker, enlaces, zonas, páginas internas)
   ===================================================== */

.hero h1 .hero-kicker {
    display: block;
    margin-bottom: 20px;

    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 1.8px;
    text-transform: uppercase;

    color: var(--cyan);
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin-top: 22px;

    color: var(--cyan);
    font-size: 14px;
    font-weight: 600;
}

.card-link::after {
    content: "→";
    transition: transform 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
.card-link:hover::after {
    transform: translateX(4px);
}
}

/* Zonas */
.zones-section {
    padding: 20px 0 130px;
}

.zones-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.zone-card {
    display: block;

    padding: 28px;

    border: 1px solid rgba(126, 184, 255, 0.13);
    border-radius: var(--radius-lg);

    background: linear-gradient(145deg, rgba(11, 23, 41, 0.88), rgba(7, 17, 31, 0.94));

    transition: transform 0.25s ease, border-color 0.25s ease;
}

@media (hover: hover) and (pointer: fine) {
.zone-card:hover {
    transform: translateY(-4px);
    border-color: rgba(56, 232, 255, 0.3);
}
}

.zone-card h3 {
    font-size: 19px;
    color: #EFF7FF;
}

.zone-card h3::after {
    content: "→";
    display: inline-block;
    margin-left: 8px;
    color: var(--cyan);
    transition: transform 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
.zone-card:hover h3::after {
    transform: translateX(4px);
}
}

.zone-card h3 {
    white-space: normal;
    text-wrap: balance;
}

.zone-card p {
    margin-top: 10px;

    color: #92A8BF;
    font-size: 14px;
    line-height: 1.6;
}

/* Footer con 4 columnas */
.footer-main {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
}

.footer-brand a,
.footer-brand > span:not(.footer-logo-name) {
    color: var(--ink-faint);
}

@media (hover: hover) and (pointer: fine) {
.footer-brand a:hover {
    color: var(--accent-2);
}
}

/* Páginas internas (servicios y zonas) */
.page-main {
    width: min(var(--max), 88vw);
    margin: 0 auto;
    padding: 130px 0 40px;
}

.breadcrumbs {
    color: var(--ink-faint);
    font-size: 13px;
    margin-bottom: 36px;
}

.breadcrumbs a {
    color: var(--ink-soft);
}

@media (hover: hover) and (pointer: fine) {
.breadcrumbs a:hover {
    color: var(--cyan);
}
}

.page-hero {
    max-width: 820px;
    margin-bottom: 70px;
}

.page-hero h1 {
    font-size: clamp(36px, 5vw, 62px);
    line-height: 1.06;
    letter-spacing: -1.5px;
    font-weight: 600;
    color: #F3F8FF;
}

.page-lead {
    max-width: 640px;
    margin-top: 24px;

    color: #9DB2C9;
    font-size: 18px;
    line-height: 1.65;
}

.prose {
    max-width: 760px;
}

.prose h2,
.page-faq h2,
.related h2 {
    margin: 56px 0 16px;

    font-size: clamp(24px, 2.6vw, 32px);
    font-weight: 600;
    letter-spacing: -0.5px;
    color: #EFF7FF;
}

.prose h2:first-child {
    margin-top: 0;
}

.prose p,
.prose li {
    color: #A6BACF;
    font-size: 16px;
    line-height: 1.75;
}

.prose p + p {
    margin-top: 16px;
}

.prose ul,
.prose ol {
    display: flex;
    flex-direction: column;
    gap: 10px;

    margin: 16px 0 16px 22px;
}

.prose strong {
    color: #EFF7FF;
    font-weight: 600;
}

.prose a {
    color: var(--cyan);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.page-faq {
    margin-top: 40px;
}

.cta-band {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 40px;

    margin-top: 90px;
    padding: 48px;

    border: 1px solid rgba(115, 239, 255, 0.45);
    border-radius: var(--radius-lg);

    background:
        radial-gradient(circle at 85% 15%, rgba(56, 232, 255, 0.28), transparent 30%),
        linear-gradient(135deg, #123B73 0%, #0873C9 50%, #07538F 100%);
}

.cta-band .eyebrow {
    color: #9AF6FF;
}

.cta-band h2 {
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.15;
    font-weight: 700;
    color: #fff;
}

.cta-band p:last-child {
    margin-top: 12px;
    color: #F4FAFF;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.related {
    margin-top: 40px;
    padding-bottom: 60px;
}

.related-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.related-link {
    padding: 10px 18px;

    border: 1px solid rgba(126, 184, 255, 0.2);
    border-radius: 999px;

    color: #DDEBFA;
    font-size: 14px;
    font-weight: 500;

    transition: border-color 0.2s ease, background 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
.related-link:hover {
    border-color: var(--cyan);
    background: rgba(56, 232, 255, 0.06);
}
}

@media (max-width: 1000px) {
    .zones-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .footer-main {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 760px) {
    .zones-section {
        padding: 0 0 90px;
    }
    .zones-grid,
    .footer-main {
        grid-template-columns: 1fr;
    }
    .page-main {
        width: 87vw;
        padding-top: 110px;
    }
    .page-hero {
        margin-bottom: 50px;
    }
    .page-lead {
        font-size: 16px;
    }
    .cta-band {
        grid-template-columns: 1fr;
        padding: 32px 24px;
        gap: 24px;
    }
}


/* =====================================================
   CRAFT LAYER — mobile-native + emil-design-eng
   (va al final para ganar a las capas anteriores)
   ===================================================== */

/* --- Plataforma móvil --- */
html {
    -webkit-tap-highlight-color: transparent;
    -webkit-text-size-adjust: 100%;
}

/* Elementos que son controles: sin retardo de doble toque ni selección al mantener pulsado */
.button,
.lang-btn,
.menu-btn,
.whatsapp-float,
.nav a,
.zone-card,
.related-link,
.card-link,
.faq-item summary,
.contact-link {
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

/* Muescas y bordes redondeados (viewport-fit=cover) */
.header {
    padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
    padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

.whatsapp-float {
    right: max(24px, calc(env(safe-area-inset-right, 0px) + 12px));
    bottom: max(24px, calc(env(safe-area-inset-bottom, 0px) + 12px));
}

.nav {
    overscroll-behavior: contain;
}

@media (max-width: 760px) {
    .header {
        padding-left: max(5.5vw, env(safe-area-inset-left, 0px));
        padding-right: max(5.5vw, env(safe-area-inset-right, 0px));
    }
    .whatsapp-float {
        right: max(16px, calc(env(safe-area-inset-right, 0px) + 8px));
        bottom: max(24px, calc(env(safe-area-inset-bottom, 0px) + 16px));
    }
    .nav {
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }
}

/* --- Respuesta al pulsar (funciona con dedo y ratón) --- */
.button,
.lang-btn,
.contact-link,
.related-link,
.whatsapp-float {
    transition:
        transform 160ms var(--ease-out),
        background 200ms ease,
        border-color 200ms ease,
        box-shadow 200ms ease;
}

.button:active,
.lang-btn:active,
.contact-link:active,
.related-link:active {
    transform: scale(0.97);
}

.whatsapp-float:active {
    transform: scale(0.94);
}

.zone-card,
.service-card {
    transition:
        transform 200ms var(--ease-out),
        border-color 200ms ease,
        box-shadow 200ms ease;
}

.zone-card:active {
    transform: scale(0.985);
}

.faq-item summary::after {
    transition: transform 200ms var(--ease-out);
}

.nav a::after {
    transition: transform 200ms var(--ease-out);
}

/* El botón ya se hunde al pulsar; en hover basta con el color, sin saltos de 3px */
@media (hover: hover) and (pointer: fine) {
    .button:hover,
    .button-primary:hover {
        transform: none;
    }
    .button:hover svg {
        transform: translateX(3px);
    }
    .button:active,
    .button-primary:active {
        transform: scale(0.97);
    }
    .whatsapp-float:hover {
        transform: scale(1.05);
    }
    .whatsapp-float:active {
        transform: scale(0.94);
    }
}

.button svg {
    transition: transform 200ms var(--ease-out);
}

/* Entrada del hero: curva fuerte y algo más corta */
.hero-content > * {
    animation-duration: 0.6s;
    animation-timing-function: var(--ease-out);
}

/* --- Movimiento reducido: fuera desplazamientos, se mantienen los fundidos --- */
@media (prefers-reduced-motion: reduce) {
    .reveal,
    .reveal.in-view {
        transform: none;
    }
    .hero-glow,
    .float-dot,
    .badge-ring {
        animation: none;
    }
}

/* --- break-ui: arreglos de peor caso --- */

/* #1 Formulario a 320px: los campos tienen ancho intrínseco y empujan la tarjeta fuera de pantalla */
.form-row > .field,
.field {
    min-width: 0;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    min-width: 0;
}

/* #2 Mensajes de estado: rojo y verde oscuros eran casi ilegibles sobre el fondo azul noche */
.form-status.is-error {
    color: #FF8A80;
}

.form-status.is-success {
    color: #7EE2A8;
}

.form-status {
    overflow-wrap: anywhere;
}

/* #3 Preguntas largas (sobre todo en euskera) ocupan 3-5 líneas: el icono se alinea arriba, no flota en el centro */
.faq-item summary {
    align-items: flex-start;
}

.faq-item summary::after {
    margin-top: 1px;
}

/* #4 "Nosotros": el párrafo principal había perdido su margen y estilo porque :last-child apunta ahora a la línea de ubicación */
.statement-content h2 + p {
    max-width: 620px;
    margin-top: 28px;
    color: #92A8BF;
    font-size: 17px;
    line-height: 1.75;
}

/* #5 Emails y URLs largos en cualquier texto de contenido */
.prose,
.faq-item p,
.footer-col a,
.footer-brand a,
.contact-link {
    overflow-wrap: anywhere;
}

@media (max-width: 760px) {
    .statement-content h2 + p {
        font-size: 16px;
    }
}

/* Con el menú móvil abierto, el botón de WhatsApp no tapa el panel */
body:has(.nav.open) .whatsapp-float {
    opacity: 0;
    pointer-events: none;
}


/* =====================================================
   DEMOS — escaparate en la portada (enlaza a /demos/)
   ===================================================== */

.demos-section {
    padding: 20px 0 130px;
}

.demos-showcase {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: 22px;
    align-items: stretch;
}

.demo-feature {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}

.demo-frame {
    display: block;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(126, 184, 255, 0.16);
    background: linear-gradient(145deg, rgba(11, 23, 41, 0.88), rgba(7, 17, 31, 0.94));
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35), 0 0 40px rgba(43, 140, 255, 0.08);
    transition: transform 0.35s var(--ease-out), border-color 0.25s ease, box-shadow 0.35s var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
.demo-feature:hover .demo-frame {
    transform: translateY(-4px);
    border-color: rgba(56, 232, 255, 0.35);
    box-shadow: 0 36px 80px rgba(0, 0, 0, 0.42), 0 0 50px rgba(56, 232, 255, 0.12);
}
}

.demo-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    height: 34px;
    padding: 0 14px;
    background: rgba(5, 11, 22, 0.9);
    border-bottom: 1px solid rgba(126, 184, 255, 0.12);
}

.demo-bar i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #22324D;
}

.demo-bar span {
    margin-left: 8px;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: var(--ink-faint);
    font-size: 12px;
}

.demo-screen {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: radial-gradient(70% 70% at 30% 20%, rgba(43, 140, 255, 0.16), transparent 60%), #07111F;
}

.demo-screen b {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-size: clamp(22px, 3vw, 36px);
    font-weight: 600;
    color: #1F3355;
}

.demo-screen iframe {
    position: absolute;
    left: 0;
    top: 0;
    width: 1280px;
    height: 800px;
    border: 0;
    transform-origin: 0 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.demo-caption {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 14px;
}

.demo-caption strong {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    color: #EFF7FF;
}

.demo-caption > span:last-child {
    color: #92A8BF;
    font-size: 15px;
}

.demo-badge {
    flex-basis: 100%;
    color: var(--green);
    font-size: 13px;
    font-weight: 600;
}

.demo-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.demo-row {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 18px 22px;
    border: 1px solid rgba(126, 184, 255, 0.13);
    border-radius: var(--radius-md);
    background: linear-gradient(145deg, rgba(11, 23, 41, 0.88), rgba(7, 17, 31, 0.94));
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.demo-row strong {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    color: #EFF7FF;
}

.demo-row strong::after {
    content: "↗";
    display: inline-block;
    margin-left: 8px;
    color: var(--cyan);
    font-size: 15px;
    transition: transform 0.2s ease;
}

.demo-row span {
    color: #92A8BF;
    font-size: 14px;
}

@media (hover: hover) and (pointer: fine) {
.demo-row:hover {
    transform: translateX(4px);
    border-color: rgba(56, 232, 255, 0.3);
}
.demo-row:hover strong::after {
    transform: translate(2px, -2px);
}
}

.demo-all {
    margin-top: auto;
    align-self: flex-start;
}

/* Con un enlace más en el menú, se ajusta el espacio en pantallas medianas */
@media (min-width: 761px) and (max-width: 1100px) {
    .nav { gap: 22px; }
}

@media (max-width: 1000px) {
    .demos-showcase { grid-template-columns: 1fr; }
    .demo-all { margin-top: 8px; }
}

@media (max-width: 760px) {
    .demos-section { padding: 10px 0 90px; }
    .demo-all { align-self: stretch; }
}

@media (prefers-reduced-motion: reduce) {
    .demo-frame, .demo-row, .demo-screen iframe { transition: none; }
}
