/* aiaiai · Soluciones digitales — estilos */

@font-face { font-family: "Poppins"; src: url("../fonts/poppins-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  /* Colores tomados del logotipo */
  --grafito: #171c20;
  --grafito-2: #12161a;
  --grafito-3: #1e242a;
  --hueso: #ebece6;
  --gris: #a3abb2;
  --azul: #2c88f5;
  --verde: #0cb07d;
  --ambar: #eca225;
  --rojo: #db4534;
  --linea: rgba(44, 136, 245, 0.22);
  --linea-suave: rgba(235, 236, 230, 0.1);

  --sans: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --wrap: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4.5rem, 10vw, 8rem);
  --radius: 14px;

  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: inherit; }
html { scroll-behavior: smooth; scroll-padding-top: calc(5rem + env(safe-area-inset-top, 0px)); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--grafito);
  color: var(--hueso);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.0625rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-weight: 600; line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 0.6em; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 1.4rem + 2.2vw, 3rem); }
h3 { font-size: clamp(1.3rem, 1.15rem + 0.6vw, 1.6rem); }
p { margin: 0 0 1em; max-width: 64ch; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--hueso); color: var(--grafito); padding: 0.6rem 1rem; border-radius: 8px; }
.skip:focus { top: calc(1rem + env(safe-area-inset-top, 0px)); }
:focus-visible { outline: 2px solid var(--azul); outline-offset: 3px; border-radius: 4px; }

