/* ============================================================
   DUPAVI — Página «Consultor SEO técnico» (/consultor-seo-tecnico/)
   Concepto: «del ruido a la claridad». Lenguaje técnico y preciso
   (cuadrícula fina, etiquetas técnicas, línea de rastreo, medidor
   de profundidad), distinto del lenguaje editorial de la HOME.

   - Solo lo propio de esta página (prefijo .tec-). La estructura,
     el acordeón, el enlace final y el motor de animaciones están en
     servicios-base.css (prefijo .srv-).
   - Se carga solo en esta página (functions.php) y en el editor.
   - Animaciones: bloque «ANIMACIONES» al final + assets/js/seo-tecnico.js.
   ============================================================ */

:root {
    --tec-ico-cart: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='21' r='1'/%3E%3Ccircle cx='19' cy='21' r='1'/%3E%3Cpath d='M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12'/%3E%3C/svg%3E");
    --tec-ico-cms:  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='18' height='18' x='3' y='3' rx='2'/%3E%3Cpath d='M3 9h18'/%3E%3Cpath d='M9 21V9'/%3E%3C/svg%3E");
    --tec-ico-bag:  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4Z'/%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M16 10a4 4 0 0 1-8 0'/%3E%3C/svg%3E");
    --tec-ico-code: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m18 16 4-4-4-4'/%3E%3Cpath d='m6 8-4 4 4 4'/%3E%3Cpath d='m14.5 4-5 16'/%3E%3C/svg%3E");
}

/* Ritmo vertical dentro de las tarjetas
   (sustituye el hueco genérico de 24px que pone WordPress entre bloques) */
.tec-thesis-body > * { margin-top: 0 !important; }
.tec-level-card > * + *,
.tec-analysis-card > * + *,
.tec-project-card > * + * { margin-top: 0.85rem !important; }

.tec-thesis-statement,
.tec-quote p { text-wrap: balance; }

/* Fondo oscuro con cuadrícula técnica (hero + «Qué analiza») */
.tec-bg-grid {
    background-color: var(--c-dark);
    color: #ffffff;
}
.tec-bg-grid::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
    background-size: 56px 56px;
    background-position: center top;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,0.55) 55%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,0.55) 55%, transparent 100%);
}
.tec-bg-grid h1,
.tec-bg-grid h2,
.tec-bg-grid h3 { color: #ffffff; }
.tec-bg-grid p  { color: rgba(255,255,255,0.68); }

/* ============================================================
   1 · HERO
   ============================================================ */
.tec-hero::after {                       /* brillo azul suave detrás del panel */
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(ellipse 45% 60% at 78% 50%, rgba(40, 94, 168, 0.20) 0%, transparent 70%);
}
.tec-hero-cols.wp-block-columns {
    align-items: center !important;
    gap: clamp(2.5rem, 6vw, 6rem);
    margin: 0;
}
.tec-hero-main.wp-block-column  { flex-basis: 56% !important; }
.tec-hero-aside.wp-block-column { flex-basis: 44% !important; }

.tec-kicker {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--srv-mono);
    font-size: 0.75rem !important;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--srv-blue-soft) !important;
    margin-bottom: 1.75rem !important;
}
.tec-kicker::before {
    content: "";
    width: 28px;
    height: 1px;
    background-color: currentColor;
    flex-shrink: 0;
}
.tec-hero h1 {
    font-size: clamp(2.2rem, 4.2vw, 3.5rem);
    line-height: 1.08;
    letter-spacing: -0.025em;
    margin-bottom: 1.5rem;
    max-width: 18ch;
}
.tec-hero .tec-hero-lead {
    color: rgba(255,255,255,0.90);
    font-size: 1.12rem;
    font-weight: 500;
    max-width: 56ch;
}
.tec-hero .tec-hero-body {
    font-size: 0.98rem;
    max-width: 56ch;
}
.tec-hero .wp-block-buttons { margin: 2.25rem 0 1.25rem; }
.tec-hero .tec-hero-sub {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.48);
    max-width: 52ch;
}

