/* ============================================================
   DUPAVI — Página «Consultor SEO internacional» (/consultor-seo-internacional/)
   Concepto: «un solo proyecto, muchos mercados». Lenguaje de red y
   expansión: globo de líneas, ruta con paradas, nodos que se conectan
   y líneas que convergen en una sola estrategia.
   Motivo de texto: lo que «no es» en gris, lo que «sí es» destacado.

   - Solo lo propio de esta página (prefijo .int-). La estructura,
     el acordeón, el enlace final y el motor de animaciones están en
     servicios-base.css (prefijo .srv-).
   - El globo y las líneas que convergen los añade assets/js/seo-internacional.js
     (son decoración: no forman parte del texto editable).
   ============================================================ */

:root {
    --int-ico-network:   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 x='16' y='16' width='6' height='6' rx='1'/%3E%3Crect x='2' y='16' width='6' height='6' rx='1'/%3E%3Crect x='9' y='2' width='6' height='6' rx='1'/%3E%3Cpath d='M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3'/%3E%3Cpath d='M12 12V8'/%3E%3C/svg%3E");
    --int-ico-languages: 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='m5 8 6 6'/%3E%3Cpath d='m4 14 6-6 2-3'/%3E%3Cpath d='M2 5h12'/%3E%3Cpath d='M7 2h1'/%3E%3Cpath d='m22 22-5-10-5 10'/%3E%3Cpath d='M14 18h6'/%3E%3C/svg%3E");
    --int-ico-share:     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='18' cy='5' r='3'/%3E%3Ccircle cx='6' cy='12' r='3'/%3E%3Ccircle cx='18' cy='19' r='3'/%3E%3Cpath d='m8.59 13.51 6.83 3.98'/%3E%3Cpath d='m15.41 6.51-6.82 3.98'/%3E%3C/svg%3E");
    --int-ico-growth:    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='M22 7 13.5 15.5 8.5 10.5 2 17'/%3E%3Cpath d='M16 7h6v6'/%3E%3C/svg%3E");
    --int-ico-signpost:  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='M12 3v3'/%3E%3Cpath d='M18.5 13h-13L2 9.5 5.5 6h13L22 9.5Z'/%3E%3Cpath d='M12 13v8'/%3E%3C/svg%3E");
    --int-ico-search:    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='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E");
}

/* Ritmo vertical dentro de las tarjetas */
.int-decision-card > * + *,
.int-scenario-card > * + * { margin-top: 0.85rem !important; }
.int-thesis-body > * { margin-top: 0 !important; }