/* Bloque provisional: visible a propósito para localizar textos pendientes */
.pendiente { border: 1px dashed var(--ambar); border-radius: 10px; padding: 1rem 1.2rem; color: var(--hueso); background: rgba(236, 162, 37, 0.06); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0.75rem 1.5rem;
  background: var(--azul); color: #0e1216;
  font: 600 1rem/1.2 var(--sans); text-decoration: none;
  border: 0; border-radius: 999px; cursor: pointer;
  transition: background-color 0.2s, box-shadow 0.2s;
}
.btn:hover { background: #4d9bf7; box-shadow: 0 0 0 6px rgba(44, 136, 245, 0.15); }
.btn-ghost { background: transparent; color: var(--hueso); box-shadow: inset 0 0 0 1px rgba(235, 236, 230, 0.35); }
.btn-ghost:hover { background: rgba(235, 236, 230, 0.06); box-shadow: inset 0 0 0 1px var(--hueso); }
.btn-small { min-height: 40px; padding: 0.5rem 1.1rem; font-size: 0.92rem; }

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(23, 28, 32, 0.82);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--linea-suave);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; }
.brand-mark circle { fill: none; stroke-width: 3; stroke-linecap: round; }
.m-blue { stroke: var(--azul); } .m-green { stroke: var(--verde); } .m-amber { stroke: var(--ambar); }
.brand-mark .m-core { fill: var(--azul); stroke: none; }
.wordmark { font-weight: 600; font-size: 1.45rem; letter-spacing: 0.01em; line-height: 1; }
.wordmark b { font-weight: 600; }
.i-blue { color: var(--azul); } .i-green { color: var(--verde); } .i-amber { color: var(--ambar); }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2rem); }
.nav a:not(.btn) { text-decoration: none; color: var(--gris); font-size: 0.95rem; transition: color 0.2s; }
.nav a:not(.btn):hover { color: var(--hueso); }
.nav-toggle { display: none; }

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; background: none; border: 1px solid var(--linea-suave); border-radius: 10px; cursor: pointer;
  }
  .nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
    display: block; width: 18px; height: 2px; background: var(--hueso); border-radius: 2px; position: relative; transition: transform 0.2s, background 0.2s;
  }
  .nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bar::before { top: -6px; } .nav-toggle-bar::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 0.5rem var(--gutter) 1.25rem;
    background: var(--grafito-2); border-bottom: 1px solid var(--linea-suave);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 0.9rem 0; border-bottom: 1px solid var(--linea-suave); font-size: 1.05rem; color: var(--hueso); }
  .nav .btn { margin-top: 1rem; }
}

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: min(88vh, 760px); display: grid; align-items: center; padding-block: clamp(4rem, 10vw, 7rem); }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; animation: hero-in 1.6s ease-out both; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--grafito) 0%, rgba(23, 28, 32, 0.92) 30%, rgba(23, 28, 32, 0.35) 65%, rgba(23, 28, 32, 0.1) 100%),
    linear-gradient(0deg, var(--grafito) 0%, rgba(23, 28, 32, 0) 30%);
}
.hero h1 { font-size: clamp(2.05rem, 1.2rem + 4.6vw, 4.6rem); max-width: 14ch; hyphens: manual; margin-bottom: 0.45em; }
.lead { font-size: clamp(1.05rem, 1rem + 0.35vw, 1.25rem); color: #cfd3d6; max-width: 46ch; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
@keyframes hero-in { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }
@media (max-width: 700px) {
  .hero { min-height: auto; align-items: end; padding-top: 14rem; }
  .hero-bg img { object-position: 78% 40%; height: 62%; }
  .hero-bg::after { background: linear-gradient(0deg, var(--grafito) 40%, rgba(23, 28, 32, 0.5) 62%, rgba(23, 28, 32, 0) 100%); }
}

/* ---------- Secciones ---------- */
section { padding-block: var(--section); }
.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head p { color: var(--gris); font-size: 1.08rem; }

/* ---------- Servicios ---------- */
.services { background: var(--grafito-2); border-block: 1px solid var(--linea-suave); }
.services-grid { display: grid; grid-template-columns: minmax(280px, 0.85fr) 1.15fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.dial-col { position: sticky; top: 6rem; }
.dial { width: 100%; max-width: 420px; display: block; margin-inline: auto; overflow: visible; }
.dial circle { fill: none; }
.dial-ticks { stroke: var(--linea); stroke-width: 7; stroke-dasharray: 1 6.2; }
.dial-frame { stroke: var(--linea); stroke-width: 1; }
.dial .track { stroke: rgba(235, 236, 230, 0.06); stroke-width: 16; }
.dial .arc { stroke-width: 16; stroke-linecap: round; stroke-dasharray: 78 100; transition: opacity 0.35s, filter 0.35s, stroke-width 0.35s; opacity: 0.35; }
.arc-blue { stroke: var(--azul); } .arc-green { stroke: var(--verde); } .arc-amber { stroke: var(--ambar); }
.dial .hit { stroke: transparent; stroke-width: 30; cursor: pointer; pointer-events: stroke; }
.ring.is-active .arc { opacity: 1; stroke-width: 18; filter: drop-shadow(0 0 10px currentColor); }
.ring[data-ring="web"] { color: var(--azul); } .ring[data-ring="ia"] { color: var(--verde); } .ring[data-ring="marketing"] { color: var(--ambar); }
.dial-core { fill: #8fc6ff; filter: drop-shadow(0 0 8px var(--azul)); }
.dial-core-glow { fill: rgba(44, 136, 245, 0.12); }
.dial-dot { fill: var(--rojo); }
.dial.is-drawing .arc { animation: draw 1.4s cubic-bezier(.2,.7,.2,1) both; }
.dial.is-drawing .ring:nth-of-type(2) .arc { animation-delay: 0.15s; }
.dial.is-drawing .ring:nth-of-type(3) .arc { animation-delay: 0.3s; }
@keyframes draw { from { stroke-dasharray: 0 100; } to { stroke-dasharray: 78 100; } }

.tabs { display: grid; gap: 0.5rem; margin-top: 2rem; }
.tab {
  display: flex; align-items: center; gap: 0.85rem; width: 100%;
  min-height: 52px; padding: 0.7rem 1rem;
  background: transparent; color: var(--gris);
  font: 500 1.02rem/1.3 var(--sans); text-align: left;
  border: 1px solid var(--linea-suave); border-radius: 12px; cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.tab:hover { color: var(--hueso); border-color: rgba(235, 236, 230, 0.25); }
.tab[aria-selected="true"] { color: var(--hueso); background: var(--grafito-3); border-color: rgba(235, 236, 230, 0.3); }
.swatch { flex: none; width: 16px; height: 16px; border-radius: 50%; border: 3px solid; }
.swatch-blue { border-color: var(--azul); } .swatch-green { border-color: var(--verde); } .swatch-amber { border-color: var(--ambar); }

.panels { display: grid; gap: 4rem; }
.js .panels { gap: 0; }
.js .panel[hidden] { display: none; }
.panel img { border-radius: var(--radius); margin-bottom: 1.75rem; aspect-ratio: 1404 / 764; object-fit: cover; width: 100%; }
.panel h3 { padding-left: 1rem; border-left: 4px solid; }
.panel-blue h3 { border-color: var(--azul); } .panel-green h3 { border-color: var(--verde); } .panel-amber h3 { border-color: var(--ambar); }
.panel > p { color: #cfd3d6; }
.panel ul { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 0.15rem; }
.panel li { position: relative; padding: 0.7rem 0 0.7rem 1.75rem; border-top: 1px solid var(--linea-suave); }
.panel li::before { content: ""; position: absolute; left: 0.2rem; top: 1.2rem; width: 9px; height: 9px; border-radius: 50%; border: 2px solid; }
.panel-blue li::before { border-color: var(--azul); } .panel-green li::before { border-color: var(--verde); } .panel-amber li::before { border-color: var(--ambar); }
.js .panel { animation: panel-in 0.35s ease-out; }
@keyframes panel-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr; }
  .dial-col { position: static; display: grid; grid-template-columns: 150px 1fr; gap: 1.25rem; align-items: center; }
  .tabs { margin-top: 0; }
}
@media (max-width: 480px) {
  .dial-col { grid-template-columns: 1fr; }
  .dial { max-width: 190px; }
}

/* ---------- Proceso ---------- */
.process { background: var(--grafito) url("../img/textura.webp") center / cover no-repeat; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; position: relative; }
.steps::before { content: ""; position: absolute; top: 32px; left: 32px; right: 12%; height: 1px; background: var(--linea); }
.step { position: relative; }
.step-ring { width: 64px; height: 64px; position: relative; background: var(--grafito); border-radius: 50%; }
.step-ring circle { fill: none; stroke-width: 4; }
.step-ring .track { stroke: rgba(235, 236, 230, 0.1); }
.step-ring .fill { stroke-linecap: round; }
.fill-25 { stroke: var(--azul); stroke-dasharray: 25 100; }
.fill-50 { stroke: var(--azul); stroke-dasharray: 50 100; }
.fill-75 { stroke: var(--verde); stroke-dasharray: 75 100; }
.fill-100 { stroke: var(--verde); stroke-dasharray: 100 100; }
.step-n { position: absolute; top: 0; left: 0; width: 64px; height: 64px; display: grid; place-items: center; font: 500 1.2rem var(--mono); }
.step h3 { margin-top: 1.4rem; font-size: 1.25rem; }
.step p { color: var(--gris); font-size: 0.98rem; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; row-gap: 2.5rem; }
  .steps::before { display: none; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .step { display: grid; grid-template-columns: 64px 1fr; column-gap: 1.25rem; }
  .step-ring, .step-n { grid-row: 1 / span 2; }
  .step h3 { margin-top: 0.4rem; }
}

/* ---------- Resultados y nosotros ---------- */
.results-grid, .about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.results-grid img, .about-grid img { border-radius: var(--radius); width: 100%; }
.results p, .about p { color: #cfd3d6; }
.case { margin-top: 2rem; }
.case-title { font-weight: 600; margin-bottom: 0.3rem; }
.about { background: var(--grafito-2); border-top: 1px solid var(--linea-suave); }
.principles { margin: 2rem 0 0; display: grid; gap: 1.25rem; }
.principles div { padding-left: 1.1rem; border-left: 2px solid var(--linea); }
.principles dt { font-weight: 600; }
.principles dd { margin: 0.2rem 0 0; color: var(--gris); font-size: 0.97rem; }
@media (max-width: 900px) {
  .results-grid, .about-grid { grid-template-columns: 1fr; }
  .results-grid img { order: -1; }
}

/* ---------- Contacto ---------- */
.contact { position: relative; isolation: isolate; background: var(--grafito) url("../img/cta.webp") center / cover no-repeat; }
.contact::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(23, 28, 32, 0.96) 0%, rgba(23, 28, 32, 0.86) 100%); }
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.contact-intro p { color: #cfd3d6; }
.direct { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 0.6rem; }
.direct a { color: var(--hueso); text-decoration: none; border-bottom: 1px solid var(--linea); padding-bottom: 2px; word-break: break-word; }
.direct a:hover { border-color: var(--azul); }

.form { background: rgba(18, 22, 26, 0.9); border: 1px solid var(--linea-suave); border-radius: 18px; padding: clamp(1.25rem, 3vw, 2.25rem); display: grid; gap: 1.1rem; }
.field { display: grid; gap: 0.4rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { font-size: 0.92rem; font-weight: 500; }
.opt { color: var(--gris); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 0.7rem 0.9rem;
  background: var(--grafito); color: var(--hueso);
  font: 400 1rem/1.4 var(--sans);
  border: 1px solid rgba(235, 236, 230, 0.18); border-radius: 10px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--azul); box-shadow: 0 0 0 3px rgba(44, 136, 245, 0.25); }
.field [aria-invalid="true"] { border-color: var(--rojo); }
.check { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.92rem; color: #cfd3d6; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 0.15rem 0 0; accent-color: var(--azul); flex: none; }
.check a { color: var(--hueso); }
.form .btn { justify-self: start; }
.form-status { margin: 0; min-height: 1.5em; font-size: 0.95rem; }
.form-status.ok { color: var(--verde); }
.form-status.error { color: #ff8a7d; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } .form .btn { justify-self: stretch; } }

/* ---------- Pie ---------- */
.site-footer { border-top: 1px solid var(--linea-suave); padding-block: 2.5rem; padding-bottom: calc(2.5rem + env(safe-area-inset-bottom, 0px)); color: var(--gris); font-size: 0.92rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }
.footer-inner p { margin: 0; }
.footer-brand { display: flex; align-items: baseline; gap: 0.6rem; color: var(--hueso); }
.footer-brand .wordmark { font-size: 1.2rem; }
.site-footer nav { display: flex; gap: 1.5rem; }
.site-footer a { color: var(--gris); text-decoration: none; }
.site-footer a:hover { color: var(--hueso); }

/* ---------- Páginas legales ---------- */
.legal { padding-block: clamp(3rem, 8vw, 6rem); }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem); }
.legal h2 { font-size: 1.35rem; margin-top: 2.2em; }
.legal p, .legal li { color: #cfd3d6; }
.legal a { color: var(--hueso); }
.legal table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.95rem; }
.legal th, .legal td { text-align: left; padding: 0.6rem; border-bottom: 1px solid var(--linea-suave); vertical-align: top; }
.updated { color: var(--gris); font-size: 0.92rem; }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.pendiente-inline { color: var(--ambar); border-bottom: 1px dashed var(--ambar); }
@media (max-width: 820px) { .nav.nav-simple { display: flex; position: static; flex-direction: row; padding: 0; background: none; border: 0; } .nav.nav-simple .btn { margin-top: 0; } }

/* ---------- Redes sociales en el pie ---------- */
.social { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.5rem; }
.social a {
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid var(--linea-suave); border-radius: 50%;
  color: var(--gris); transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.social a:hover { color: var(--hueso); border-color: rgba(235, 236, 230, 0.35); background: rgba(235, 236, 230, 0.05); }
.social svg { width: 19px; height: 19px; }
.ico-stroke { fill: none; stroke: currentColor; stroke-width: 1.9; }
.ico-stroke .ico-dot { fill: currentColor; stroke: none; }
.ico-fill { fill: currentColor; }

/* ---------- Botón flotante de WhatsApp ---------- */
.wa-float {
  position: fixed; z-index: 60;
  right: calc(1.25rem + env(safe-area-inset-right, 0px));
  bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; gap: 0.55rem;
  height: 56px; padding: 0 1.25rem 0 1rem;
  background: #25d366; color: #0b2e1a;
  font: 600 1rem/1 var(--sans); text-decoration: none;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s, box-shadow 0.2s;
}
.wa-float svg { width: 26px; height: 26px; fill: currentColor; flex: none; }
.wa-float:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4), 0 0 0 6px rgba(37, 211, 102, 0.18); }
.wa-float:focus-visible { outline: 3px solid var(--hueso); outline-offset: 3px; }
@media (max-width: 600px) {
  .wa-float { width: 56px; padding: 0; justify-content: center; right: calc(1rem + env(safe-area-inset-right, 0px)); bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); }
  .wa-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
/* Que el botón no tape el final del pie */
.site-footer { padding-bottom: calc(6rem + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 820px) { .nav.nav-simple { gap: 1.25rem; align-items: center; } .nav.nav-simple a:not(.btn) { padding: 0; border: 0; } }
.nav.nav-simple .btn { white-space: nowrap; } @media (max-width: 440px) { .nav.nav-simple .btn { display: none; } }

/* ---------- Navegación: página actual ---------- */
.nav a[aria-current="page"]:not(.btn) { color: var(--hueso); }

/* ---------- Blog: listado ---------- */
.blog-head { padding-block: clamp(3.5rem, 8vw, 6rem) clamp(1.5rem, 3vw, 2.5rem); background: var(--grafito) url("../img/textura.webp") center / cover no-repeat; border-bottom: 1px solid var(--linea-suave); }
.blog-head h1 { font-size: clamp(2.4rem, 1.6rem + 3.6vw, 4.2rem); }
.blog-head p { color: var(--gris); font-size: 1.1rem; max-width: 52ch; }
.blog-list { padding-block: clamp(2rem, 5vw, 4rem) var(--section); }
.post-list { list-style: none; margin: 0; padding: 0; }
.post-item { display: grid; grid-template-columns: minmax(220px, 340px) 1fr; gap: clamp(1.25rem, 3vw, 2.5rem); align-items: center; padding-block: clamp(1.75rem, 3.5vw, 2.5rem); border-bottom: 1px solid var(--linea-suave); }
.post-item:first-child { padding-top: 0; }
.post-thumb img { border-radius: var(--radius); aspect-ratio: 16 / 9; object-fit: cover; width: 100%; transition: filter 0.25s; }
.post-item:hover .post-thumb img { filter: brightness(1.12); }
.post-body h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.85rem); margin: 0.6rem 0 0.5rem; }
.post-body h2 a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.25s; }
.post-body h2 a:hover { background-size: 100% 1px; }
.post-body p { color: #cfd3d6; margin-bottom: 0.6rem; }
.post-cat { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; font-weight: 500; color: var(--hueso); }
.post-cat .swatch { width: 13px; height: 13px; border-width: 2.5px; }
.post-meta { color: var(--gris) !important; font-size: 0.9rem; margin: 0; }
@media (max-width: 700px) {
  .post-item { grid-template-columns: 1fr; gap: 1rem; }
}

/* ---------- Blog: artículo ---------- */
.article { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(2rem, 5vw, 3rem); }
.article-wrap { max-width: 760px; }
.crumbs { margin: 0 0 1.75rem; font-size: 0.92rem; }
.crumbs a { color: var(--gris); text-decoration: none; }
.crumbs a::before { content: "‹ "; }
.crumbs a:hover { color: var(--hueso); }
.article-head h1 { font-size: clamp(2rem, 1.4rem + 2.8vw, 3.2rem); margin: 0.9rem 0 0.6rem; }
.article-lead { font-size: clamp(1.08rem, 1rem + 0.35vw, 1.25rem); color: #cfd3d6; }
.article-cover { border-radius: var(--radius); margin: 2.25rem 0 2.5rem; width: 100%; aspect-ratio: 1404 / 764; object-fit: cover; }
.prose { font-size: 1.07rem; line-height: 1.75; }
.prose p, .prose li { color: #d6d9dc; max-width: 68ch; }
.prose h2 { font-size: clamp(1.35rem, 1.2rem + 0.6vw, 1.65rem); margin: 2.2em 0 0.6em; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.4em; }
.prose a { color: var(--hueso); text-decoration-color: var(--azul); text-underline-offset: 3px; }
.prose blockquote { margin: 1.8em 0; padding: 0.2em 0 0.2em 1.3rem; border-left: 3px solid var(--azul); color: var(--hueso); font-size: 1.15rem; }
.prose strong { color: var(--hueso); font-weight: 600; }
.article-cta { margin-top: 3.5rem; padding: clamp(1.4rem, 3vw, 2rem); border: 1px solid var(--linea-suave); border-left: 4px solid; border-radius: 14px; background: var(--grafito-2); }
.cta-blue { border-left-color: var(--azul); } .cta-green { border-left-color: var(--verde); } .cta-amber { border-left-color: var(--ambar); }
.article-cta-title { font-weight: 600; font-size: 1.3rem; margin-bottom: 0.3rem; }
.article-cta p:not(.article-cta-title) { color: #cfd3d6; }
.more-posts { padding-block: clamp(2.5rem, 5vw, 4rem) var(--section); background: var(--grafito-2); border-top: 1px solid var(--linea-suave); }
.more-posts h2 { font-size: 1.5rem; }
.more-posts ul { list-style: none; margin: 1.25rem 0 0; padding: 0; }
.more-posts li { border-top: 1px solid var(--linea-suave); }
.more-posts li a { display: grid; gap: 0.35rem; padding: 1.1rem 0; text-decoration: none; }
.more-title { font-weight: 500; font-size: 1.12rem; }
.more-posts li a:hover .more-title { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Enlaces de servicio en la portada ---------- */
.panel-link { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 1.5rem; min-height: 44px; font-weight: 600; text-decoration: none; border-bottom: 2px solid; padding-bottom: 2px; }
.panel-blue .panel-link { border-color: var(--azul); } .panel-green .panel-link { border-color: var(--verde); } .panel-amber .panel-link { border-color: var(--ambar); }
.panel-link:hover { color: #fff; }

/* ---------- Pie: servicios ---------- */
.footer-svc { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.footer-inner { row-gap: 1.5rem; }

/* ---------- Páginas de servicio ---------- */
.svc-hero { padding-block: clamp(3rem, 7vw, 5.5rem); background: var(--grafito) url("../img/textura.webp") center / cover no-repeat; border-bottom: 1px solid var(--linea-suave); }
.svc-hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.svc-hero h1 { font-size: clamp(2.2rem, 1.4rem + 3.4vw, 3.9rem); max-width: 15ch; padding-bottom: 0.35em; border-bottom: 4px solid; display: inline-block; }
.svc-blue h1 { border-color: var(--azul); } .svc-green h1 { border-color: var(--verde); } .svc-amber h1 { border-color: var(--ambar); }
.svc-hero img { border-radius: var(--radius); width: 100%; aspect-ratio: 1404 / 764; object-fit: cover; }
.svc-hero .crumbs { color: var(--gris); }
.svc-hero .crumbs a::before { content: none; }
@media (max-width: 900px) { .svc-hero-grid { grid-template-columns: 1fr; } .svc-hero img { order: -1; } }

.inc-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--linea-suave); }
.inc-grid li { position: relative; padding: 1.9rem 1.75rem 1.9rem 0; border-bottom: 1px solid var(--linea-suave); }
.inc-grid li:not(:nth-child(3n+1)) { padding-left: 1.75rem; border-left: 1px solid var(--linea-suave); }
.inc-grid h3 { font-size: 1.15rem; display: flex; align-items: center; gap: 0.65rem; }
.inc-grid h3::before { content: ""; flex: none; width: 12px; height: 12px; border-radius: 50%; border: 2.5px solid; }
.svc-blue .inc-grid h3::before { border-color: var(--azul); } .svc-green .inc-grid h3::before { border-color: var(--verde); } .svc-amber .inc-grid h3::before { border-color: var(--ambar); }
.inc-grid p { color: var(--gris); font-size: 0.98rem; margin: 0; }
@media (max-width: 900px) {
  .inc-grid { grid-template-columns: 1fr 1fr; }
  .inc-grid li, .inc-grid li:not(:nth-child(3n+1)) { padding: 1.6rem 1.25rem 1.6rem 0; border-left: 0; }
  .inc-grid li:nth-child(2n) { padding-left: 1.25rem; border-left: 1px solid var(--linea-suave); }
}
@media (max-width: 600px) {
  .inc-grid { grid-template-columns: 1fr; }
  .inc-grid li, .inc-grid li:nth-child(2n), .inc-grid li:not(:nth-child(3n+1)) { padding: 1.4rem 0; border-left: 0; }
}

.svc-how { background: var(--grafito-2); border-block: 1px solid var(--linea-suave); }
.svc-how-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.svc-how p { color: #cfd3d6; }
.svc-how p a, .faq a { color: var(--hueso); text-underline-offset: 3px; text-decoration-color: var(--azul); }
.svc-how .principles { margin-top: 0; }
@media (max-width: 900px) { .svc-how-grid { grid-template-columns: 1fr; } }

.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--linea-suave); }
.faq details:first-child { border-top: 1px solid var(--linea-suave); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.2rem 0; font-weight: 500; font-size: 1.08rem; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--gris); border-bottom: 2px solid var(--gris); transform: rotate(45deg) translate(-3px, -3px); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq summary:hover { color: #fff; }
.faq details p { color: #cfd3d6; margin: 0 0 1.3rem; }

.svc-blog { padding-top: 0; }
.svc-blog-link { display: grid; grid-template-columns: 260px 1fr; gap: 1.75rem; align-items: center; text-decoration: none; padding: 1.25rem; border: 1px solid var(--linea-suave); border-radius: 16px; transition: border-color 0.2s, background 0.2s; }
.svc-blog-link:hover { border-color: rgba(235, 236, 230, 0.3); background: rgba(235, 236, 230, 0.03); }
.svc-blog-link img { border-radius: 10px; aspect-ratio: 16 / 9; object-fit: cover; }
.svc-blog-t { display: block; font-weight: 600; font-size: 1.25rem; line-height: 1.25; margin-bottom: 0.4rem; }
.svc-blog-r { display: block; color: var(--gris); }
@media (max-width: 640px) { .svc-blog-link { grid-template-columns: 1fr; } }

.svc-others { padding-block: clamp(2.5rem, 5vw, 3.5rem); border-top: 1px solid var(--linea-suave); }
.svc-others h2 { font-size: 1.3rem; }
.svc-others ul { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.svc-others a { display: inline-flex; align-items: center; gap: 0.7rem; min-height: 48px; padding: 0.6rem 1.2rem; border: 1px solid var(--linea-suave); border-radius: 999px; text-decoration: none; font-weight: 500; }
.svc-others a:hover { border-color: rgba(235, 236, 230, 0.35); }

.article-cta .actions { margin-top: 1.25rem; }

/* ---------- Desplegable "Servicios" ---------- */
.nav-drop { position: relative; }
.nav-drop-btn {
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--gris); font: 400 0.95rem/1.65 var(--sans);
  transition: color 0.2s;
}
.nav-drop-btn:hover, .nav-drop.is-open .nav-drop-btn, .nav-drop.is-current .nav-drop-btn { color: var(--hueso); }
.chev { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform 0.2s; }
.nav-drop.is-open .chev { transform: translateY(1px) rotate(-135deg); }
.nav-sub {
  list-style: none; margin: 0; padding: 0.5rem;
  position: absolute; top: calc(100% + 14px); left: -1rem; z-index: 60;
  width: 340px; background: var(--grafito-2);
  border: 1px solid rgba(235, 236, 230, 0.14); border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  display: none;
}
.nav-drop.is-open .nav-sub { display: block; }
.nav-sub a:not(.btn) {
  display: flex; align-items: flex-start; gap: 0.8rem;
  padding: 0.75rem 0.8rem; border-radius: 10px;
  color: var(--hueso); text-decoration: none;
}
.nav-sub a:not(.btn):hover, .nav-sub a[aria-current="page"] { background: var(--grafito-3); }
.nav-sub .swatch { width: 14px; height: 14px; border-width: 2.5px; margin-top: 0.3rem; }
.sub-txt { display: grid; gap: 0.1rem; }
.sub-t { font-weight: 500; font-size: 0.97rem; line-height: 1.35; }
.sub-d { color: var(--gris); font-size: 0.85rem; line-height: 1.4; }
.nav-sub .sub-all { border-top: 1px solid var(--linea-suave); margin-top: 0.35rem; padding-top: 0.35rem; }
.nav-sub .sub-all a:not(.btn) { color: var(--gris); font-size: 0.9rem; padding-block: 0.6rem; }
.nav-sub .sub-all a:not(.btn):hover { color: var(--hueso); }
@media (hover: hover) and (min-width: 821px) {
  .nav-drop:hover .nav-sub { display: block; }
  .nav-drop:hover .chev { transform: translateY(1px) rotate(-135deg); }
  .nav-drop::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 16px; }
}
@media (max-width: 820px) {
  .nav-drop-btn { width: 100%; justify-content: space-between; padding: 0.9rem 0; border-bottom: 1px solid var(--linea-suave); font-size: 1.05rem; color: var(--hueso); }
  .nav-sub { position: static; width: auto; box-shadow: none; border: 0; border-radius: 0; background: none; padding: 0.25rem 0 0.5rem; border-bottom: 1px solid var(--linea-suave); }
  .nav-sub a:not(.btn) { padding: 0.7rem 0.4rem; border-bottom: 0; font-size: 1rem; }
  .nav-sub .sub-all { border-top: 0; margin: 0; padding: 0; }
}

/* ---------- Testimonios ---------- */
.testimonials { margin-top: clamp(3rem, 6vw, 4.5rem); }
.testimonials-title { font-size: 1.35rem; margin-bottom: 1.25rem; }
.testimonials-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.25rem, 3vw, 2rem); align-items: stretch; }
.testimonial { margin: 0; padding: clamp(1.5rem, 3vw, 2.25rem); background: var(--grafito-2); border: 1px solid var(--linea-suave); border-top: 3px solid; border-radius: 4px 4px 16px 16px; display: flex; flex-direction: column; justify-content: space-between; gap: 1.75rem; }
.t-blue { border-top-color: var(--azul); } .t-green { border-top-color: var(--verde); } .t-amber { border-top-color: var(--ambar); }
.testimonial blockquote { margin: 0; position: relative; padding-top: 2.4rem; }
.testimonial blockquote::before { content: "“"; position: absolute; top: -0.6rem; left: -0.15rem; font: 600 4.5rem/1 var(--sans); color: var(--gris); opacity: 0.55; }
.t-blue blockquote::before { color: var(--azul); opacity: 0.9; } .t-green blockquote::before { color: var(--verde); opacity: 0.9; } .t-amber blockquote::before { color: var(--ambar); opacity: 0.9; }
.testimonial blockquote p { font-size: clamp(1.15rem, 1.05rem + 0.45vw, 1.4rem); line-height: 1.45; font-weight: 500; color: var(--hueso); margin: 0; max-width: 40ch; }
.testimonial figcaption { display: flex; align-items: center; gap: 1rem; }
.t-logo { width: 84px; height: auto; flex: none; }
.t-meta { display: grid; gap: 0.1rem; font-size: 0.93rem; }
.t-name { font-weight: 600; color: var(--hueso); font-size: 1rem; }
.t-firma, .t-what { color: var(--gris); }
.t-what a { color: var(--gris); text-decoration-color: rgba(163, 171, 178, 0.5); text-underline-offset: 3px; }
.t-what a:hover, .t-web:hover { color: var(--hueso); }
.t-web { color: var(--gris); text-decoration: none; border-bottom: 1px solid var(--linea); justify-self: start; }
.testimonial-pending { border-top: 1px dashed var(--ambar); justify-content: flex-start; gap: 0.4rem; border-radius: 16px; }
.testimonial-pending p { margin: 0; }
.svc-testimonials { padding-top: 0; }
.svc-testimonials h2 { font-size: clamp(1.5rem, 1.3rem + 1vw, 2.1rem); }
.svc-testimonials .testimonials-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 580px)); }
@media (max-width: 760px) { .testimonials-grid { grid-template-columns: 1fr; } }
.t-logo-iso { width: 58px; margin-inline: 13px; }