/* Panel derecho: lo que puedes esperar */
.tec-hero-panel {
    position: relative;
    background-color: rgba(255,255,255,0.03);
    border: 1px solid var(--srv-line-dark);
    border-radius: 14px;
    padding: clamp(1.75rem, 3vw, 2.5rem);
}
.tec-hero-panel::before {                /* esquina técnica: marca de encuadre */
    content: "";
    position: absolute;
    top: -1px;
    left: -1px;
    width: 18px;
    height: 18px;
    border-top: 2px solid var(--c-action);
    border-left: 2px solid var(--c-action);
    border-top-left-radius: 14px;
}
.tec-hero-panel .tec-panel-title {
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--srv-line-dark);
}
.tec-checks {
    list-style: none;
    margin: 0;
    padding: 0;
}
.tec-checks li {
    position: relative;
    padding: 0 0 0 2.75rem;
    margin: 0 0 1.35rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.68);
}
.tec-checks li:last-child { margin-bottom: 0; }
.tec-checks li strong {
    display: block;
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 0.15rem;
}
.tec-checks li::before {                 /* círculo */
    content: "";
    position: absolute;
    left: 0;
    top: 0.1rem;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(126,179,247,0.35);
    background-color: rgba(40,94,168,0.18);
}
.tec-checks li::after {                  /* check de línea */
    content: "";
    position: absolute;
    left: 7px;
    top: calc(0.1rem + 7px);
    width: 14px;
    height: 14px;
    background-color: var(--srv-blue-soft);
    -webkit-mask: var(--srv-ico-check) center / contain no-repeat;
            mask: var(--srv-ico-check) center / contain no-repeat;
}

/* ============================================================
   2 · TESIS — «Auditorías SEO para decidir mejor»
   Muy limpio (nota del Word): la primera frase manda.
   ============================================================ */