/* «No es X» en gris, «es Y» destacado (lo parte el JS en dos frases) */
.int-no  { color: var(--int-no-color, #9AA1AD); }
.int-yes { color: inherit; }

/* ============================================================
   1 · HERO — globo de líneas + ruta de expansión
   ============================================================ */
.int-hero { overflow: hidden; }
.int-hero::after {                       /* brillo azul suave detrás del globo */
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(ellipse 50% 65% at 82% 50%, rgba(40, 94, 168, 0.22) 0%, transparent 70%);
}
.int-globe {                             /* posición y tamaño: los calcula el JS sobre la ruta */
    position: absolute;
    z-index: 0;
    height: auto;
    pointer-events: none;
}
.int-globe .g-line { fill: none; stroke: rgba(126, 179, 247, 0.22); stroke-width: 1; vector-effect: non-scaling-stroke; }
.int-globe .g-arc  { fill: none; stroke: rgba(126, 179, 247, 0.75); stroke-width: 1.3; vector-effect: non-scaling-stroke; }
.int-globe .g-halo { fill: rgba(126, 179, 247, 0.16); }
.int-globe .g-dot  { fill: #7EB3F7; }

.int-hero-cols.wp-block-columns {
    align-items: center !important;
    gap: clamp(2.5rem, 6vw, 6rem);
    margin: 0;
}
.int-hero-main.wp-block-column  { flex-basis: 60% !important; }
.int-hero-aside.wp-block-column { flex-basis: 40% !important; }

.int-hero h1 {
    font-size: clamp(2.1rem, 3.5vw, 3.1rem);
    line-height: 1.08;
    letter-spacing: -0.025em;
    margin-bottom: 1.75rem;
    max-width: 24ch;
}
.int-hero .int-hero-lead {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    max-width: 52ch;
}
.int-hero .int-hero-lead2 {
    color: rgba(255,255,255,0.85);
    font-size: 1.05rem;
    max-width: 56ch;
}
.int-hero .int-hero-body {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.6);
    max-width: 56ch;
}
.int-hero .wp-block-buttons { margin: 2.25rem 0 0; }

/* Ruta de expansión: una línea que conecta 3 paradas.
   Fondo oscuro muy difuminado detrás para que el globo nunca moleste al leer. */
.int-route-box {
    position: relative;
    isolation: isolate;
}
.int-route-box::before {
    content: "";
    position: absolute;
    inset: -3rem -3.5rem;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(closest-side, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.75) 55%, rgba(17, 24, 39, 0));
}
.int-route-box > * { margin-top: 0 !important; }
.int-route-box .int-route-title {
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 1.75rem;
}
.int-route {
    position: relative;
    list-style: none;
    margin: 0;
    padding: 0;
}
.int-route::before {                     /* la ruta */
    content: "";
    position: absolute;
    left: 11px;
    top: 14px;
    bottom: 14px;
    width: 1px;
    background: linear-gradient(to bottom, rgba(126,179,247,0.7), rgba(126,179,247,0.2));
    transform-origin: top center;
}
.int-route li {
    position: relative;
    padding: 0 0 0 2.75rem;
    margin: 0 0 1.75rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.66);
}
.int-route li:last-child { margin-bottom: 0; }
.int-route li strong {
    display: block;
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 0.2rem;
}
.int-route li::before {                  /* parada */
    content: "";
    position: absolute;
    left: 0;
    top: 0.15rem;
    width: 23px;
    height: 23px;
    border-radius: 50%;
    border: 1px solid rgba(126,179,247,0.55);
    background-color: var(--c-dark);
    box-shadow: 0 0 0 5px rgba(40,94,168,0.14);
}
.int-route li::after {                   /* punto central */
    content: "";
    position: absolute;
    left: 8px;
    top: calc(0.15rem + 8px);
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--srv-blue-soft);
}

/* ============================================================
   2 · TESIS — «Qué es realmente el SEO internacional»
   Limpio (nota del Word): la primera frase manda.
   ============================================================ */
.int-thesis-cols.wp-block-columns {
    align-items: flex-end !important;
    gap: clamp(2.5rem, 6vw, 6rem);
    margin: 0;
}
.int-thesis-main.wp-block-column { flex-basis: 58% !important; }
.int-thesis-body.wp-block-column { flex-basis: 42% !important; }
.int-thesis h2 { margin-bottom: 2rem; }
.int-thesis .int-thesis-statement {
    font-size: clamp(1.8rem, 3.4vw, 2.85rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--c-ink);
    max-width: 24ch;
    margin: 0;
    text-wrap: balance;
}
.int-thesis-body p {
    max-width: 52ch;
    padding-left: 1.5rem;
    border-left: 1px solid var(--c-border);
    margin-bottom: 1.25rem;
}
.int-thesis-body p:last-child { margin-bottom: 0; }

/* ============================================================
   3 · DECISIONES — nodos que se conectan
   ============================================================ */
.int-decisions-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}
.int-decisions-grid > * { margin: 0 !important; }
.int-decision-card {
    --int-node: 46px;
    position: relative;
    background-color: var(--c-white);
    border: 1px solid var(--c-border);
    border-radius: var(--srv-radius);
    padding: calc(2rem + var(--int-node) + 1.25rem) 2rem 1.9rem;
    transition: border-color 0.4s ease, box-shadow 0.5s ease;
}
.int-decision-card::before {             /* nodo */
    content: "";
    position: absolute;
    top: 2rem;
    left: 2rem;
    width: var(--int-node);
    height: var(--int-node);
    border-radius: 50%;
    border: 1px solid rgba(40, 94, 168, 0.25);
    background-color: rgba(40, 94, 168, 0.05);
    transition: background-color 0.35s ease, border-color 0.35s ease;
}
.int-decision-card::after {              /* icono */
    content: "";
    position: absolute;
    top: calc(2rem + (var(--int-node) - 22px) / 2);
    left: calc(2rem + (var(--int-node) - 22px) / 2);
    width: 22px;
    height: 22px;
    background-color: var(--c-action);
    -webkit-mask: var(--int-ico) center / contain no-repeat;
            mask: var(--int-ico) center / contain no-repeat;
    transition: background-color 0.35s ease;
}
.int-icon-network   { --int-ico: var(--int-ico-network); }
.int-icon-languages { --int-ico: var(--int-ico-languages); }
.int-icon-share     { --int-ico: var(--int-ico-share); }
.int-icon-growth    { --int-ico: var(--int-ico-growth); }
.int-icon-signpost  { --int-ico: var(--int-ico-signpost); }
.int-icon-search    { --int-ico: var(--int-ico-search); }
.int-decision-card h3 { font-size: 1.12rem; margin-bottom: 0; }
.int-decision-card p  { font-size: 0.93rem; max-width: none; }