/* ---------- Aviso de cookies ---------- */
.cookie-banner {
  position: fixed; z-index: 80;
  left: calc(1.25rem + env(safe-area-inset-left, 0px));
  bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  width: min(440px, calc(100vw - 2.5rem));
  padding: 1.25rem 1.35rem 1.2rem;
  background: var(--grafito-2); color: var(--hueso);
  border: 1px solid rgba(235, 236, 230, 0.16); border-top: 3px solid var(--azul); border-radius: 6px 6px 16px 16px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
  animation: cookie-in 0.35s ease-out both;
}
.cookie-banner[hidden] { display: none; }
@keyframes cookie-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.cookie-title { font-weight: 600; margin: 0 0 0.35rem; }
.cookie-banner p { font-size: 0.92rem; line-height: 1.55; color: #cfd3d6; margin: 0 0 1rem; }
.cookie-banner a { color: var(--hueso); text-underline-offset: 3px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: flex-end; }
.cookie-actions .btn { flex: 1 1 auto; }
.cookie-panel { display: grid; gap: 0.75rem; margin: 0 0 1rem; padding-top: 0.25rem; }
.cookie-panel[hidden] { display: none; }
.cookie-opt { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.88rem; color: var(--gris); cursor: pointer; }
.cookie-opt b { display: block; color: var(--hueso); font-weight: 600; }
.cookie-opt input { width: 18px; height: 18px; margin-top: 0.15rem; accent-color: var(--azul); flex: none; }
.site-footer nav a.cookie-settings { cursor: pointer; }
.legal code { font-family: var(--mono); font-size: 0.9em; background: var(--grafito-3); padding: 0.1em 0.35em; border-radius: 4px; }
@media (max-width: 600px) {
  .cookie-banner { left: 0.75rem; right: 0.75rem; width: auto; bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px)); }
  .cookie-open .wa-float { display: none; }
}
@media (prefers-reduced-motion: reduce) { .cookie-banner { animation: none; } }
.cookie-actions [hidden] { display: none; }

