/* =========================================================
   Brigitte Papanú · sistema visual propio
   Sin Bootstrap, sin plantilla. Reemplaza a main.css.
   ========================================================= */

:root {
  /* Paleta A (recomendada): blanco y azul pálido */
  --paper: #FFFFFF;
  --surface: #F1F5FA;
  --paper-deep: #E8EFF7;
  --paper-card: #FFFFFF;
  --ink: #14161A;
  --ink-soft: #4B5058;
  --muted: #5E6673;
  --line: #E2E8F0;
  --line-strong: #C6D2E1;
  --accent: #0A57A8;
  --accent-deep: #084684;
  --deep: #0A3F73;
  --deep-soft: #C3D0DE;
  --card-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
  --head-bg: rgba(255, 255, 255, 0.92);
  --highlights: linear-gradient(to right, #0A57A8, #C4312A);

  --display: "Roboto", "Helvetica Neue", Arial, sans-serif;
  --body: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --serif: "Roboto", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1160px;
  --gutter: clamp(20px, 5vw, 56px);
  --gap: clamp(20px, 3vw, 32px);
  --radius: 2px;
}

/* Paleta B: gris neutro, sin tinte azul en los fondos */
:root[data-palette="b"] {
  --paper: #FCFCFD;
  --surface: #EEF0F3;
  --paper-deep: #E6E8EC;
  --line: #E0E3E8;
  --line-strong: #C2C7CF;
  --head-bg: rgba(252, 252, 253, 0.92);
}

/* Paleta C: base azulada, bandas en blanco */
:root[data-palette="c"] {
  --paper: #F2F6FC;
  --surface: #FFFFFF;
  --paper-deep: #E5EDF8;
  --line: #DAE3F0;
  --line-strong: #BCCBDF;
  --head-bg: rgba(242, 246, 252, 0.92);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection {
  background: var(--accent);
  color: #fff;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  font-weight: 700;
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
  color: var(--ink);
}

h1,
h2,
h3,
h4 {
  font-family: var(--display);
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.015em;
  line-height: 1.18;
}

p {
  margin: 0;
  text-align: justify;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -70px;
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 18px;
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 14px;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 12px;
}

/* ---------- Iconos ---------- */

.ico {
  width: 1em;
  height: 1em;
  flex: none;
  vertical-align: -0.14em;
}

/* Distintivo redondo que sustituye al número de sección */
.sec-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--accent);
  flex: none;
}

.sec-ico .ico {
  width: 27px;
  height: 27px;
}

.sec-head .sec-ico {
  align-self: start;
  margin-top: 2px;
}

.section-title .sec-ico {
  display: flex;
  margin-bottom: 16px;
}

.contact .sec-ico {
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--paper);
}

.svc__ico {
  width: 20px;
  height: 20px;
  color: var(--accent);
  margin-right: 8px;
  vertical-align: -0.16em;
}

.info-item__ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  color: var(--deep-soft);
  flex: none;
}

.info-item__ico .ico {
  width: 20px;
  height: 20px;
}

.skills-content h3 .ico {
  width: 17px;
  height: 17px;
  margin-right: 8px;
  vertical-align: -0.12em;
}

/* ---------- Contenedores y rejilla ---------- */

.container {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container-fluid {
  padding: 0 var(--gutter);
}

.row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
}

.row.g-4,
.row.gy-4 {
  gap: var(--gap);
}

.col-lg-4,
.col-md-4 {
  grid-column: span 4;
}

.col-lg-6,
.col-md-6 {
  grid-column: span 6;
}

.col-lg-3 {
  grid-column: span 3;
}

.col-lg-12,
.col-md-12 {
  grid-column: span 12;
}

.h-100 {
  height: 100%;
}

.text-center {
  text-align: center;
}

