:root {
  --bg: #000;
  --surface: rgba(255, 255, 255, 0.03);
  --border: rgba(255, 255, 255, 0.08);
  --text: #fff;
  --muted: #94a3b8;
  --text-muted: #94a3b8;
  --green: #22c55e;
  --green-soft: rgba(34, 197, 94, 0.14);
  --radius: 20px;
  --header-height: 97px; /* se ajusta con JS a la altura real de la barra */
  --anchor-offset: 140px;
  --maxw: 1100px;
  --accent-glow: #3b82f6;
  --accent-purple: #8b5cf6;
}
* { box-sizing: border-box; }
/* La web original no usa border-box: el contenedor mide 1100px + padding, igual que ella */
.container, .container * { box-sizing: content-box; }
html { scroll-behavior: smooth; }
/* Distancia entre el borde superior de la ventana y cada sección al navegar por el menú */
main > section[id] { scroll-margin-top: var(--anchor-offset); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: 'Inter', system-ui, sans-serif; line-height: 1.65; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; color: var(--muted); }

/* Fondo ambiental: orbes azul, violeta y celeste como la web original */
.ambient { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -1; overflow: hidden; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.35; animation: float 20s infinite ease-in-out; }
.o1 { top: -10%; left: -10%; width: 600px; height: 600px; background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%); animation-duration: 25s; }
.o2 { bottom: 20%; right: -5%; width: 500px; height: 500px; background: radial-gradient(circle, var(--accent-purple) 0%, transparent 70%); animation-delay: -5s; }
.o3 { bottom: -20%; left: 30%; width: 400px; height: 400px; background: radial-gradient(circle, #0ea5e9 0%, transparent 70%); animation-delay: -10s; }
@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(30px, -50px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.9); }
}

/* Buttons */
.btn {
  display: inline-block; border: 0; cursor: pointer; font: inherit; font-weight: 600;
  background: var(--green); color: #04130a; padding: 14px 32px; border-radius: 999px;
  transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(34, 197, 94, 0.3); }
.btn-small { padding: 8px 20px; font-size: 0.9rem; }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

/* Layout */
.section { width: min(calc(var(--maxw) - 48px), 100% - 48px); margin: 0 auto; }
.section { padding: 110px 0 0; }
.section > h2 { margin-bottom: 48px; }
.lead { font-size: 1.15rem; }

body { padding-top: 0; }

/* Encabezado de sección compartido (referencia: SERVICIOS) */
.section-eyebrow {
  display: flex; align-items: center; gap: 36px; width: 100%; margin: 0 0 32px;
  color: #0d8266; font-size: 13px; line-height: 1; font-weight: 750; letter-spacing: .22em; text-transform: uppercase;
}
.section-eyebrow::after { content: ""; flex: 1 1 0; min-width: 0; height: 1px; background: #229b7c; opacity: .95; }
@media (max-width: 700px) { .section-eyebrow { gap: 20px; } }

/* Título principal de sección compartido (Servicios, Cómo trabajo, Proyectos, Sobre mí, Contacto) */
main h2.section-title { font-size: 48px; font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; }
@media (max-width: 700px) { main h2.section-title { font-size: 34px; } }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 40px; transition: border-color .25s, transform .25s; }
.card:hover { border-color: rgba(34, 197, 94, 0.4); transform: translateY(-3px); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.service h3 { font-size: 1.5rem; margin-bottom: 20px; }
.service p + p { margin-top: 14px; }

/* Benefits */
.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; border-top: 1px solid var(--border); padding-top: 56px; }
.benefit h3 { font-size: 1.15rem; color: var(--green); margin-bottom: 10px; }
.benefit p { font-size: 0.95rem; }