.tec-thesis h2 {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0;
    color: var(--c-action);
    margin-bottom: 1.75rem;
}
.tec-thesis .tec-thesis-statement {
    font-size: clamp(2rem, 4.4vw, 3.6rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: var(--c-ink);
    max-width: 20ch;
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.tec-thesis-body {
    position: relative;
    columns: 2;
    column-gap: clamp(2rem, 5vw, 4.5rem);
    max-width: 1040px;
    padding-top: 2rem;
}
.tec-thesis-body::before {              /* línea divisoria (se dibuja al entrar) */
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background-color: var(--c-border);
    transform-origin: left center;
}
.tec-thesis-body p {
    break-inside: avoid;
    max-width: none;
    margin-bottom: 1.1rem;
}

/* ============================================================
   3 · TIPOS DE PROYECTO — escalera de alcance (local, nacional, internacional);
       cada tarjeta acaba en el enlace a su servicio
   ============================================================ */
.tec-levels.wp-block-columns {
    gap: 1.25rem;
    margin: 0;
    align-items: stretch !important;
}
.tec-level-card.wp-block-column {
    --tec-pt: 2.25rem;
    --tec-pl: 2rem;
    position: relative;
    display: flex;
    flex-direction: column;
    background-color: var(--c-white);
    border: 1px solid var(--c-border);
    border-radius: var(--srv-radius);
    padding: var(--tec-pt) var(--tec-pl) 1.75rem;
    transition: border-color 0.4s ease, transform 0.5s var(--ease-premium), box-shadow 0.5s ease;
}
/* Medidor de profundidad: 3 rayitas grises (::before) y el relleno azul encima (::after) */
.tec-level-card::before,
.tec-level-card::after {
    content: "";
    width: 96px;
    height: 4px;
    border-radius: 2px;
}
.tec-level-card::before {
    display: block;
    margin-bottom: 1.75rem;
    background:
        linear-gradient(90deg,
            var(--c-border) 0 28px, transparent 28px 34px,
            var(--c-border) 34px 62px, transparent 62px 68px,
            var(--c-border) 68px 96px);
}
.tec-level-card::after {
    position: absolute;
    top: var(--tec-pt);
    left: var(--tec-pl);
    background:
        linear-gradient(90deg,
            var(--tec-d1) 0 28px, transparent 28px 34px,
            var(--tec-d2) 34px 62px, transparent 62px 68px,
            var(--tec-d3) 68px 96px);
    transition: box-shadow 0.4s ease;
}
.tec-level-card { --tec-d1: transparent; --tec-d2: transparent; --tec-d3: transparent; }
.tec-depth-1 { --tec-d1: var(--c-action); }
.tec-depth-2 { --tec-d1: var(--c-action); --tec-d2: var(--c-action); }
.tec-depth-3 { --tec-d1: var(--c-action); --tec-d2: var(--c-action); --tec-d3: var(--c-action); }

.tec-level-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}
.tec-level-card p {
    font-size: 0.93rem;
    max-width: none;
}
.tec-level-card .tec-ideal {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    margin-top: auto !important;
    margin-bottom: 0;
    padding-top: 1.25rem;
    border-top: 1px solid var(--c-border);
    color: var(--c-action);
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.5;
}
.tec-level-card .tec-ideal::before {
    content: "";
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 0.15rem;
    background-color: currentColor;
    -webkit-mask: var(--srv-ico-arrow) center / contain no-repeat;
            mask: var(--srv-ico-arrow) center / contain no-repeat;
    transition: transform 0.35s var(--ease-premium);
}
/* El enlace de la última línea abarca toda la tarjeta */
.tec-level-card .tec-ideal a { color: inherit; text-decoration: none; }
.tec-level-card .tec-ideal a::after { content: ""; position: absolute; inset: 0; border-radius: var(--srv-radius); }
.tec-level-card:hover .tec-ideal::before,
.tec-level-card.is-focus .tec-ideal::before { transform: translateX(4px); }
/* El último párrafo antes del enlace deja aire hasta la línea */
.tec-level-card p:nth-last-child(2) { margin-bottom: 1.5rem; }

/* ============================================================
   4 · QUÉ ANALIZA — banda oscura con cuadrícula
   ============================================================ */
.tec-analysis-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}
.tec-analysis-grid > * { margin: 0 !important; }
.tec-analysis-card {
    position: relative;
    background-color: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--srv-radius);
    padding: 2rem 2rem 1.85rem;
    transition: border-color 0.4s ease, background-color 0.4s ease;
}
.tec-analysis-card > * { position: relative; z-index: 1; }
.tec-analysis-card::after {             /* foco de luz (sigue al ratón en PC) */
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), rgba(126,179,247,0.13), transparent 45%);
}
.tec-analysis-card::before {            /* marca azul arriba a la izquierda */
    content: "";
    position: absolute;
    top: -1px;
    left: 2rem;
    width: 32px;
    height: 2px;
    background-color: var(--c-action);
    transform-origin: left center;
}
.tec-analysis-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0;
}
.tec-analysis-card p {
    font-size: 0.92rem;
    max-width: none;
}

/* Cita destacada bajo las tarjetas */
.tec-quote.wp-block-quote {
    max-width: 920px;
    margin: clamp(3.5rem, 7vw, 5.5rem) auto 0 !important;
    padding: 0;
    border: none;
    text-align: center;
}
.tec-quote.wp-block-quote::before {
    content: "";
    display: block;
    width: 34px;
    height: 34px;
    margin: 0 auto 1.5rem;
    background-color: var(--srv-blue-soft);
    -webkit-mask: var(--srv-ico-quote) center / contain no-repeat;
            mask: var(--srv-ico-quote) center / contain no-repeat;
}
.tec-quote.wp-block-quote p {
    max-width: none;
    margin: 0 auto;
    color: #ffffff;
    font-size: clamp(1.35rem, 2.5vw, 1.95rem);
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

/* ============================================================
   5 · PROYECTOS — tarjetas horizontales con icono de línea
   ============================================================ */
.tec-projects-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}
.tec-projects-grid > * { margin: 0 !important; }
.tec-project-card {
    position: relative;
    background-color: var(--c-white);
    border: 1px solid var(--c-border);
    border-radius: var(--srv-radius);
    padding: 2rem 2rem 2rem calc(2rem + 52px + 1.5rem);
    min-height: 100%;
    transition: border-color 0.4s ease, transform 0.5s var(--ease-premium), box-shadow 0.5s ease;
}
.tec-project-card::before {             /* cuadrito del icono */
    content: "";
    position: absolute;
    top: 2rem;
    left: 2rem;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background-color: rgba(40, 94, 168, 0.07);
    border: 1px solid rgba(40, 94, 168, 0.12);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}