/* ---------- Botones y enlaces ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  padding: 16px 28px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: var(--body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn--solid {
  background: var(--accent);
  color: #fff;
}

.btn--solid:hover {
  background: var(--accent-deep);
  color: #fff;
}

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--ink);
  background: transparent;
}

.btn--ghost:hover {
  border-color: var(--ink);
}

.btn--light {
  background: var(--paper);
  color: var(--ink);
}

.btn--light:hover {
  background: #fff;
  color: var(--ink);
}

.link-underline {
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.25s, text-decoration-thickness 0.25s;
}

.link-underline:hover {
  color: var(--ink);
  text-decoration-thickness: 2px;
}

.arrow {
  display: inline-block;
  transition: transform 0.25s;
}

a:hover .arrow {
  transform: translateX(4px);
}

/* ---------- Encabezado ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--head-bg);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-head__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  display: block;
  height: 34px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

.brand__dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
  flex: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.5vw, 30px);
}

.site-nav a {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  transition: color 0.2s;
  min-width: 85px;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--accent);
}

.site-nav .nav-cta {
  color: var(--ink);
  border: 1px solid var(--ink);
  padding: 9px 16px;
  transition: background 0.2s, color 0.2s;
}

.site-nav .nav-cta:hover {
  background: var(--ink);
  color: var(--paper);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-right: -8px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 20px;
}

.nav-toggle svg {
  width: 20px;
  height: 20px;
}

.nav-toggle .icon-close,
.site-head.is-open .nav-toggle .icon-menu {
  display: none;
}

.site-head.is-open .nav-toggle .icon-close {
  display: block;
}

/* ---------- Hero ---------- */

.hero {
  padding: clamp(44px, 7vw, 92px) 0 clamp(52px, 7vw, 100px);
  border-bottom: 1px solid var(--line);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: clamp(18px, 3vw, 28px);
}

.kicker::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--accent);
  flex: none;
}

.hero__title {
  font-size: clamp(2.4rem, 6.2vw, 4.7rem);
  line-height: 1.02;
  letter-spacing: -0.032em;
  text-wrap: balance;
  margin-bottom: clamp(20px, 3vw, 30px);
}

.hero__title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.012em;
}

.hero__lead {
  font-size: clamp(1.04rem, 1.5vw, 1.2rem);
  line-height: 1.62;
  color: var(--ink-soft);
  /* max-width: 46ch; */
  text-align: justify;
  margin-bottom: 18px;
}

.hero__note {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--muted);
  /* max-width: 42ch; */
  text-align: justify;
  margin-bottom: clamp(26px, 4vw, 38px);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.hero__figure {
  margin: 0;
  padding: 12px;
  background: var(--paper-card);
  border: 1px solid var(--line);
}

.hero__figure img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center 18%;
}

.hero__figure figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Secciones ---------- */

.section {
  padding: clamp(56px, 8vw, 104px) 0;
  border-bottom: 1px solid var(--line);
}

/* Bandas alternadas: una sección con fondo tenue, la siguiente en blanco.
   :where() mantiene la especificidad en 0 para no pisar .contact ni .light-background. */
main > section {
  --band: var(--paper);
  background: var(--paper);
}

main > section:where(:nth-of-type(even)) {
  --band: var(--surface);
  background: var(--surface);
}

.light-background {
  background: var(--surface);
}

main {
  counter-reset: sec;
}

main > .section {
  counter-increment: sec;
}

.section-title {
  max-width: 940px;
  margin: 0 0 clamp(30px, 4vw, 46px);
  padding-left: 0;
}

/* En las landings el título hace también de contenedor
   (.container.section-title): debe conservar el centrado y el aire lateral
   del resto del sitio, sin perder la medida de lectura de 940 px. */
.container.section-title {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container.section-title > h2 {
  max-width: 940px;
}

.section-title h2 {
  font-size: clamp(1.7rem, 3.1vw, 2.5rem);
  letter-spacing: -0.024em;
  line-height: 1.1;
  position: relative;
  margin-bottom: 14px;
}

.section-title p {
  font-size: 0.98rem;
  color: var(--muted);
  /* max-width: 78ch; */
  text-align: justify;
  text-wrap: pretty;
}

.section-title p + p {
  margin-top: 10px;
}

.sec-head {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: clamp(12px, 3vw, 40px);
  align-items: baseline;
  margin-bottom: clamp(32px, 2vw, 48px);
}

.sec-head h2 {
  font-size: clamp(1.7rem, 3.1vw, 2.5rem);
  letter-spacing: -0.024em;
  line-height: 1.1;
}

.sec-note {
  font-size: 0.95rem;
  color: var(--muted);
  /* max-width: 54ch; */
  text-align: justify;
  justify-self: end;
}

/* ---------- Servicios (bandas) ---------- */

.svc {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) minmax(0, 1.35fr) auto;
  gap: clamp(12px, 3vw, 40px);
  align-items: start;
  padding: clamp(22px, 3vw, 32px) 0;
  border-top: 1px solid var(--line);
  transition: box-shadow 0.25s, padding-left 0.25s;
}