/* Projects: filas horizontales con detalle desplegable */
#proyectos > h2 { margin-bottom: 48px; }
.proj-group + .proj-group { margin-top: 72px; }
.proj-group-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 20px; margin-bottom: 28px; }
.proj-group-head h3 { font-size: 1.6rem; }
.org-link { display: inline-flex; align-items: center; gap: 8px; padding: 10px 6px; margin: -10px -6px; color: inherit; text-decoration: none; transition: color .2s ease; } /* padding compensado con margen: área clicable ~44 px sin mover el diseño */
.org-link-icon { width: 16px; height: 16px; flex: none; color: #aeb8c4; transition: color .2s ease; }
.org-link:hover .org-link-icon, .org-link:focus-visible .org-link-icon { color: var(--green); }
.org-link:focus-visible { outline: 2px solid var(--green); outline-offset: 0; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { .org-link, .org-link-icon { transition: none; } }
.proj-group-head p { color: var(--green); }
.proj-org { display: inline-flex; align-items: center; gap: 12px; }
.nda-tag { position: relative; display: inline-block; padding: 2px 7px; border: 1px solid #42514d; border-radius: 4px; background: #15201d; color: #9db6aa; font-size: .72rem; font-weight: 600; letter-spacing: .08em; line-height: 1.4; cursor: help; }
.nda-tag:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.nda-tip {
  position: absolute; left: 0; bottom: calc(100% + 10px); z-index: 5; width: max-content; max-width: min(260px, 80vw);
  padding: 8px 12px; border: 1px solid #42514d; border-radius: 6px; background: #0b1213; color: #cfe0d8;
  font-size: .82rem; font-weight: 400; letter-spacing: 0; line-height: 1.45; text-transform: none; white-space: normal; text-align: left;
  opacity: 0; visibility: hidden; transform: translateY(4px); pointer-events: none; transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
}
.nda-tag:hover .nda-tip, .nda-tag:focus .nda-tip, .nda-tag:focus-within .nda-tip { opacity: 1; visibility: visible; transform: none; transition: opacity .2s ease, transform .2s ease, visibility 0s; }
/* en móvil el tooltip se ancla al grupo (borde izquierdo) para no salirse de la pantalla */
@media (max-width: 700px) { .proj-org { position: relative; } .nda-tag { position: static; } .nda-tip { max-width: min(260px, calc(100vw - 48px)); } }
@media (prefers-reduced-motion: reduce) { .nda-tip, .nda-tag:hover .nda-tip, .nda-tag:focus .nda-tip { transition: none; transform: none; } }
.proj-count { margin-left: auto; font-size: .85rem; color: var(--muted); }
.proj-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.proj-row { border-bottom: 1px solid rgba(255, 255, 255, 0.1); background-color: transparent; transition: background-color .2s ease; }
.proj-row:hover { background-color: #10191b; }
.proj-row.open { background-color: #0d1416; }
.proj-row.open:hover { background-color: #10191b; }
.proj-heading { margin: 0; font: inherit; }
.proj-toggle {
  display: grid; grid-template-columns: 44px minmax(0, 1.15fr) minmax(0, 1fr) 32px; align-items: center; column-gap: 32px;
  width: 100%; padding: 22px 16px; border: 0; background: transparent; color: inherit; font: inherit; text-align: left;
}
.proj-toggle:focus-visible { outline: 2px solid var(--green); outline-offset: -2px; }
.proj-num { font-size: .85rem; font-weight: 600; color: var(--green); }
.proj-title { font-size: 1.1rem; line-height: 1.35; font-weight: 600; color: #fff; }
.proj-desc { font-size: .95rem; line-height: 1.55; color: #aeb8c4; }
.proj-icon { position: relative; width: 20px; height: 20px; justify-self: end; }
.proj-icon::before, .proj-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; background: var(--green); transform: translate(-50%, -50%); transition: transform .3s ease; }
.proj-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.proj-toggle[aria-expanded="true"] .proj-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.proj-panel { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .35s ease, visibility 0s linear .35s; }
.proj-panel.open { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .35s ease, visibility 0s; }
.proj-panel-clip { overflow: hidden; min-height: 0; }
.proj-detail { display: grid; grid-template-columns: 44px minmax(0, 1.15fr) minmax(0, 1fr) 32px; column-gap: 32px; padding: 4px 16px 28px; }
.proj-detail > div:first-child { grid-column: 2; }
.proj-detail > div:last-child { grid-column: 3; }
.proj-detail h5 { margin: 0 0 8px; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.proj-detail p, .proj-detail li { font-size: .95rem; line-height: 1.6; color: #aeb8c4; }
.proj-detail ul { margin: 0; padding-left: 18px; }
@media (max-width: 900px) {
  .proj-toggle { grid-template-columns: 36px minmax(0, 1fr) 32px; column-gap: 16px; row-gap: 6px; padding: 20px 8px; min-height: 48px; }
  .proj-title { grid-column: 2; }
  .proj-desc { grid-column: 2; grid-row: 2; }
  .proj-icon { grid-column: 3; grid-row: 1; }
  .proj-detail { grid-template-columns: 36px minmax(0, 1fr) 32px; column-gap: 16px; row-gap: 18px; padding: 4px 8px 24px; }
  .proj-detail > div:first-child, .proj-detail > div:last-child { grid-column: 2; }
}
@media (max-width: 520px) { .proj-detail { grid-template-columns: minmax(0, 1fr); } .proj-detail > div:first-child, .proj-detail > div:last-child { grid-column: 1; } .proj-group-head { gap: 4px 12px; } .proj-count { margin-left: 0; flex-basis: 100%; } }
@media (prefers-reduced-motion: reduce) { .proj-row, .proj-panel, .proj-panel.open, .proj-icon::before, .proj-icon::after { transition: none; } }

/* About */
/* Sobre mí: --about-gap es la distancia final CTA → etiqueta (margen exterior + padding superior, sin acumular). En scroll natural se ve entera; al navegar por ancla el scroll-margin
   alinea el borde de la sección (sin ese margen) bajo la barra, así no asoma Proyectos.
   Llena el área bajo la barra (así no asoma Contacto) y crece si el contenido necesita más altura */
#sobre-mi.about { --about-gap: 144px; --about-pt: 80px; margin-top: calc(var(--about-gap) - var(--about-pt)); padding-top: var(--about-pt); padding-bottom: 56px; min-height: calc(100vh - var(--header-height)); min-height: calc(100svh - var(--header-height)); }
@media (min-width: 961px) and (max-height: 820px) { #sobre-mi.about { --about-pt: 40px; } } /* portátiles de poca altura: los indicadores siguen a la vista */
.about-grid { display: grid; grid-template-columns: 42fr 54fr; column-gap: 4%; align-items: start; }
.about-title { color: #fff; }
.about-title span { display: block; }
.about-title .about-accent { color: var(--green); }
.about-sub { margin-top: 28px; max-width: 30ch; font-size: 1.1rem; line-height: 1.6; color: #b8c0c9; }
.about-body p { font-size: 1.0625rem; line-height: 1.6; color: #b8c0c9; }
.about-body p + p { margin-top: 22px; }
.about-body .about-intro { color: #fff; font-size: 1.1875rem; }
.about-indicators { list-style: none; margin: 40px 0 0; padding: 28px 0 0; border-top: 1px solid rgba(255, 255, 255, 0.12); display: grid; grid-template-columns: repeat(3, 1fr); }
.about-indicators li { display: flex; gap: 18px; align-items: flex-start; padding: 0 40px; }
.about-indicators li:first-child { padding-left: 0; }
.about-indicators li + li { border-left: 1px solid rgba(255, 255, 255, 0.1); }
.about-ind-icon { width: 26px; height: 26px; flex: none; margin-top: 2px; color: var(--green); }
.about-indicators strong { display: block; font-size: 1.05rem; font-weight: 600; color: #fff; line-height: 1.35; }
.about-indicators span { display: block; margin-top: 6px; font-size: .95rem; line-height: 1.55; color: #aeb8c4; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.step { border-top: 1px solid var(--border); padding-top: 24px; }
.step-icon { width: 148px; height: 148px; display: block; margin: 0 auto 26px; }
.step h3 { font-size: 1.3rem; margin: 0 0 14px; }
.step p { font-size: 0.95rem; }

/* Franja blanca de "Cómo trabajo" */
.band-light {
  background: #fff; color: #0b1220; padding: 44px 0 144px;
  min-height: calc(100vh - var(--header-height)); min-height: calc(100svh - var(--header-height));
  display: flex; flex-direction: column;
}
.band-light .section { padding-top: 0; width: min(1280px, calc(100% - 80px)); flex: 1 1 auto; display: flex; flex-direction: column; } /* mismo contenedor que Servicios (borde izquierdo común) */
.band-light p { color: #475569; }
/* la etiqueta queda pegada arriba; título, subtítulo y pasos se centran juntos en el espacio restante */
.band-light > .section > h2 { text-align: center; margin: auto 0 20px; }
.band-light .steps-lead { text-align: center; font-size: 1.1rem; line-height: 1.6; max-width: 560px; margin: 0 auto 48px; }
.band-light .steps { max-width: none; margin: 0 auto auto; gap: 24px; }
.band-light .step { border-top: 0; padding-top: 0; text-align: center; }
.band-light .step p { max-width: 262px; margin: 0 auto; font-size: 1rem; line-height: 1.6; }
.band-light .num { color: #15803d; }
.band-light .section-eyebrow { color: #0d8266; }

/* Contact */
/* Contacto: formulario original (send_mail.php) en composición de dos columnas */
#contacto.contact { padding-top: 72px; padding-bottom: 56px; scroll-margin-top: var(--header-height); }
#contacto .section-eyebrow { margin-bottom: 64px; }
.contact-box {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start;
  padding: 56px; border-radius: 22px; background: #0b0f10; border: 1px solid rgba(255, 255, 255, 0.1);
}
.contact-intro .lead { margin-top: 20px; max-width: 34ch; font-size: 1.1rem; line-height: 1.65; color: #b8c0c9; }
.contact-form { display: grid; gap: 20px; padding: 28px; border-radius: 16px; background: #10171a; border: 1px solid rgba(255, 255, 255, 0.08); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; align-content: start; }
.field label { font-size: .9rem; font-weight: 500; color: #e2e8f0; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: #fff; background: #070a0b;
  border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 12px; padding: 14px 16px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input::placeholder, .field textarea::placeholder { color: #6b7785; }
.field input:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #f87171; }
.field-error { min-height: 0; font-size: .85rem; line-height: 1.4; color: #fca5a5; }
.field-error:empty { display: none; }
.contact-form .contact-submit { margin-top: 4px; width: 100%; justify-content: center; border: 0; cursor: pointer; font-family: inherit; }
.contact-submit:disabled { opacity: .7; cursor: progress; transform: none; box-shadow: none; }
.contact-submit.loading .contact-submit-arrow { display: inline-block; width: 16px; height: 16px; border: 2px solid rgba(0, 0, 0, 0.3); border-top-color: #000; border-radius: 50%; color: transparent; overflow: hidden; animation: cf-spin .8s linear infinite; }
@keyframes cf-spin { to { transform: rotate(360deg); } }
.form-status { font-size: .95rem; line-height: 1.5; }
.form-status:empty { display: none; }
.form-status.ok { color: #4ade80; }
.form-status.err { color: #fca5a5; }
@media (max-width: 960px) { .contact-box { grid-template-columns: 1fr; gap: 32px; padding: 40px 32px; } .contact-intro .lead { max-width: 56ch; } }
@media (max-width: 640px) { .contact-box { padding: 28px 20px; } .contact-form { padding: 20px; } .form-row { grid-template-columns: 1fr; } #contacto.contact { padding-top: 56px; padding-bottom: 48px; } #contacto .section-eyebrow { margin-bottom: 48px; } }
@media (prefers-reduced-motion: reduce) { .field input, .field textarea { transition: none; } .contact-submit.loading .contact-submit-arrow { animation: none; } }

.site-footer { text-align: center; padding: 32px 24px; border-top: 1px solid var(--border); font-size: 0.85rem; }

/* Animaciones de entrada (solo opacity y transform). Si no hay JS o falla, el contenido queda visible. */
:root { --rise: 16px; --ease-out: cubic-bezier(0.22, 1, 0.36, 1); --ease-soft: cubic-bezier(0.33, 1, 0.68, 1); }
@media (max-width: 700px) { :root { --rise: 10px; } }
.js .reveal { opacity: 0; transform: translateY(var(--rise)); transition: opacity 1s ease-out var(--d, 0ms), transform 1s var(--ease-soft) var(--d, 0ms); }
.js .reveal.in, .reveal-fallback .reveal { opacity: 1; transform: none; }
/* escalonado de tarjetas (en móvil se apilan y cada una entra al llegar a pantalla, sin retardo) */
.services-primary-grid > .reveal:nth-child(2), .services-benefits-grid > .reveal:nth-child(2), .steps > .reveal:nth-child(2) { --d: 140ms; }
.services-benefits-grid > .reveal:nth-child(3), .steps > .reveal:nth-child(3) { --d: 280ms; }
.services-benefits-grid > .reveal:nth-child(4), .steps > .reveal:nth-child(4) { --d: 420ms; }
.about-body.reveal { --d: 150ms; }
@media (max-width: 700px) { .reveal { --d: 0ms !important; } }

/* Responsive */
@media (max-width: 960px) {
  .benefits, .steps { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; row-gap: 36px; }
  .about-sub { max-width: 44ch; }
  .about-indicators { grid-template-columns: 1fr; margin-top: 40px; padding-top: 8px; }
  .about-indicators li, .about-indicators li:first-child { padding: 22px 0; }
  .about-indicators li + li { border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.1); }
}
@media (max-width: 768px) {
  .section { padding-top: 80px; }
  .grid-2, .form-row { grid-template-columns: 1fr; }
  .card { padding: 28px; }
}
@media (max-width: 520px) {
  .benefits, .steps { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .reveal.in { transition: none; opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* Cómo trabajo, Proyectos y Sobre mí empiezan justo bajo la barra fija al navegar (sin franja de la sección anterior) */
#metodo, #proyectos, #sobre-mi, #contacto { scroll-margin-top: var(--header-height); }

/* Cursor personalizado (solo con ratón) */
.custom-cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  * { cursor: none !important; }
  .custom-cursor {
    display: block; position: fixed; top: 0; left: 0; width: 12px; height: 12px; border-radius: 50%;
    background: var(--green); box-shadow: 0 0 8px rgba(34, 197, 94, 0.8); pointer-events: none;
    z-index: 9999; transform: translate(-50%, -50%); transition: width .3s, height .3s, opacity .3s; will-change: left, top;
    opacity: 0;
  }
  .custom-cursor.visible { opacity: 1; }
  body.hovering .custom-cursor.visible { width: 18px; height: 18px; background: #4ade80; opacity: 0.9; }
}

/* Cabecera según el diseño de referencia (1600 px) */
body > header { padding: 21px 0; }
header .logo { font-size: 24.5px; line-height: 1.1; letter-spacing: -0.5px; }
header .brand-dot { color: #34d399; }
header nav { gap: 34px; align-items: center; }
nav a.nav-link { color: #d4d4d8; font-weight: 400; font-size: 16px; }
nav a.nav-link:hover, nav a.nav-link.active { color: #fff; }
nav a.nav-cta {
  background: #32d58b; color: #04130a; font-size: 16px; font-weight: 500; padding: 14px 31px; border-radius: 999px;
  margin: -6px 0 0; transition: transform .2s, box-shadow .2s;
}
nav a.nav-cta:hover { color: #04130a; transform: translateY(-2px); box-shadow: 0 10px 30px rgba(50, 213, 139, 0.3); }
@media (max-width: 1100px) { header nav { gap: 28px; } nav a.nav-link, nav a.nav-cta { font-size: 14px; } header .logo { font-size: 24px; } }
@media (max-width: 768px) { body > header { padding: 24px 0; } header .logo { font-size: 24px; line-height: 1.2; } }

/* La sección clara de servicios queda justo bajo la barra superior al navegar a ella */


/* Ajustes de fidelidad de #servicios respecto a la captura de referencia (servicios.css se mantiene sin tocar) */
@media (min-width: 701px) { #servicios .services-heading { margin-bottom: 48px; } }
#servicios .services-main-copy h3 { font-weight: 650; letter-spacing: -.02em; font-size: 23px; }
#servicios .services-main-copy p { font-size: 17px; line-height: 1.5; max-width: 396px; }
#servicios .services-benefit-card h3 { font-weight: 600; letter-spacing: -.02em; font-size: 17px; }
#servicios .services-main-card::before { background: rgba(20, 190, 131, .12); }
#servicios .services-main-card:first-child .services-main-icon svg { fill: currentColor; }
#servicios .services-main-icon svg { stroke-width: 2.6; }
#servicios .services-benefit-icon { box-shadow: 0 6px 14px rgba(16, 169, 113, .14); }
#servicios .services-benefit-icon svg { stroke-width: 2.3; }
@media (min-width: 1051px) {
  /* en la referencia la línea divisoria y las tarjetas inferiores son algo más anchas que las dos tarjetas oscuras */
  #servicios .services-divider, #servicios .services-benefits-grid { margin-inline: -34px; }
  #servicios .services-benefit-card p { font-size: 15.5px; max-width: 228px; }
}

/* Al pulsar "Servicios" la sección queda centrada en la ventana (la altura de la sección ronda los 920 px).
   */
#servicios { scroll-margin-top: max(100px, (100vh - 920px) / 2); }

/* Llamada a la acción al final de Proyectos */
.projects-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 40px; margin-top: 96px; padding: 48px 56px;
  border-radius: 20px; background: linear-gradient(115deg, #071b1c 0%, #0b2a27 55%, #0b3c32 100%); border: 1px solid var(--border);
}
.projects-cta h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.2; letter-spacing: -0.02em; color: #fff; max-width: 17ch; }
.projects-cta p { margin-top: 12px; max-width: 460px; font-size: 1.05rem; line-height: 1.6; color: #b8c0c9; }
.projects-cta .hx-cta { margin-top: 0; flex: none; }
@media (max-width: 900px) {
  .projects-cta { flex-direction: column; align-items: flex-start; gap: 28px; padding: 36px 28px; }
  .projects-cta h3 { max-width: none; }
}
@media (max-width: 700px) { .projects-cta { margin-top: 56px; } }
@media (max-width: 520px) { .projects-cta { padding: 30px 24px; } .projects-cta .hx-cta { height: 58px; padding: 0 26px; font-size: 17px; } }
@media (max-width: 700px) {
  .band-light { padding: 40px 0 88px; }
  .band-light > .section > h2 { margin-bottom: 16px; }
  .band-light .section { width: min(100% - 40px, 520px); }
  .band-light .steps-lead { margin-bottom: 40px; font-size: 1rem; }
  .band-light .steps { gap: 40px; }
}

@media (max-width: 700px) { #sobre-mi.about { --about-gap: 80px; --about-pt: 64px; } } /* 16 px de margen exterior: al navegar por ancla la tarjeta queda oculta tras la barra */

/* ===== Móvil (≤ 700 px) ===== */
@media (max-width: 700px) {
  /* Tarjetas blancas de beneficios: texto secundario más oscuro (#475569 sobre blanco ≈ 7,6:1) */
  #servicios .services-benefit-card { min-height: 0; padding: 24px 22px 80px; }
  #servicios .services-benefit-card h3 { color: #0f1a21; margin-bottom: 10px; }
  #servicios .services-benefit-card p { color: #475569; font-size: 15.5px; line-height: 1.55; }
  #servicios .services-benefit-icon { right: 20px; bottom: 20px; }
}

/* Sobre mí: en móvil el texto se contrae con desvanecimiento; en escritorio se ve entero */
.about-toggle, .no-js .about-toggle { display: none; }
@media (max-width: 700px) {
  .about-collapsible { position: relative; overflow: hidden; max-height: var(--about-open, none); transition: max-height .45s ease; }
  .about-collapsible.is-collapsed {
    max-height: var(--about-collapsed, 15rem);
    -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 72px), transparent 100%);
    mask-image: linear-gradient(to bottom, #000 calc(100% - 72px), transparent 100%);
  }
  html:not(.no-js) .about-toggle {
    display: block; margin: 8px auto 0; padding: 14px 24px; min-height: 48px; background: none; border: 0; cursor: pointer;
    font: inherit; font-size: 1rem; font-weight: 600; color: var(--green);
  }
  .about-toggle:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 8px; }
}
@media (max-width: 700px) and (prefers-reduced-motion: reduce) { .about-collapsible { transition: none; } }

/* Foco programático tras un enlace interno con teclado: sin recuadro sobre toda la sección */
main > section[tabindex="-1"]:focus, main > section[tabindex="-1"]:focus-visible { outline: none; }