.tec-project-card::after {              /* icono */
    content: "";
    position: absolute;
    top: calc(2rem + 14px);
    left: calc(2rem + 14px);
    width: 24px;
    height: 24px;
    background-color: var(--c-action);
    -webkit-mask: var(--tec-ico) center / contain no-repeat;
            mask: var(--tec-ico) center / contain no-repeat;
    transition: background-color 0.3s ease;
}
.tec-icon-cart { --tec-ico: var(--tec-ico-cart); }
.tec-icon-cms  { --tec-ico: var(--tec-ico-cms); }
.tec-icon-bag  { --tec-ico: var(--tec-ico-bag); }
.tec-icon-code { --tec-ico: var(--tec-ico-code); }

.tec-project-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0;
    padding-top: 0.2rem;
}
.tec-project-card p {
    font-size: 0.92rem;
    max-width: none;
}

/* ============================================================
   MÓVIL Y TABLET
   ============================================================ */
@media (max-width: 1080px) {
    .tec-thesis-body { columns: 1; }
}
@media (max-width: 781px) {
    .tec-hero-main.wp-block-column,
    .tec-hero-aside.wp-block-column { flex-basis: 100% !important; }
    .tec-hero h1 { max-width: none; }
    .tec-analysis-grid,
    .tec-projects-grid { grid-template-columns: 1fr; }
    .tec-level-card.wp-block-column { --tec-pt: 2rem; --tec-pl: 1.5rem; padding-bottom: 1.5rem; }
    .tec-analysis-card { padding: 1.75rem 1.5rem 1.6rem; }
    .tec-analysis-card::before { left: 1.5rem; }
    /* En móvil el icono va encima del título para que el texto use todo el ancho */
    .tec-project-card { padding: calc(1.5rem + 48px + 1.1rem) 1.5rem 1.6rem; }
    .tec-project-card::before { top: 1.5rem; left: 1.5rem; width: 48px; height: 48px; }
    .tec-project-card::after  { top: calc(1.5rem + 12px); left: calc(1.5rem + 12px); }
}

/* ============================================================
   ANIMACIONES PROPIAS — «del ruido a la claridad»
   Usan el motor común (servicios-base.css): html.srv-motion, .srv-in,
   fotogramas srv* y fill «backwards».
   ============================================================ */
@keyframes tecScan {
    0%   { top: 0;    opacity: 0; }
    8%   {            opacity: 1; }
    90%  {            opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* Línea de rastreo: luz azul fina que recorre un bloque de arriba abajo
   a velocidad constante (así cada pieza aparece justo cuando pasa) */
.tec-hero-panel::after,
.tec-analysis-grid::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 2px;
    z-index: 2;
    opacity: 0;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(126,179,247,0.95) 50%, transparent);
    box-shadow: 0 0 18px 2px rgba(126,179,247,0.35);
}

/* ── 1 · Hero ─────────────────────────────────────────────── */
html.srv-motion .tec-hero.tec-bg-grid::before { animation: srvFade 2.4s ease both; }
html.srv-motion .tec-hero:not(.srv-in) .tec-kicker,
html.srv-motion .tec-hero:not(.srv-in) .tec-hero-lead,
html.srv-motion .tec-hero:not(.srv-in) .tec-hero-body,
html.srv-motion .tec-hero:not(.srv-in) .wp-block-buttons,
html.srv-motion .tec-hero:not(.srv-in) .tec-hero-sub,
html.srv-motion .tec-hero:not(.srv-in) h1 { opacity: 0; }
html.srv-motion .tec-hero h1 { --srv-base: 250ms; }
html.srv-motion .tec-hero.srv-in .tec-kicker          { animation: srvFade 1.2s ease backwards; }
html.srv-motion .tec-hero.srv-in .tec-kicker::before  { animation: srvGrow 1.2s var(--ease-premium) backwards; transform-origin: left center; }
html.srv-motion .tec-hero.srv-in .tec-hero-lead       { animation: srvRise 1.3s var(--ease-premium)  750ms backwards; }
html.srv-motion .tec-hero.srv-in .tec-hero-body       { animation: srvRise 1.3s var(--ease-premium)  900ms backwards; }
html.srv-motion .tec-hero.srv-in .wp-block-buttons    { animation: srvRise 1.3s var(--ease-premium) 1050ms backwards; }
html.srv-motion .tec-hero.srv-in .tec-hero-sub        { animation: srvRise 1.3s var(--ease-premium) 1200ms backwards; }