/* ============================================================
   CITA — banda oscura: varias versiones convergen en una estrategia
   ============================================================ */
.int-quote-scene { overflow: hidden; }
.int-quote.wp-block-quote {
    position: relative;
    max-width: 940px;
    margin: 0 auto !important;
    padding: 0;
    border: none;
    text-align: center;
}
.int-converge {
    display: block;
    width: 100%;
    height: 120px;
    margin: 0 auto 1.25rem;
    overflow: visible;
}
.int-converge path {
    fill: none;
    stroke: rgba(126, 179, 247, 0.45);
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
}
.int-converge-node {
    display: block;
    width: 12px;
    height: 12px;
    margin: calc(-1.25rem - 6px) auto 2rem;      /* centrado en el punto donde convergen las líneas */
    border-radius: 50%;
    background-color: #7EB3F7;
    box-shadow: 0 0 0 6px rgba(126, 179, 247, 0.16), 0 0 22px rgba(126, 179, 247, 0.45);
}
.int-quote.wp-block-quote p {
    max-width: none;
    margin: 0 auto;
    color: #ffffff;
    font-size: clamp(1.4rem, 2.6vw, 2.05rem);
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.01em;
    text-wrap: balance;
}
.int-quote p .int-no { --int-no-color: rgba(255, 255, 255, 0.5); }

/* ============================================================
   4 · ESCENARIOS — mercados numerados que se incorporan
   ============================================================ */
.int-scenarios-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    counter-reset: int-esc;
}
.int-scenarios-grid > * { margin: 0 !important; }
.int-scenario-card {
    position: relative;
    counter-increment: int-esc;
    background-color: var(--c-bg);
    border-left: 2px solid rgba(40, 94, 168, 0.22);
    border-radius: 0 var(--srv-radius) var(--srv-radius) 0;
    padding: 2.25rem 5.5rem 2rem 2rem;
    transition: border-color 0.4s ease, background-color 0.4s ease, transform 0.5s var(--ease-premium);
}
.int-scenario-card::before {             /* número del escenario */
    content: counter(int-esc, decimal-leading-zero);
    position: absolute;
    top: 1.6rem;
    right: 1.75rem;
    font-family: var(--srv-mono);
    font-size: 2.4rem;
    font-weight: 600;
    line-height: 1;
    color: rgba(40, 94, 168, 0.16);
    transition: color 0.4s ease;
}
.int-scenario-card h3 { font-size: 1.12rem; margin-bottom: 0; }
.int-scenario-card p  { font-size: 0.93rem; max-width: none; }

/* ============================================================
   MÓVIL Y TABLET
   ============================================================ */
@media (max-width: 781px) {
    .int-hero-main.wp-block-column,
    .int-hero-aside.wp-block-column,
    .int-thesis-main.wp-block-column,
    .int-thesis-body.wp-block-column { flex-basis: 100% !important; }
    .int-hero h1 { max-width: none; }
    .int-globe { opacity: 0.7; }
    /* En pantalla pequeña el globo queda más cerca del texto: solo sus líneas */
    .int-globe .g-arc,
    .int-globe .g-halo,
    .int-globe .g-dot { display: none; }
    .int-decisions-grid,
    .int-scenarios-grid { grid-template-columns: 1fr; }
    .int-decision-card { padding: calc(1.6rem + var(--int-node) + 1.1rem) 1.5rem 1.6rem; }
    .int-decision-card::before { top: 1.6rem; left: 1.5rem; }
    .int-decision-card::after  { top: calc(1.6rem + (var(--int-node) - 22px) / 2); left: calc(1.5rem + (var(--int-node) - 22px) / 2); }
    .int-scenario-card { padding: 2rem 4.5rem 1.75rem 1.5rem; }
    .int-scenario-card::before { font-size: 2rem; right: 1.25rem; }
    .int-converge { height: 80px; }
}