/* ---------- Reserva de llamada ---------- */
.booking { margin-top: 2.25rem; padding: 1.4rem 1.5rem; border: 1px solid var(--linea-suave); border-left: 3px solid var(--verde); border-radius: 6px 14px 14px 6px; background: rgba(18, 22, 26, 0.75); }
.booking-title { font-weight: 600; color: var(--hueso) !important; margin-bottom: 0.25rem; }
.booking p:not(.booking-title) { font-size: 0.95rem; margin-bottom: 1rem; }

/* ---------- Botón de música ---------- */
.sound-toggle {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 0.55rem;
  min-height: 40px; padding: 0.4rem 0.85rem;
  background: none; color: var(--gris);
  font: 400 0.9rem/1 var(--sans);
  border: 1px solid var(--linea-suave); border-radius: 999px; cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.sound-toggle[hidden] { display: none; }
.sound-toggle:hover, .sound-toggle.is-playing { color: var(--hueso); border-color: rgba(235, 236, 230, 0.3); }
.header-inner .nav { margin-left: clamp(1rem, 2.5vw, 2rem); }
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.eq i { display: block; width: 3px; height: 4px; border-radius: 1px; background: currentColor; transition: height 0.3s; }
.eq i:nth-child(1) { background: var(--azul); } .eq i:nth-child(2) { background: var(--verde); }
.eq i:nth-child(3) { background: var(--ambar); } .eq i:nth-child(4) { background: var(--azul); }
.sound-toggle.is-playing .eq i { animation: eq 0.9s ease-in-out infinite alternate; }
.sound-toggle.is-playing .eq i:nth-child(2) { animation-duration: 0.7s; animation-delay: -0.2s; }
.sound-toggle.is-playing .eq i:nth-child(3) { animation-duration: 1.1s; animation-delay: -0.5s; }
.sound-toggle.is-playing .eq i:nth-child(4) { animation-duration: 0.8s; animation-delay: -0.35s; }
.sound-toggle.is-pending .eq i { height: 9px; opacity: 0.6; }
@keyframes eq { 0% { height: 3px; } 100% { height: 14px; } }
@media (max-width: 820px) {
  .header-inner .nav { margin-left: 0; }
  .sound-toggle { margin-right: 0.5rem; padding: 0.4rem 0.7rem; }
}
@media (max-width: 420px) { .sound-txt { display: none; } .sound-toggle { width: 44px; justify-content: center; padding: 0; } }
@media (prefers-reduced-motion: reduce) { .sound-toggle.is-playing .eq i { animation: none; height: 10px; } }

/* Testimonios como sección propia */
.testimonials-sec .testimonials { margin-top: 0; }
.testimonials-sec .testimonials-title { font-size: clamp(1.9rem, 1.4rem + 2.2vw, 3rem); margin-bottom: clamp(2rem, 4vw, 3rem); }