.svc:last-child {
  border-bottom: 1px solid var(--line);
}

.svc:hover {
  box-shadow: inset 3px 0 0 var(--accent);
  padding-left: 14px;
}

.svc__eyebrow {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  padding-top: 6px;
}

.svc__title {
  font-size: clamp(1.15rem, 1.7vw, 1.45rem);
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.svc__desc {
  font-size: 0.97rem;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.svc__link {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--accent);
  white-space: nowrap;
  padding-top: 6px;
  transition: color 0.2s;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.svc__link:hover {
  color: var(--ink);
  text-decoration: underline;
}

.stack-note {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 14px;
  margin-top: clamp(26px, 3vw, 40px);
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
}

.stack-note__label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------- Método ---------- */

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 36px);
}

.step {
  border-top: 1px solid var(--ink);
  padding-top: 18px;
}

.step__num {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
}

.step__num .ico {
  width: 18px;
  height: 18px;
}

.step h3 {
  font-size: 1.06rem;
  margin-bottom: 8px;
}

.step p {
  font-size: 0.93rem;
  color: var(--ink-soft);
  line-height: 1.65;
}

/* ---------- Tarjetas ---------- */

.web-service-card,
.service-comparison__card,
.promotion-card,
.seo-card {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 2.6vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  transition: border-color 0.2s, transform 0.2s;
  box-shadow: var(--card-shadow);
}

.web-service-card:hover,
.service-comparison__card:hover,
.seo-card:hover {
  border-color: var(--line-strong);
}