/* ============================================================
   ANIMACIONES PROPIAS — «un solo proyecto, muchos mercados»
   Usan el motor común (servicios-base.css): html.srv-motion, .srv-in,
   fotogramas srv* y fill «backwards».
   ============================================================ */
@keyframes intDraw   { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes intWipe   { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 -2% 0 0); } }
@keyframes intGrowY  { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes intSlide  { from { opacity: 0; transform: translateX(56px); } to { opacity: 1; transform: none; } }
@keyframes intPing   {
    0%   { box-shadow: 0 0 0 0 rgba(40, 94, 168, 0.35); }
    100% { box-shadow: 0 0 0 16px rgba(40, 94, 168, 0); }
}

/* ── 1 · Hero: el globo se dibuja, el H1 se despliega línea a línea ── */
html.srv-motion .int-globe .g-line,
html.srv-motion .int-globe .g-arc {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: intDraw var(--int-dur, 2.2s) var(--ease-premium) var(--int-d, 0ms) forwards;
}
html.srv-motion .int-globe .g-dot,
html.srv-motion .int-globe .g-halo {
    transform-box: fill-box;
    transform-origin: center;
    animation: srvPop 0.9s var(--ease-premium) var(--int-d, 0ms) backwards;
}
html.srv-motion .int-hero:not(.srv-in) h1,
html.srv-motion .int-hero:not(.srv-in) .int-hero-lead,
html.srv-motion .int-hero:not(.srv-in) .int-hero-lead2,
html.srv-motion .int-hero:not(.srv-in) .int-hero-body,
html.srv-motion .int-hero:not(.srv-in) .wp-block-buttons { opacity: 0; }
html.srv-motion .int-hero h1 .srv-line-in {
    animation: intWipe 1.4s var(--ease-premium) calc(250ms + var(--i, 0) * 220ms) backwards;
}
html.srv-motion .int-hero.srv-in .int-hero-lead  { animation: srvRise 1.3s var(--ease-premium)  800ms backwards; }
html.srv-motion .int-hero.srv-in .int-hero-lead2 { animation: srvRise 1.3s var(--ease-premium)  950ms backwards; }
html.srv-motion .int-hero.srv-in .int-hero-body  { animation: srvRise 1.3s var(--ease-premium) 1100ms backwards; }
html.srv-motion .int-hero.srv-in .wp-block-buttons { animation: srvRise 1.3s var(--ease-premium) 1250ms backwards; }

/* Ruta: la línea baja y cada parada se enciende cuando llega */
html.srv-motion .int-route-box:not(.srv-in) .int-route-title,
html.srv-motion .int-route-box:not(.srv-in) .int-route li,
html.srv-motion .int-route-box:not(.srv-in) .int-route li::before,
html.srv-motion .int-route-box:not(.srv-in) .int-route li::after { opacity: 0; }
html.srv-motion .int-route-box:not(.srv-in) .int-route::before { transform: scaleY(0); }
html.srv-motion .int-route-box.srv-in .int-route-title { animation: srvRise 1.1s var(--ease-premium) backwards; }
html.srv-motion .int-route-box.srv-in .int-route::before { animation: intGrowY var(--int-route, 1800ms) linear 400ms backwards; }
html.srv-motion .int-route-box.srv-in .int-route li::before,
html.srv-motion .int-route-box.srv-in .int-route li::after { animation: srvPop 0.8s var(--ease-premium) var(--int-d, 0ms) backwards; }
html.srv-motion .int-route-box.srv-in .int-route li { animation: srvRise 1.1s var(--ease-premium) calc(var(--int-d, 0ms) + 150ms) backwards; }

/* ── 2 · Tesis: lo que «no es» aparece primero; lo que «es» se despliega ── */
html.srv-motion .int-thesis:not(.srv-in) h2,
html.srv-motion .int-thesis:not(.srv-in) .int-thesis-statement,
html.srv-motion .int-thesis:not(.srv-in) .int-thesis-body p { opacity: 0; }
html.srv-motion .int-thesis.srv-in h2 { animation: srvRise 1.1s var(--ease-premium) backwards; }
html.srv-motion .int-thesis.srv-in .int-thesis-statement { animation: srvFade 0.6s ease 200ms backwards; }
html.srv-motion .int-thesis.srv-in .int-thesis-statement .int-no  { display: inline; animation: srvFade 1.2s ease 300ms backwards; }
html.srv-motion .int-thesis.srv-in .int-thesis-statement .int-yes { display: inline; animation: srvFade 1.4s ease 1200ms backwards; }
html.srv-motion .int-thesis.srv-in .int-thesis-body p { animation: srvRise 1.2s var(--ease-premium) calc(1500ms + var(--i, 0) * 220ms) backwards; }

/* ── 3 · Decisiones: la tarjeta sube, el nodo aparece y hace «ping» ── */
html.srv-motion .int-decision-card:not(.srv-in),
html.srv-motion .int-decision-card:not(.srv-in)::before,
html.srv-motion .int-decision-card:not(.srv-in)::after { opacity: 0; }
html.srv-motion .int-decision-card.srv-in         { animation: srvRise 1.2s var(--ease-premium) calc(var(--i, 0) * 170ms) backwards; }
html.srv-motion .int-decision-card.srv-in::before { animation: srvPop 0.9s var(--ease-premium) calc(var(--i, 0) * 170ms + 300ms) backwards, intPing 1.4s ease-out calc(var(--i, 0) * 170ms + 900ms) 1; }
html.srv-motion .int-decision-card.srv-in::after  { animation: srvFade 0.8s ease calc(var(--i, 0) * 170ms + 550ms) backwards; }

/* ── Cita: las líneas convergen en un punto y aparece la frase ── */
html.srv-motion .int-converge path {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
}
html.srv-motion .int-quote.srv-in .int-converge path { animation: intDraw 1.6s var(--ease-premium) calc(var(--i, 0) * 110ms) forwards; }
html.srv-motion .int-quote:not(.srv-in) .int-converge-node,
html.srv-motion .int-quote:not(.srv-in) p { opacity: 0; }
html.srv-motion .int-quote.srv-in .int-converge-node { animation: srvPop 0.9s var(--ease-premium) 1500ms backwards; }
html.srv-motion .int-quote.srv-in p { animation: srvFade 0.6s ease 1700ms backwards; }
html.srv-motion .int-quote.srv-in p .int-no  { display: inline; animation: srvFade 1.2s ease 1700ms backwards; }
html.srv-motion .int-quote.srv-in p .int-yes { display: inline; animation: srvFade 1.4s ease 2500ms backwards; }

/* ── 4 · Escenarios: entran desde la derecha, como mercados nuevos ── */
html.srv-motion .int-scenario-card:not(.srv-in) { opacity: 0; }
html.srv-motion .int-scenario-card:not(.srv-in)::before { opacity: 0; }
html.srv-motion .int-scenario-card.srv-in { animation: intSlide 1.3s var(--ease-premium) calc(var(--i, 0) * 220ms) backwards; }
html.srv-motion .int-scenario-card.srv-in::before { animation: srvFade 1.2s ease calc(var(--i, 0) * 220ms + 700ms) backwards; }

/* ── Interacción: ratón en PC / tarjeta del centro de la pantalla en móvil ── */
@media (hover: hover) {
    .int-decision-card:hover { border-color: rgba(40, 94, 168, 0.35); box-shadow: 0 12px 32px rgba(17, 24, 39, 0.05); }
    .int-decision-card:hover::before { background-color: var(--c-action); border-color: var(--c-action); animation: intPing 1.2s ease-out; }
    /* con animaciones activas, el «ping» al pasar el ratón tiene que ganar a la entrada */
    html.srv-motion .int-decision-card.srv-in:hover::before { animation: intPing 1.2s ease-out; }
    .int-decision-card:hover::after  { background-color: #ffffff; }
    .int-scenario-card:hover { border-left-color: var(--c-action); background-color: var(--c-white); transform: translateX(4px); }
    .int-scenario-card:hover::before { color: rgba(40, 94, 168, 0.5); }
}
.int-decision-card.is-focus { border-color: rgba(40, 94, 168, 0.35); }
.int-decision-card.is-focus::before { background-color: var(--c-action); border-color: var(--c-action); }
.int-decision-card.is-focus::after  { background-color: #ffffff; }
.int-scenario-card.is-focus { border-left-color: var(--c-action); background-color: var(--c-white); }
.int-scenario-card.is-focus::before { color: rgba(40, 94, 168, 0.5); }

@media (prefers-reduced-motion: reduce) {
    .int-scenario-card:hover { transform: none; }
    .int-decision-card:hover::before { animation: none; }
}