/* Panel: aparece, pasa la línea de rastreo y cada punto se revela a su paso */
html.srv-motion .tec-hero-panel:not(.srv-in),
html.srv-motion .tec-hero-panel:not(.srv-in) .tec-panel-title,
html.srv-motion .tec-hero-panel:not(.srv-in) .tec-checks li { opacity: 0; }
html.srv-motion .tec-hero-panel:not(.srv-in) .tec-checks li::after { clip-path: inset(0 100% 0 0); }
html.srv-motion .tec-hero-panel.srv-in                  { animation: srvFade 1s ease backwards; }
html.srv-motion .tec-hero-panel.srv-in .tec-panel-title { animation: srvRise 1.1s var(--ease-premium) 200ms backwards; }
html.srv-motion .tec-hero-panel.srv-in::after           { animation: tecScan var(--tec-scan, 1800ms) linear var(--tec-scan-delay, 450ms) backwards; }
html.srv-motion .tec-hero-panel.srv-in .tec-checks li   { animation: srvReveal 0.9s var(--ease-premium) var(--tec-d, 0ms) backwards; }
html.srv-motion .tec-hero-panel.srv-in .tec-checks li::after { animation: srvWipe 0.7s ease calc(var(--tec-d, 0ms) + 350ms) backwards; }

/* ── 2 · Tesis: la frase se enfoca palabra a palabra con el scroll ── */
html.srv-motion .tec-thesis:not(.srv-in) h2 { opacity: 0; }
html.srv-motion .tec-thesis.srv-in h2 { animation: srvRise 1.1s var(--ease-premium) backwards; }
html.srv-motion .tec-thesis-statement.is-split .tec-fw {
    color: #D2D2D2;
    transition: color 0.7s ease;
}
html.srv-motion .tec-thesis-statement.is-split .tec-fw.is-on { color: var(--c-ink); }
html.srv-motion .tec-thesis-body:not(.srv-in)::before { transform: scaleX(0); }
html.srv-motion .tec-thesis-body:not(.srv-in) > * { opacity: 0; }
html.srv-motion .tec-thesis-body.srv-in::before { animation: srvGrow 1.5s var(--ease-premium) backwards; }
html.srv-motion .tec-thesis-body.srv-in > * { animation: srvRise 1.2s var(--ease-premium) calc(450ms + var(--i, 0) * 220ms) backwards; }

/* ── 3 · Niveles: escalera + el medidor se llena ── */
/* (.srv-in va en cada tarjeta: en PC entran juntas en cascada, en móvil una a una) */
html.srv-motion .tec-level-card:not(.srv-in) { opacity: 0; }
html.srv-motion .tec-level-card:not(.srv-in)::after { clip-path: inset(0 100% 0 0); }
html.srv-motion .tec-level-card.srv-in { animation: srvStep 1.3s var(--ease-premium) calc(var(--i, 0) * 280ms) backwards; }
html.srv-motion .tec-level-card.srv-in::after { animation: srvWipe 1.1s cubic-bezier(0.65, 0, 0.35, 1) calc(var(--i, 0) * 280ms + 700ms) backwards; }