.web-service-card__eyebrow,
.service-comparison__eyebrow {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.web-service-card h3,
.service-comparison__card h3,
.promotion-card h3,
.seo-card h2,
.seo-card h3 {
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  letter-spacing: -0.015em;
}

.seo-card h2 {
  font-size: clamp(1.2rem, 1.9vw, 1.55rem);
}

.web-service-card p,
.service-comparison__card p,
.promotion-card p,
.seo-card p {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.65;
}

.web-service-card__list,
.seo-card ul,
.service-comparison__card ul {
  list-style: none;
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.web-service-card__list li,
.seo-card ul li,
.service-comparison__card ul li {
  position: relative;
  padding-left: 18px;
  font-size: 0.93rem;
  color: var(--ink-soft);
  line-height: 1.6;
  text-align: justify;
}

.web-service-card__list li::before,
.seo-card ul li::before,
.service-comparison__card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 1px;
  background: var(--accent);
}

.web-service-card__link {
  margin-top: auto;
  padding-top: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  border-top: 1px solid var(--line);
  transition: color 0.2s;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.web-service-card__link:hover {
  color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.service-comparison__card a {
  margin-top: auto;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.service-comparison__card a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.service-comparison__note {
  margin-top: 28px;
  font-size: 0.95rem;
  color: var(--muted);
  /* max-width: 76ch; */
  text-align: justify;
}

.service-comparison__note a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  font-weight: 700;
}

.service-comparison__note a:hover {
  text-decoration-thickness: 2px;
  color: var(--ink);
}

/* ---------- Promociones ---------- */

.promotion-card {
  position: relative;
}

.row > article[data-promotion-card] {
  display: flex;
}

.row > article[data-promotion-card] > .promotion-card {
  flex: 1;
}

.promotion-card__icon {
  display: none;
}

.promotion-card__benefit {
  font-weight: 500;
  color: var(--ink) !important;
}

.promotion-card__details {
  display: grid;
  gap: 14px;
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.promotion-card__details dt {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

.promotion-card__details dd {
  margin: 0;
  font-size: 0.93rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

.promotion-card__details ul {
  list-style: none;
  display: grid;
  gap: 6px;
  padding: 0;
}

.promotion-card__details ul li {
  position: relative;
  padding-left: 18px;
}

.promotion-card__details ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 1px;
  background: var(--accent);
}

.promotion-card__date {
  font-size: 0.88rem !important;
  color: var(--muted) !important;
  font-family: var(--serif);
  font-style: italic;
}

.promotion-card__action {
  margin-top: auto;
  display: inline-flex;
  justify-content: center;
  padding: 14px 22px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background 0.2s;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.promotion-card__action:hover {
  background: var(--accent-deep);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.promotions__empty {
  color: var(--muted);
  font-family: var(--serif);
  font-style: italic;
}

/* ---------- Preguntas frecuentes ---------- */

.seo-faq__accordion {
  display: grid;
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--display);
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.4;
  color: var(--ink);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex: none;
  font-family: var(--body);
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  color: var(--accent);
  margin-top: 2px;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item summary:hover {
  color: var(--accent);
}

.faq-item__body {
  padding: 0 0 24px;
  /* max-width: 74ch; */
  font-size: 0.97rem;
  color: var(--ink-soft);
  line-height: 1.7;
  text-align: justify;
}

/* Acordeón heredado (páginas de servicio) */
.accordion {
  display: grid;
  border-top: 1px solid var(--line);
}

.accordion-item {
  border-bottom: 1px solid var(--line);
}

.accordion-header {
  margin: 0;
}

.accordion-button {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 22px 0;
  border: 0;
  background: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--display);
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.4;
  color: var(--ink);
}

.accordion-button:hover {
  color: var(--accent);
}

.accordion-button::after {
  content: "–";
  flex: none;
  font-family: var(--body);
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  color: var(--accent);
  margin-top: 2px;
}

.accordion-button.collapsed::after {
  content: "+";
}

.accordion-body {
  padding: 0 0 24px;
  /* max-width: 74ch; */
  text-align: justify;
  font-size: 0.97rem;
  color: var(--ink-soft);
  line-height: 1.7;
}

.collapse:not(.show) {
  display: none;
}

.seo-faq__cta {
  margin-top: 28px;
}

.seo-faq__link {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 4px;
}

.seo-faq__link:hover {
  color: var(--accent);
}

/* ---------- Habilidades ---------- */

.skills-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px clamp(24px, 4vw, 56px);
  align-items: start;
}

.skills-content h3 {
  grid-column: 1 / -1;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 26px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.skills-content h3:first-child {
  margin-top: 0;
}

.skills-content h4 {
  grid-column: 1 / -1;
  font-size: 1rem;
  margin-top: 18px;
  color: var(--ink);
}

.progress {
  padding: 12px 0;
}

.skill {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--ink);
  margin-bottom: 8px;
}

.skill .val {
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.progress-bar-wrap {
  height: 6px;
  background: var(--line);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0;
  background: var(--highlights);
  transition: width 1.1s cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* Anchos por valor declarado: sin JavaScript */
.progress-bar[aria-valuenow="100"] { width: 100%; }
.progress-bar[aria-valuenow="95"] { width: 95%; }
.progress-bar[aria-valuenow="90"] { width: 90%; }
.progress-bar[aria-valuenow="85"] { width: 85%; }
.progress-bar[aria-valuenow="80"] { width: 80%; }
.progress-bar[aria-valuenow="75"] { width: 75%; }
.progress-bar[aria-valuenow="70"] { width: 70%; }
.progress-bar[aria-valuenow="65"] { width: 65%; }
.progress-bar[aria-valuenow="60"] { width: 60%; }

/* ---------- Currículum (bloque de la portada) ---------- */

.resume__intro {
  font-size: 0.97rem;
  color: var(--ink-soft);
  /* max-width: 82ch; */
  margin-bottom: clamp(10px, 1vw, 1px);
  text-align: justify;
}

.resume__intro a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.resume-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-strong);
  margin-bottom: 22px;
}

.resume-item {
  position: relative;
  padding-left: 24px;
  padding-bottom: 26px;
  border-left: 1px solid var(--line);
}

.resume-item:last-child {
  padding-bottom: 0;
}

.resume-item::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 8px;
  width: 7px;
  height: 7px;
  background: var(--band, var(--paper));
  border: 1px solid var(--accent);
  border-radius: 50%;
}

.resume-item h4 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.resume-item h5 {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 10px;
}

.resume-item p {
  font-size: 0.94rem;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.resume-item em {
  color: var(--muted);
}

.resume-item ul {
  list-style: none;
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.resume-item ul li {
  position: relative;
  padding-left: 16px;
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

.resume-item ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 1px;
  background: var(--line-strong);
}

/* ---------- Certificados ---------- */

.certificates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: clamp(16px, 2vw, 24px);
}

.certificate-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 0;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  transition: border-color 0.2s, transform 0.2s;
  box-shadow: var(--card-shadow);
}

.certificate-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.certificate-card__preview {
  display: block;
  aspect-ratio: 4 / 3;
  background: var(--paper-deep);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.certificate-card__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.certificate-card__body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.certificate-card__badge {
  align-self: flex-start;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--line-strong);
  padding: 2px 7px;
}

.certificate-card__title {
  display: block;
  font-size: 0.95rem;
  line-height: 1.35;
}

.certificate-card__meta,
.certificate-card__date {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  word-break: break-word;
}

/* ---------- Galería ---------- */

.about-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(14px, 2vw, 22px);
  align-items: start;
}

.about-gallery figure {
  margin: 0;
}

.about-gallery a {
  display: block;
  overflow: hidden;
  background: var(--paper-deep);
}

.about-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.5s;
}

.about-gallery a:hover img {
  transform: scale(1.03);
}

.about-gallery figcaption {
  margin-top: 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.5;
}

/* ---------- Banda de contacto ---------- */

.contact {
  background: var(--deep);
  color: var(--paper);
}

.contact .section-title h2 {
  color: var(--paper);
}

.contact .section-title p {
  color: var(--deep-soft);
}

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.info-wrap {
  display: grid;
  gap: 22px;
}

.info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.info-item i {
  font-size: 18px;
  color: var(--deep-soft);
  line-height: 1.4;
}

.info-item h3 {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--deep-soft);
  margin-bottom: 6px;
}

.info-item p {
  font-size: 0.97rem;
  color: var(--paper);
}

.info-item a {
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.info-item a:hover {
  border-bottom-color: var(--paper);
}

.contact__note {
  font-family: var(--serif);
  font-style: italic;
  color: var(--deep-soft);
  font-size: 0.97rem;
  margin-top: 26px;
  /* max-width: 54ch; */
  text-align: justify;
}

/* ---------- Formulario ---------- */

.php-email-form {
  display: grid;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.field {
  display: grid;
  gap: 7px;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--deep-soft);
}

.form-control {
  width: 100%;
  padding: 13px 15px;
  font-family: var(--body);
  font-size: 0.97rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
}

.form-control::placeholder {
  color: var(--muted);
}

textarea.form-control {
  resize: vertical;
  min-height: 140px;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.promotion-selection-message {
  font-size: 0.85rem;
  color: var(--deep-soft);
}

.loading,
.error-message,
.sent-message {
  display: none;
  font-size: 0.9rem;
}

.loading {
  color: var(--deep-soft);
}

.error-message {
  color: #FFD9D3;
}

.sent-message {
  color: #D8F0D2;
}

/* ---------- Landing de servicio ---------- */

.seo-hero {
  padding: clamp(44px, 7vw, 88px) 0 clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
}

.seo-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
}

.seo-hero__eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--accent);
}

