/*
 * Alevi Rodriguez — portafolio para reclutadores.
 * Paleta: tinta #17142E, fondo #F5F6FA, violeta #511CBD, lavanda #ECE6FB, verde #10B981.
 * Tipografía: Schibsted Grotesk (variable, servida desde el tema).
 */

@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url("../fonts/schibsted-grotesk-latin-wght-normal.woff2") format("woff2-variations"), url("../fonts/schibsted-grotesk-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ar-ink: #17142E;
  --ar-ink-soft: #3D3A57;
  --ar-muted: #55526E;
  --ar-line: #DCDCE8;
  --ar-background: #F5F6FA;
  --ar-surface: #FFFFFF;
  --ar-accent: #511CBD;
  --ar-accent-dark: #3B1290;
  --ar-lavender: #ECE6FB;
  --ar-green: #10B981;
  --ar-green-dark: #047857;
  --ar-font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ar-accent-text: #511CBD;
  --ar-green-text: #047857;
  --ar-contact: #17142E;
  --ar-dot: #C9C5E0;
  color-scheme: light;
}

/* Modo noche: lo elige la persona (botón luna/sol) o sigue al sistema la primera vez */
html[data-theme="dark"] {
  --ar-ink: #F2F1FA;
  --ar-ink-soft: #C9C6E0;
  --ar-muted: #9C98BC;
  --ar-line: #2F2B52;
  --ar-background: #121026;
  --ar-surface: #1C1936;
  --ar-lavender: #1A1733;
  --ar-accent-text: #B79CFF;
  --ar-green-text: #34D399;
  --ar-contact: #0B0A19;
  --ar-dot: #3A3563;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ar-background); color: var(--ar-ink); transition: background-color .3s ease, color .3s ease; font-family: var(--ar-font); line-height: 1.5; }
img, svg { max-width: 100%; }
a { color: var(--ar-accent-text); }
a:hover { color: var(--ar-accent-text); opacity: .85; }
:focus-visible { outline: 3px solid var(--ar-accent-text); outline-offset: 3px; border-radius: 6px; }
[id] { scroll-margin-top: 96px; }

.ar-site { overflow-x: clip; min-width: 0; }
.ar-container { max-width: 1200px; margin-left: auto; margin-right: auto; padding-left: 32px; padding-right: 32px; }
.ar-icon { flex: none; }

.ar-skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ar-ink); color: #FFFFFF; padding: 10px 16px; border-radius: 8px; text-decoration: none; }
.ar-skip-link:focus { top: 16px; color: #FFFFFF; }

/* Botones */
.ar-button { display: inline-flex; align-items: center; gap: 10px; padding: 15px 22px; border-radius: 12px; border: 1px solid transparent; font-weight: 600; font-size: 16px; line-height: 1.2; text-decoration: none; transition: transform .15s ease, background-color .15s ease; }
.ar-button:hover { transform: translateY(-2px); }
.ar-button--accent { background: var(--ar-accent); color: #FFFFFF; }
.ar-button--accent:hover { background: var(--ar-accent-dark); color: #FFFFFF; }
.ar-button--outline { background: var(--ar-surface); color: var(--ar-ink); border-color: var(--ar-line); }
.ar-button--outline:hover { color: var(--ar-ink); }
.ar-button--light { background: #FFFFFF; color: #17142E; font-weight: 700; font-size: 17px; }
.ar-button--light:hover { color: #17142E; }
.ar-button--ghost { color: #FFFFFF; border-color: #4A4570; }
.ar-button--ghost:hover { color: #FFFFFF; border-color: #8C86B5; }
.ar-button--small { padding: 11px 18px; border-radius: 10px; font-size: 15px; }

/* Encabezado: fijo arriba, del mismo color que el fondo */
.ar-headbar { position: sticky; top: 0; z-index: 60; background: var(--ar-background); border-bottom: 1px solid transparent; transition: border-color .2s ease, background-color .3s ease; }
.ar-headbar.is-scrolled { border-bottom-color: var(--ar-line); }
.admin-bar .ar-headbar { top: 32px; }
.ar-header { max-width: 1200px; margin: 0 auto; padding: 18px 32px; display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.ar-header__brand { margin-right: auto; font-weight: 700; font-size: 18px; color: var(--ar-ink); text-decoration: none; }
.ar-header__brand:hover { color: var(--ar-ink); opacity: 1; }
.ar-header__nav { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center; font-size: 15px; font-weight: 500; }
.ar-header__link { color: var(--ar-ink); text-decoration: none; }
.ar-header__link:hover { color: var(--ar-accent-text); opacity: 1; }
.ar-header__language { display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid var(--ar-line); background: var(--ar-surface); text-decoration: none; font-size: 13px; font-weight: 700; }
.ar-header__language span { padding: 5px 10px; border-radius: 999px; color: var(--ar-muted); transition: background-color .15s ease, color .15s ease; }
.ar-header__language span[aria-current] { background: var(--ar-ink); color: var(--ar-background); }
.ar-header__language:hover span:not([aria-current]) { color: var(--ar-accent-text); }
.ar-icon-button { width: 42px; height: 42px; padding: 0; border-radius: 12px; border: 1px solid var(--ar-line); background: var(--ar-surface); color: var(--ar-ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: border-color .15s ease, transform .15s ease; }
.ar-icon-button:hover { border-color: var(--ar-accent-text); }
.ar-icon-button > span { display: inline-flex; }
.ar-icon-button__sun, html[data-theme="dark"] .ar-icon-button__moon { display: none !important; }
html[data-theme="dark"] .ar-icon-button__sun { display: inline-flex !important; }
.ar-header__burger, .ar-header__burger-close { display: none !important; }

/* Hero */
.ar-hero { padding-top: 56px; padding-bottom: 24px; display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-end; }
.ar-hero__text { flex: 999 1 560px; min-width: 0; }
.ar-hero__eyebrow { margin: 0 0 20px; font-size: 17px; color: var(--ar-muted); }
.ar-hero__title { margin: 0; font-size: clamp(40px, 6vw, 76px); line-height: 1.02; font-weight: 800; letter-spacing: -0.035em; max-width: 17ch; text-wrap: balance; }
.ar-hero__intro { margin: 28px 0 0; font-size: 19px; line-height: 1.55; color: var(--ar-ink-soft); max-width: 58ch; }
.ar-hero__actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.ar-status { display: inline-flex; align-items: center; gap: 10px; padding: 0 8px; font-size: 15px; font-weight: 500; color: var(--ar-green-text); }
.ar-status__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ar-green); }
.ar-hero__photo { margin: 0; flex: 1 1 340px; max-width: 440px; }
.ar-hero__image { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; border-radius: 32px; filter: grayscale(1) contrast(1.05); }
.ar-hero__caption { margin-top: 14px; font-size: 14px; line-height: 1.5; color: var(--ar-muted); }

/* Etapas */
.ar-process { padding-top: 40px; padding-bottom: 8px; }
.ar-process__track { position: relative; padding-top: 34px; }
.ar-process__rail { position: absolute; left: 8px; right: 8px; top: 7px; height: 2px; background: var(--ar-line); }
.ar-process__rail--drawn { background: #C4B5FD; }
.ar-process__progress { position: absolute; left: 8px; right: 8px; top: 6px; height: 4px; border-radius: 2px; background: var(--ar-accent); box-shadow: 0 0 10px rgba(124, 77, 255, .55); }
.ar-process__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 24px; }
.ar-process__step { position: relative; }
.ar-process__node { position: absolute; top: -34px; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--ar-surface); border: 3px solid var(--ar-accent); }
.ar-process__name { margin: 0; font-size: 17px; font-weight: 700; }
.ar-process__text { margin: 6px 0 0; font-size: 15px; line-height: 1.5; color: var(--ar-muted); }

/* Títulos de sección */
.ar-section-title { margin: 0; font-size: 44px; line-height: 1.1; font-weight: 800; letter-spacing: -0.03em; }
.ar-section-intro { margin: 14px 0 0; font-size: 18px; line-height: 1.55; color: var(--ar-muted); max-width: 60ch; }

/* Tarjetas */
.ar-card { background: var(--ar-surface); transition: transform .25s ease, box-shadow .25s ease; }
.ar-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -18px rgba(23, 20, 46, .35); }
.ar-tag { margin: 0; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ar-muted); }
.ar-tag__dot { width: 8px; height: 8px; border-radius: 50%; background: #A8A5BD; }
.ar-tag--live { color: var(--ar-green-text); }
.ar-tag--live .ar-tag__dot { background: var(--ar-green); }

/* Proyectos */
.ar-work { padding-top: 104px; padding-bottom: 88px; }
.ar-work__cases { margin-top: 44px; display: flex; flex-direction: column; gap: 24px; }
.ar-case { border-radius: 24px; padding: 40px; display: flex; flex-wrap: wrap; gap: 32px 64px; }
.ar-case__body { flex: 1.4 1 420px; min-width: 0; }
.ar-case__title { margin: 12px 0 0; font-size: 32px; line-height: 1.12; font-weight: 800; letter-spacing: -0.02em; }
.ar-case__summary { margin: 14px 0 0; font-size: 17px; line-height: 1.6; color: var(--ar-ink-soft); max-width: 60ch; }
.ar-case__results { margin: 22px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.ar-case__results li { display: flex; gap: 12px; font-size: 16px; line-height: 1.5; }
.ar-case__results .ar-icon { color: var(--ar-accent-text); margin-top: 2px; }
.ar-case__stack { margin: 24px 0 0; font-size: 15px; font-weight: 600; color: var(--ar-muted); }
.ar-case__visual { flex: 1 1 340px; min-width: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.ar-work__more-title { margin: 72px 0 0; font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.ar-work__more { margin-top: 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 20px; }
.ar-project { padding: 28px; border-radius: 20px; border: 1px solid var(--ar-line); display: flex; flex-direction: column; gap: 10px; }
.ar-project__title { margin: 0; font-size: 20px; line-height: 1.25; font-weight: 700; }
.ar-project__summary { margin: 0; font-size: 16px; line-height: 1.55; color: var(--ar-ink-soft); }
.ar-project__stack { margin: auto 0 0; padding-top: 8px; font-size: 14px; font-weight: 600; color: var(--ar-muted); }

/* Carrusel de animaciones */
.ar-carousel { width: 100%; max-width: 560px; }
.ar-carousel__slide svg { display: block; width: 100%; height: auto; border-radius: 20px; }
.ar-carousel__dots { display: flex; justify-content: center; gap: 4px; margin-top: 6px; }
.ar-carousel__dot { width: 44px; height: 28px; padding: 0; border: 0; background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.ar-carousel__dot span { display: block; height: 6px; width: 14px; border-radius: 3px; background: var(--ar-dot); transition: width .25s ease, background-color .25s ease; }
.ar-carousel__dot[aria-pressed="true"] span { width: 28px; background: var(--ar-accent-text); }

/* Experiencia */
.ar-experience { padding-top: 88px; padding-bottom: 88px; display: flex; flex-wrap: wrap; gap: 40px 80px; }
.ar-experience__title { flex: 1 1 260px; }
.ar-experience__list { flex: 2 1 520px; min-width: 0; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ar-role { display: flex; flex-wrap: wrap; gap: 6px 32px; padding: 24px 0; border-top: 1px solid var(--ar-line); }
.ar-role__period { flex: 0 0 150px; margin: 0; font-size: 15px; font-weight: 600; color: var(--ar-muted); }
.ar-role__body { flex: 1 1 300px; min-width: 0; }
.ar-role__title { margin: 0; font-size: 21px; font-weight: 700; }
.ar-role__text { margin: 8px 0 0; font-size: 16px; line-height: 1.55; color: var(--ar-ink-soft); }

/* Tecnologías */
.ar-stack { background: var(--ar-lavender); padding: 88px 0; }
.ar-stack__groups { margin-top: 36px; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 32px; }
.ar-stack__name { margin: 0 0 12px; font-size: 16px; font-weight: 700; color: var(--ar-accent-text); }
.ar-stack__items { margin: 0; font-size: 18px; line-height: 1.6; }
.ar-stack__education { margin: 48px 0 0; font-size: 16px; line-height: 1.6; color: var(--ar-ink-soft); }

/* Crecimiento */
.ar-growth { padding-top: 88px; padding-bottom: 88px; }
.ar-growth__areas { margin-top: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 24px; }
.ar-area { border-radius: 24px; padding: 36px; display: flex; flex-direction: column; gap: 20px; }
.ar-area__title { margin: 0; font-size: 26px; line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; }
.ar-area__why { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ar-ink-soft); }
.ar-area__steps { display: flex; flex-direction: column; gap: 14px; }
.ar-area__step { margin: 0; display: flex; gap: 14px; align-items: flex-start; font-size: 15px; line-height: 1.55; color: var(--ar-ink-soft); }
.ar-area__step strong { color: var(--ar-ink); }
.ar-area__dot { flex: none; margin-top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--ar-green); }
.ar-area__dot--next { background: var(--ar-accent); }

/* Servicios */
.ar-services { padding-top: 24px; padding-bottom: 96px; display: flex; flex-wrap: wrap; gap: 40px 80px; align-items: flex-start; }
.ar-services__intro { flex: 1 1 340px; min-width: 0; }
.ar-services__button { margin-top: 28px; }
.ar-services__list { flex: 1.4 1 480px; min-width: 0; list-style: none; margin: 0; padding: 0; }
.ar-service { padding: 22px 0; border-top: 1px solid var(--ar-line); }
.ar-service:last-child { border-bottom: 1px solid var(--ar-line); }
.ar-service__name { margin: 0; font-size: 20px; line-height: 1.3; font-weight: 700; }
.ar-service__text { margin: 6px 0 0; font-size: 16px; line-height: 1.55; color: var(--ar-ink-soft); }

/* Contacto */
.ar-contact { background: var(--ar-contact); color: #FFFFFF; padding: 96px 0; }
.ar-contact__inner { display: flex; flex-wrap: wrap; gap: 40px 80px; align-items: flex-end; }
.ar-contact__text { flex: 999 1 520px; min-width: 0; }
.ar-contact__title { margin: 0; font-size: clamp(36px, 5vw, 60px); line-height: 1.05; font-weight: 800; letter-spacing: -0.035em; max-width: 16ch; text-wrap: balance; }
.ar-contact__intro { margin: 20px 0 0; font-size: 18px; line-height: 1.55; color: #C9C5E0; max-width: 52ch; }
.ar-contact__actions { flex: 1 1 300px; display: flex; flex-direction: column; gap: 12px; }
.ar-contact__social { display: flex; flex-wrap: wrap; gap: 8px 24px; padding-top: 8px; font-size: 16px; font-weight: 500; }
.ar-contact__social a { color: #FFFFFF; }
.ar-contact__social a:hover { color: #C9C5E0; }
.ar-contact__copyright { margin-top: 80px; margin-bottom: 0; font-size: 14px; color: #9A96B8; }
.ar-contact :focus-visible { outline-color: #FFFFFF; }

/* Volver arriba */
.ar-top { position: fixed; right: 24px; bottom: 24px; z-index: 50; width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--ar-accent); color: #FFFFFF; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 12px 28px -10px rgba(23, 20, 46, .55); animation: ar-pop .25s ease-out both; transition: transform .15s ease; }
.ar-top[hidden] { display: none; }
.ar-top:hover { transform: translateY(-3px); }

/* Páginas interiores */
.ar-page { padding: 24px 32px 88px; }
.ar-page__card { max-width: 860px; margin: 0 auto; background: var(--ar-surface); border-radius: 24px; padding: 48px; }
.ar-page__eyebrow { margin: 0 0 8px; font-size: 15px; font-weight: 600; color: var(--ar-muted); }
.ar-page__title { margin: 0 0 24px; font-size: clamp(32px, 4vw, 44px); line-height: 1.1; font-weight: 800; letter-spacing: -0.03em; }
.ar-page__text { margin: 0 0 24px; font-size: 17px; line-height: 1.6; color: var(--ar-ink-soft); }
.ar-content { font-size: 17px; line-height: 1.7; color: var(--ar-ink-soft); }
.ar-content h2, .ar-content h3 { color: var(--ar-ink); line-height: 1.2; }
.ar-content__image { width: 100%; height: auto; border-radius: 16px; }
.ar-list { display: flex; flex-direction: column; gap: 28px; }
.ar-list__title { margin: 0; font-size: 22px; }
.ar-list__title a { color: var(--ar-ink); text-decoration: none; }
.ar-list__date { font-size: 14px; color: var(--ar-muted); }
.ar-list__excerpt { margin: 8px 0 0; color: var(--ar-ink-soft); }
.ar-pagination { margin-top: 40px; }
.ar-footer { padding: 32px; text-align: center; font-size: 14px; color: var(--ar-muted); }

/* Animaciones */
@keyframes ar-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes ar-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes ar-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, .45); } 50% { box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); } }
@keyframes ar-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes ar-draw-down { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes ar-drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes ar-pop { from { opacity: 0; transform: translateY(12px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes ar-progress { 0% { transform: scaleX(0); opacity: 1; } 10% { transform: scaleX(0); } 25% { transform: scaleX(.2); } 40% { transform: scaleX(.4); } 55% { transform: scaleX(.6); } 70% { transform: scaleX(.8); } 85% { transform: scaleX(1); } 95% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
@keyframes ar-reach-0 { 0%, 3% { background: var(--ar-surface); transform: scale(1); } 4% { background: var(--ar-accent); transform: scale(1.35); } 8%, 95% { background: var(--ar-accent); transform: scale(1); } 100% { background: var(--ar-surface); } }
@keyframes ar-name-0 { 0%, 3% { color: var(--ar-ink); } 4%, 95% { color: var(--ar-accent-text); } 100% { color: var(--ar-ink); } }
@keyframes ar-reach-1 { 0%, 24% { background: var(--ar-surface); transform: scale(1); } 25% { background: var(--ar-accent); transform: scale(1.35); } 29%, 95% { background: var(--ar-accent); transform: scale(1); } 100% { background: var(--ar-surface); } }
@keyframes ar-name-1 { 0%, 24% { color: var(--ar-ink); } 25%, 95% { color: var(--ar-accent-text); } 100% { color: var(--ar-ink); } }
@keyframes ar-reach-2 { 0%, 39% { background: var(--ar-surface); transform: scale(1); } 40% { background: var(--ar-accent); transform: scale(1.35); } 44%, 95% { background: var(--ar-accent); transform: scale(1); } 100% { background: var(--ar-surface); } }
@keyframes ar-name-2 { 0%, 39% { color: var(--ar-ink); } 40%, 95% { color: var(--ar-accent-text); } 100% { color: var(--ar-ink); } }
@keyframes ar-reach-3 { 0%, 54% { background: var(--ar-surface); transform: scale(1); } 55% { background: var(--ar-accent); transform: scale(1.35); } 59%, 95% { background: var(--ar-accent); transform: scale(1); } 100% { background: var(--ar-surface); } }
@keyframes ar-name-3 { 0%, 54% { color: var(--ar-ink); } 55%, 95% { color: var(--ar-accent-text); } 100% { color: var(--ar-ink); } }
@keyframes ar-reach-4 { 0%, 69% { background: var(--ar-surface); transform: scale(1); } 70% { background: var(--ar-accent); transform: scale(1.35); } 74%, 95% { background: var(--ar-accent); transform: scale(1); } 100% { background: var(--ar-surface); } }
@keyframes ar-name-4 { 0%, 69% { color: var(--ar-ink); } 70%, 95% { color: var(--ar-accent-text); } 100% { color: var(--ar-ink); } }

.ar-in { animation: ar-rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.ar-line { transform-origin: left center; animation: ar-draw 1.6s cubic-bezier(.65, 0, .35, 1) 1s both; }
.ar-live { animation: ar-pulse 2.4s ease-in-out infinite; }
.ar-photo { animation: ar-float 6s ease-in-out infinite; }
.ar-progress { transform-origin: left center; animation: ar-progress 9s cubic-bezier(.65, 0, .35, 1) 2.8s infinite; }
.ar-process__step:nth-child(1) .ar-process__node { animation: ar-reach-0 9s ease-out 2.8s infinite; }
.ar-process__step:nth-child(1) .ar-process__name { animation: ar-name-0 9s ease-out 2.8s infinite; }
.ar-process__step:nth-child(2) .ar-process__node { animation: ar-reach-1 9s ease-out 2.8s infinite; }
.ar-process__step:nth-child(2) .ar-process__name { animation: ar-name-1 9s ease-out 2.8s infinite; }
.ar-process__step:nth-child(3) .ar-process__node { animation: ar-reach-2 9s ease-out 2.8s infinite; }
.ar-process__step:nth-child(3) .ar-process__name { animation: ar-name-2 9s ease-out 2.8s infinite; }
.ar-process__step:nth-child(4) .ar-process__node { animation: ar-reach-3 9s ease-out 2.8s infinite; }
.ar-process__step:nth-child(4) .ar-process__name { animation: ar-name-3 9s ease-out 2.8s infinite; }
.ar-process__step:nth-child(5) .ar-process__node { animation: ar-reach-4 9s ease-out 2.8s infinite; }
.ar-process__step:nth-child(5) .ar-process__name { animation: ar-name-4 9s ease-out 2.8s infinite; }

/* Aparición al hacer scroll: CSS si el navegador lo soporta; si no, site.js añade .is-visible */
.ar-js .ar-reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); }
.ar-js .ar-reveal.is-visible { opacity: 1; transform: none; }
.ar-js .ar-card.ar-reveal.is-visible:hover { transform: translateY(-4px); }
@supports (animation-timeline: view()) {
  .ar-js .ar-reveal { opacity: 1; transform: none; transition: none; animation: ar-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
  .ar-js .ar-card.ar-reveal:hover { transform: translateY(-4px); }
}

@media (max-width: 782px) {
  .admin-bar .ar-headbar { top: 46px; }
}

@media (max-width: 720px) {
  .ar-container, .ar-header { padding-left: 20px; padding-right: 20px; }
  .ar-header { padding-top: 12px; padding-bottom: 12px; gap: 10px; }
  .ar-header__burger { display: inline-flex !important; }
  .ar-header.is-open .ar-header__burger-open { display: none !important; }
  .ar-header.is-open .ar-header__burger-close { display: inline-flex !important; }
  .ar-header__nav { order: 10; width: 100%; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 4px 0 12px; }
  .ar-header.is-open .ar-header__nav { display: flex; animation: ar-drop .2s ease-out both; }
  .ar-header__link { padding: 14px 0; font-size: 19px; font-weight: 600; border-bottom: 1px solid var(--ar-line); }
  .ar-header__nav .ar-button { margin-top: 14px; justify-content: center; padding: 15px 22px; font-size: 16px; }
  .ar-header__language span { padding: 5px 8px; }
  .ar-hero { padding-top: 24px; gap: 32px; }
  .ar-hero__intro { font-size: 17px; }
  .ar-hero__photo { max-width: none; }
  .ar-section-title { font-size: 34px; }
  /* Etapas en vertical: la línea baja por la izquierda */
  .ar-process__track { padding-top: 0; padding-left: 32px; }
  .ar-process__rail { left: 7px; right: auto; top: 6px; bottom: 6px; width: 2px; height: auto; }
  .ar-process__rail--drawn { transform-origin: center top; animation-name: ar-draw-down; }
  .ar-process__progress { display: none; }
  .ar-process__list { grid-template-columns: 1fr; gap: 22px; }
  .ar-process__node { top: 3px; left: -32px; }
  .ar-work { padding-top: 72px; padding-bottom: 64px; }
  .ar-case { padding: 24px; }
  .ar-case__title { font-size: 26px; }
  .ar-case__body, .ar-case__visual { flex-basis: 100%; }
  .ar-experience, .ar-growth { padding-top: 64px; padding-bottom: 64px; }
  .ar-services { padding-bottom: 72px; }
  .ar-stack { padding: 64px 0; }
  .ar-area { padding: 24px; }
  .ar-contact { padding: 72px 0; }
  .ar-page { padding: 8px 16px 64px; }
  .ar-page__card { padding: 28px 22px; }
  .ar-top { right: 16px; bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .ar-js .ar-reveal { opacity: 1; transform: none; }
}