/* ── 4 · Qué analiza: rastreo de la cuadrícula ── */
/* La línea solo recorre la cuadrícula en PC; en móvil cada tarjeta se revela al llegar a ella */
html.srv-motion .tec-analysis-card:not(.srv-in) { opacity: 0; }
html.srv-motion .tec-analysis-card:not(.srv-in)::before { transform: scaleX(0); }
html.srv-motion .tec-analysis-grid.srv-in::after { animation: tecScan var(--tec-scan, 2600ms) linear var(--tec-scan-delay, 200ms) backwards; }
html.srv-motion .tec-analysis-card.srv-in { animation: srvReveal 1.1s var(--ease-premium) var(--tec-d, 0ms) backwards; }
html.srv-motion .tec-analysis-card.srv-in::before { animation: srvGrow 0.9s var(--ease-premium) calc(var(--tec-d, 0ms) + 550ms) backwards; }

/* Cita: las comillas aparecen y el texto sube línea a línea */
html.srv-motion .tec-quote:not(.srv-in)::before { opacity: 0; }
html.srv-motion .tec-quote:not(.srv-in) p:not(.is-split) { opacity: 0; }
html.srv-motion .tec-quote.srv-in::before { animation: srvPop 1s var(--ease-premium) backwards; }
html.srv-motion .tec-quote p { --srv-base: 450ms; }

/* ── 5 · Proyectos: el cuadrito aparece, el icono se dibuja y entra el texto ── */
html.srv-motion .tec-project-card:not(.srv-in),
html.srv-motion .tec-project-card:not(.srv-in)::before,
html.srv-motion .tec-project-card:not(.srv-in) > * { opacity: 0; }
html.srv-motion .tec-project-card:not(.srv-in)::after { clip-path: inset(0 100% 0 0); }
html.srv-motion .tec-project-card.srv-in         { animation: srvFade 0.9s ease calc(var(--i, 0) * 240ms) backwards; }
html.srv-motion .tec-project-card.srv-in::before { animation: srvPop 0.9s var(--ease-premium) calc(var(--i, 0) * 240ms + 200ms) backwards; }
html.srv-motion .tec-project-card.srv-in::after  { animation: srvWipe 1s cubic-bezier(0.65, 0, 0.35, 1) calc(var(--i, 0) * 240ms + 550ms) backwards; }
html.srv-motion .tec-project-card.srv-in > h3    { animation: srvRise 1.1s var(--ease-premium) calc(var(--i, 0) * 240ms + 450ms) backwards; }
html.srv-motion .tec-project-card.srv-in > p     { animation: srvRise 1.1s var(--ease-premium) calc(var(--i, 0) * 240ms + 600ms) backwards; }

/* ── Interacción: ratón en PC / tarjeta del centro de la pantalla en móvil ── */
@media (hover: hover) {
    .tec-level-card:hover {
        border-color: rgba(40, 94, 168, 0.45);
        transform: translateY(-4px);
        box-shadow: 0 12px 32px rgba(17, 24, 39, 0.06);
    }
    .tec-level-card:hover::after { box-shadow: 0 0 10px rgba(40, 94, 168, 0.45); }
    .tec-analysis-card:hover { border-color: rgba(126, 179, 247, 0.32); }
    .tec-analysis-card:hover::after { opacity: 1; }
    .tec-project-card:hover {
        border-color: rgba(40, 94, 168, 0.35);
        transform: translateY(-3px);
        box-shadow: 0 12px 32px rgba(17, 24, 39, 0.05);
    }
    .tec-project-card:hover::before { background-color: var(--c-action); border-color: var(--c-action); }
    .tec-project-card:hover::after  { background-color: #ffffff; }
}
.tec-level-card.is-focus {
    border-color: rgba(40, 94, 168, 0.45);
    box-shadow: 0 12px 32px rgba(17, 24, 39, 0.06);
}
.tec-level-card.is-focus::after { box-shadow: 0 0 10px rgba(40, 94, 168, 0.45); }
.tec-analysis-card.is-focus { border-color: rgba(126, 179, 247, 0.32); }
.tec-analysis-card.is-focus::after { opacity: 1; }
.tec-project-card.is-focus { border-color: rgba(40, 94, 168, 0.35); }
.tec-project-card.is-focus::before { background-color: var(--c-action); border-color: var(--c-action); }
.tec-project-card.is-focus::after  { background-color: #ffffff; }

@media (prefers-reduced-motion: reduce) {
    .tec-level-card:hover,
    .tec-project-card:hover { transform: none; }
}