.seo-hero h1 {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  /* max-width: 20ch; */
  text-wrap: balance;
  margin-bottom: 22px;
}

.seo-hero p {
  font-size: 1.02rem;
  color: var(--ink-soft);
  /* max-width: 64ch; */
  text-align: justify;
  margin-bottom: 12px;
}

.seo-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.seo-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 26px;
  background: var(--accent);
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.seo-cta:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
}

.seo-cta--secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.seo-cta--secondary:hover {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.seo-note {
  font-family: var(--serif);
  font-style: italic;
  color: var(--muted) !important;
  font-size: 0.95rem !important;
  margin-top: 20px;
}

/* Lámina ancha: imagen de apoyo con marco fino, mismo lenguaje que el retrato. */

.plate {
  margin: clamp(40px, 6vw, 64px) 0 0;
  padding: clamp(8px, 1vw, 12px);
  background: var(--paper-card);
  border: 1px solid var(--line);
}

.plate img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--paper-deep);
}

.plate figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.seo-process__step h3 {
  font-size: 1.02rem;
}

.seo-process__note {
  margin-top: 26px;
  font-size: 0.95rem;
  color: var(--muted);
  /* max-width: 80ch; */
  text-align: justify;
}

.seo-process__note a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

/* ---------- Pie y firma ---------- */

.signature {
  padding: clamp(44px, 6vw, 76px) 0 clamp(30px, 4vw, 48px);
}

.signature__box {
  text-align: right;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.signature__thanks {
  font-family: var(--serif);
  font-style: italic;
  color: var(--muted);
  font-size: 0.98rem;
  margin-bottom: 10px;
}

.signature__name {
  font-family: "Segoe Script", "Bradley Hand", "Brush Script MT", "Snell Roundhand", cursive;
  font-size: clamp(1.9rem, 4.2vw, 2.9rem);
  line-height: 1.15;
  color: var(--ink);
  transform: rotate(-2deg);
  transform-origin: right center;
  display: inline-block;
  margin-bottom: 8px;
}

.signature__meta {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.foot {
  border-top: 1px solid var(--line);
  padding: 26px 0 20px;
}

.foot__in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  /* text-transform: uppercase; */
  color: var(--muted);
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
}

.foot nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  min-width: 48px;
  min-height: 48px;
  
  /* Centra el ícono o texto dentro del área de 48x48 */
  justify-content: center;
  
  /* Opcional: ajusta el padding si el contenido es texto */
  padding: 12px;
  box-sizing: border-box;
}

.foot__ico {
  display: inline-flex;
  flex: none;
  color: var(--muted);
  transition: color 0.2s;
}

.foot__ico svg {
  width: 25px;
  height: 25px;
  display: block;
}

.foot nav a:hover .foot__ico {
  color: var(--accent);
}

/* Enlaces legales en el pie */
.foot__legal {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px 28px;
}

.foot__legal-sep {
  color: var(--muted);
}

/* ---------- Páginas legales ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}

.top-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 34px 0 44px;
  margin-top: 60px;
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.site-footer nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Contenido de páginas legales */
.legal-page {
  max-width: 78ch;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 70px) var(--gutter);
}

@media (max-width: 600px) {
  .legal-page {
    padding-inline: 24px;
  }
}

.legal-header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
  margin-bottom: 32px;
}

.legal-header h1 {
  font-size: clamp(1.7rem, 3.1vw, 2.5rem);
  letter-spacing: -0.024em;
  line-height: 1.1;
  color: var(--ink);
  margin: 0 0 12px 0;
}

.legal-header .legal-accent {
  display: inline-block;
  width: 40px;
  height: 3px;
  background: var(--accent);
  margin-bottom: 16px;
}

.legal-meta {
  background: var(--surface);
  border-left: 3px solid var(--accent);
  padding: 16px 20px;
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 32px;
  line-height: 1.6;
}

.legal-page h2 {
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 36px 0 12px 0;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}

.legal-page h2:first-child {
  margin-top: 0;
}

.legal-page h3 {
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
  margin: 24px 0 8px 0;
}

.legal-page p {
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 16px;
  font-size: 0.98rem;
}

.legal-page ul {
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 20px;
  padding-left: 20px;
  font-size: 0.98rem;
}

.legal-page ul li {
  margin-bottom: 8px;
}

.legal-page a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.legal-callout {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.legal-note {
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 40px;
  line-height: 1.6;
}

.legal-note small {
  font-size: 0.85rem;
}

/* ---------- Flotantes ---------- */

.fab-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #1FA855;
  color: #fff;
  font-size: 24px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(9, 30, 66, 0.22);
}

.fab-whatsapp:hover {
  background: #178a45;
}

.scroll-top {
  position: fixed;
  right: 18px;
  bottom: 82px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  font-size: 20px;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}

.scroll-top.active {
  opacity: 1;
  visibility: visible;
}

/* ---------- Diálogo (certificados y galería) ---------- */

dialog.media-dialog {
  width: min(920px, calc(100vw - 32px));
  max-height: calc(100vh - 40px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  overflow: auto;
}

dialog.media-dialog::backdrop {
  background: rgba(20, 22, 26, 0.72);
}

.media-dialog__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--paper);
  z-index: 1;
}

.media-dialog__head h2 {
  font-size: 0.98rem;
  letter-spacing: -0.01em;
}

.media-dialog__close {
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  cursor: pointer;
  border-radius: var(--radius);
  font-size: 18px;
  line-height: 1;
}

.media-dialog__close:hover {
  border-color: var(--ink);
}

.media-dialog__body {
  padding: 0;
  background: var(--surface);
}

.media-dialog__body img,
.media-dialog__body iframe {
  display: block;
  border: 0;
}

/* Nunca ampliar por encima del tamaño real del archivo: así no se pixela. */
.media-dialog__body img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 130px);
  margin: 0 auto;
}

.media-dialog__body iframe {
  width: 100%;
  height: min(78vh, 780px);
}

/* ---------- Utilidades heredadas ---------- */

.img-fluid {
  max-width: 100%;
  height: auto;
}

.position-relative {
  position: relative;
}

[hidden] {
  display: none !important;
}

/* ---------- Adaptación ---------- */

@media (max-width: 1000px) {
  .sec-head {
    grid-template-columns: 44px minmax(0, 1fr);
    row-gap: 8px;
  }

  .sec-note {
    grid-column: 2;
    justify-self: start;
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 32px;
  }
}

@media (max-width: 920px) {
  .hero__grid {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .hero__figure {
    max-width: none;
  }

  .contact__grid {
    grid-template-columns: 1fr;
  }

  .col-lg-4,
  .col-lg-6,
  .col-md-4,
  .col-md-6,
  .col-lg-3 {
    grid-column: span 12;
  }

  .col-md-6 {
    grid-column: span 6;
  }

  .svc {
    grid-template-columns: 104px minmax(0, 1fr);
    row-gap: 10px;
  }

  .svc__title {
    grid-column: 2;
  }

  .svc__desc,
  .svc__link {
    grid-column: 2;
  }

  .svc__link {
    padding-top: 0;
  }

  .svc:hover {
    padding-left: 0;
    box-shadow: none;
  }
}

@media (max-width: 860px) {
  .section-title {
    max-width: none;
  }

  .skills-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 18px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }

  .site-head.is-open .site-nav {
    display: flex;
  }

  .site-nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 12px;
  }

  .site-nav .nav-cta {
    margin-top: 14px;
    padding: 14px 18px;
    text-align: center;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .svc {
    grid-template-columns: 1fr;
  }

  .svc__title,
  .svc__desc,
  .svc__link {
    grid-column: 1;
  }

  .svc__eyebrow {
    padding-top: 0;
  }

  .signature__box {
    text-align: left;
  }

  .signature__name {
    transform-origin: left center;
  }

  .foot__in {
    flex-direction: column;
    align-items: flex-start;
  }

  .foot nav {
    gap: 4px 18px;
  }

  .foot nav a {
    padding: 8px 0;
  }

  .about-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- Banner de cookies ---------- */

.cookie-banner {
  position: fixed;
  inset: auto 18px 18px auto;
  z-index: 1000;
  max-width: min(620px, calc(100vw - 36px));
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(20, 22, 26, 0.12);
  padding: 22px 24px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.cookie-banner.hidden {
  display: none !important;
}

.cookie-banner__content {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cookie-banner__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.01em;
}

.cookie-banner__text {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.cookie-banner__text a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.cookie-banner__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.cookie-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 16px;
  cursor: pointer;
  font-family: inherit;
}

.cookie-btn--primary {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.cookie-btn--primary:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.cookie-btn--secondary {
  background: var(--paper);
  color: var(--ink);
}

.cookie-btn--secondary:hover {
  background: var(--surface);
  border-color: var(--accent);
}

.cookie-btn svg {
  width: 16px;
  height: 16px;
  flex: none;
}

/* Modal de configuración */
.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 1001;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.cookie-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 22, 26, 0.6);
  backdrop-filter: blur(4px);
}

.cookie-modal__panel {
  position: relative;
  z-index: 2;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  max-width: 560px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 28px 26px;
  box-shadow: 0 20px 60px rgba(20, 22, 26, 0.15);
}

.cookie-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.cookie-modal__head h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.01em;
}

.cookie-modal__close {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  cursor: pointer;
  border-radius: var(--radius);
  font-size: 16px;
  line-height: 1;
  font-family: inherit;
}

.cookie-modal__close:hover {
  border-color: var(--accent);
}

.cookie-modal__group {
  margin-bottom: 20px;
}

.cookie-modal__group h3 {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 10px 0;
}

.cookie-modal__desc {
  margin: 0 0 14px 0;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.6;
}

.cookie-option {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-bottom: 10px;
  cursor: pointer;
}

.cookie-option input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
}

.cookie-option label {
  cursor: pointer;
  margin: 0;
}

.cookie-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 26px;
}

/* Botón flotante para cambiar preferencias */
.cookie-prefs-toggle {
  position: fixed;
  inset: auto 18px auto 18px;
  z-index: 950;
  display: none;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(20, 22, 26, 0.18);
}

.cookie-prefs-toggle:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.cookie-prefs-toggle svg {
  width: 14px;
  height: 14px;
  flex: none;
}

@media (max-width: 600px) {
  .cookie-banner {
    inset: auto 12px 12px auto;
    max-width: calc(100vw - 24px);
    padding: 18px 20px;
  }

  .cookie-modal {
    padding: 12px;
  }

  .cookie-modal__panel {
    padding: 22px 18px;
  }

  .cookie-modal__actions {
    flex-direction: column;
  }

  .cookie-modal__actions .cookie-btn {
    width: 100%;
  }

  .cookie-prefs-toggle {
    inset: auto 12px auto 12px;
  }
}

/* ---------- Utilidades heredadas ---------- */

@media print {
  .site-head,
  .fab-whatsapp,
  .scroll-top,
  .signature,
  .foot {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .section,
  .contact {
    background: #fff !important;
    color: #000 !important;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Resaltador animado en la palabra clave del titular (solo transform: no repinta el texto) */
.hero__title .hl {
  position: relative;
  isolation: isolate;
  padding: 0 0.08em;
  white-space: nowrap;
}
.hero__title .hl::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.05em;
  height: 0.42em;
  background: #ffe08a;
  border-radius: 0.08em;
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left center;
  animation: hl-sweep 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) 0.45s forwards;
}
@keyframes hl-sweep {
  to { transform: scaleX(1); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__title .hl::after {
    animation: none;
    transform: scaleX(1);
  }
}

/* ---------- Accesibilidad v2.11: contraste ---------- */

/* 1. Título de contacto: de 1.7:1 a 10.65:1 con blanco */
.contact .sec-head h2 { color: var(--paper); }
.contact .sec-head .sec-note { color: var(--deep-soft); }

/* 2. Links del pie y páginas legales: gris oscuro + subrayado fino */
.foot__in a,
.foot__legal a,
.site-footer nav a,
.top-nav a {
  color: var(--ink-soft);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.foot__in a:hover,
.foot__legal a:hover,
.site-footer nav a:hover,
.top-nav a:hover {
  color: var(--ink);
  text-decoration-thickness: 2px;
}
/* Los iconos del pie siguen limpios, sin subrayado */
.foot nav:not(.foot__legal) a { text-decoration: none; }

/* ---------- Accesibilidad v2.12: link de privacidad del formulario ---------- */
/* Era azul #0A57A8 sobre azul oscuro #0A3F73 (1.49:1). Ahora blanco (10.65:1). */
.contact a { color: var(--paper); }
#contact-form label a {
  color: var(--paper);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
#contact-form label a:hover {
  text-decoration-thickness: 2px;
}