/* Cruz Guzmán · sitio de servicios (mobile-first) */

:root {
  --deep: #073B52;
  --petrol: #155C7E;
  --sky: #91BFF0;
  --pale: #EAF2FA;
  --paper: #FAFBFC;
  --white: #FFFFFF;
  --muted: #5D6B74;
  --line: #D6E1E9;
  --error: #A3302A;
  --success: #1E6B4F;
  --serif: "DM Serif Display", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: 20px;
  --header-h: 64px;
  --ease: cubic-bezier(.22, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--deep);
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--petrol); outline-offset: 3px; border-radius: 2px; }
.contact :focus-visible { outline-color: var(--sky); }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--deep); color: #fff; padding: 12px 18px; border-radius: 4px; font-weight: 600; }
.skip-link:focus { top: 12px; }

.wrap { max-width: 1160px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 112px); }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; }
h1 { font-size: clamp(2.5rem, 8.5vw, 4rem); line-height: 1.05; letter-spacing: -.015em; }
h2 { font-size: clamp(2rem, 5.6vw, 3rem); line-height: 1.1; text-wrap: balance; }
h3 { font-size: 1.45rem; line-height: 1.2; }
h1 em, h2 em { color: var(--petrol); }

.eyebrow {
  font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--petrol); margin-bottom: 16px;
  display: flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.eyebrow-light { color: var(--sky); }
.section-head { max-width: 40rem; margin-bottom: 40px; }
.section-intro { color: var(--muted); margin-top: 16px; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 26px;
  background: var(--deep); color: #fff; border: 1px solid var(--deep); border-radius: 999px;
  font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.btn:hover { background: var(--petrol); border-color: var(--petrol); }
.btn-arrow { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(3px); }
.btn-ghost { background: transparent; color: var(--deep); border-color: #B9CBD8; }
.btn-ghost:hover { background: var(--white); border-color: var(--deep); }
.btn-light { background: #fff; color: var(--deep); border-color: #fff; }
.btn-light:hover { background: var(--pale); border-color: var(--pale); color: var(--deep); }
.btn-small { min-height: 44px; padding: 10px 20px; font-size: .95rem; }

/* Cabecera */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(250, 251, 252, .96); border-bottom: 1px solid transparent;
  transition: height .3s var(--ease), border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { --header-h: 58px; border-bottom-color: var(--line); box-shadow: 0 10px 30px -24px rgba(7, 59, 82, .45); }
.header-inner { height: 100%; max-width: 1160px; margin-inline: auto; padding-inline: var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 16px; }

/* Marca (cabecera compacta: símbolo + nombre; el lema va en el pie) */
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--deep); min-width: 0; }
.brand-logo { width: 42px; height: 31px; flex: none; transition: width .3s var(--ease), height .3s var(--ease); }
.wordmark { display: flex; flex-direction: column; line-height: 1; min-width: 0; }
.wordmark-name { font-family: var(--sans); font-weight: 500; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.wordmark-tag { display: none; margin-top: 7px; font-size: .7rem; font-weight: 600; letter-spacing: .01em; color: var(--petrol); white-space: nowrap; }
.site-header.is-scrolled .brand-logo { width: 36px; height: 27px; }
@media (min-width: 560px) { .wordmark-name { font-size: .9rem; letter-spacing: .18em; } }
.brand-light { color: #fff; --cg-dark: #FFFFFF; --cg-light: #91BFF0; --cg-shadow: rgba(255, 255, 255, .12); }
.brand-light .brand-logo { width: 62px; height: 46px; }
.brand-light .wordmark-name { font-size: 1.05rem; letter-spacing: .2em; }
.brand-light .wordmark-tag { display: block; color: var(--sky); }

/* Botón de menú (móvil) */
.menu-toggle {
  display: inline-flex; align-items: center; gap: 10px; flex: none;
  min-height: 44px; padding: 0 4px 0 12px; background: none; border: 0;
  font-weight: 600; font-size: .9rem; color: var(--deep);
}
.menu-icon { position: relative; width: 40px; height: 40px; border-radius: 50%; background: var(--deep); }
.menu-icon span { position: absolute; left: 12px; right: 12px; height: 1.6px; background: #fff; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.menu-icon span:nth-child(1) { top: 14px; }
.menu-icon span:nth-child(2) { top: 19.5px; }
.menu-icon span:nth-child(3) { top: 25px; }
.menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* Navegación: panel en móvil */
.site-nav {
  position: absolute; top: 100%; left: 0; right: 0; height: calc(100dvh - var(--header-h));
  display: none; flex-direction: column; gap: 24px; overflow-y: auto;
  padding: 16px var(--gutter) 32px; background: var(--paper); border-top: 1px solid var(--line);
}
.site-nav.is-open { display: flex; animation: nav-in .25s var(--ease); }
@keyframes nav-in { from { transform: translateY(-8px); } to { transform: none; } }
.site-nav ul { display: flex; flex-direction: column; }
.site-nav li a {
  display: flex; align-items: center; justify-content: space-between; padding: 16px 0;
  font-family: var(--serif); font-size: 1.6rem; text-decoration: none; border-bottom: 1px solid var(--line);
}
.site-nav li a::after { content: "→"; font-family: var(--sans); font-size: 1rem; color: var(--sky); }
.site-nav li a[aria-current="true"] { color: var(--petrol); }
.site-nav .btn { align-self: stretch; }
body.menu-open { overflow: hidden; }

@media (min-width: 900px) {
  :root { --header-h: 74px; }
  .menu-toggle { display: none; }
  .site-nav {
    position: static; height: auto; display: flex; flex-direction: row; align-items: center; gap: 28px; overflow: visible;
    padding: 0; background: none; border: 0; animation: none;
  }
  .site-nav ul { flex-direction: row; gap: 24px; }
  .site-nav li a { display: inline; padding: 8px 0; border: 0; font-family: var(--sans); font-size: .95rem; font-weight: 500; }
  .site-nav li a::after { content: none; }
  .site-nav li a:hover, .site-nav li a[aria-current="true"] { color: var(--petrol); text-decoration: underline; text-underline-offset: 6px; }
  .site-nav .btn { align-self: auto; }
}

/* Hilo de progreso de lectura */
.scroll-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none; }
.scroll-progress span {
  position: relative; display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--sky), var(--petrol));
}
.scroll-progress span::after {
  content: ""; position: absolute; right: -4px; top: -3px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--petrol); box-shadow: 0 0 0 3px rgba(145, 191, 240, .45);
}
.scroll-progress span[style="width: 0%;"]::after { display: none; }

/* Volver arriba */
body.menu-open .wa-float, body.menu-open .to-top { display: none; }
.to-top {
  position: fixed; right: 16px; bottom: 84px; z-index: 60;
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--white); color: var(--deep); border: 1px solid var(--line);
  box-shadow: 0 12px 28px -14px rgba(7, 59, 82, .5);
  opacity: 0; transform: translateY(8px); pointer-events: none; visibility: hidden;
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s linear .25s;
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s; }
.to-top:hover { border-color: var(--petrol); color: var(--petrol); }
.to-top svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Hero */
.hero { padding-block: 32px clamp(64px, 8vw, 96px); overflow: hidden; }
.hero-grid { display: grid; gap: 48px; align-items: center; }
.lead { margin-top: 22px; font-size: clamp(1.0625rem, 2vw, 1.2rem); color: var(--muted); max-width: 33rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-facts { margin-top: 32px; display: grid; gap: 8px; font-size: .95rem; }
.hero-facts li { display: flex; gap: 12px; align-items: baseline; }
.hero-facts li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 0 3px var(--pale); transform: translateY(-1px); }

.hero-photo { position: relative; max-width: 420px; width: 100%; margin-inline: auto; }
.arch {
  aspect-ratio: 4 / 5; overflow: hidden; background: #6f6566;
  border-radius: 50% 50% 8px 8px / 40% 40% 8px 8px;
}
.arch img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo::before {
  content: ""; position: absolute; inset: -16px -16px 35% -16px; pointer-events: none;
  border: 1px solid #B9CBD8; border-bottom: 0; border-radius: 50% 50% 0 0 / 40% 40% 0 0;
}
.photo-note {
  position: relative; margin: -48px 0 0 auto; width: min(80%, 290px);
  background: var(--white); border: 1px solid var(--line); border-radius: 6px;
  padding: 16px 20px; box-shadow: 0 18px 40px -28px rgba(7, 59, 82, .5);
  font-family: var(--serif); font-size: 1.25rem; line-height: 1.2;
}
.photo-note em { color: var(--petrol); }
@media (min-width: 900px) {
  .hero { padding-top: 56px; }
  .hero-grid { grid-template-columns: 7fr 5fr; gap: 72px; }
  .photo-note { margin: -72px 0 0 -48px; }
}

/* Video */
.video-section { background: var(--pale); }
.video-grid { display: grid; gap: 40px; align-items: center; }
.video-frame {
  width: 100%; max-width: 340px; margin-inline: auto;
  padding: 10px; background: var(--deep); border-radius: 32px;
  box-shadow: 0 30px 60px -36px rgba(7, 59, 82, .6);
}
.video-frame video {
  display: block; width: 100%; height: auto; aspect-ratio: 9 / 16;
  border-radius: 24px; background: #F4F7FA; object-fit: cover;
}
@media (min-width: 900px) {
  .video-grid { grid-template-columns: 6fr 5fr; gap: 72px; }
  .video-frame { max-width: 360px; }
}

/* Autodiagnóstico */
.diag-grid { display: grid; gap: 40px; align-items: start; }
.diag-stages { margin-top: 28px; display: grid; gap: 0; border-left: 1.5px solid var(--sky); padding-left: 0; }
.diag-stages li { position: relative; padding: 6px 0 10px 24px; color: var(--muted); font-size: .95rem; }
.diag-stages li::before {
  content: ""; position: absolute; left: -6px; top: 12px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--paper); border: 1.5px solid var(--petrol);
}
.diag-stages li:last-child::before { background: var(--petrol); }
.diag-stages strong { display: block; color: var(--deep); font-family: var(--serif); font-weight: 400; font-size: 1.2rem; line-height: 1.2; }
.diag-privacy { margin-top: 16px; font-size: .875rem; color: var(--muted); }

.diag-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  padding: 24px 20px; box-shadow: 0 30px 60px -48px rgba(7, 59, 82, .55);
  min-height: 420px;
}
@media (min-width: 600px) { .diag-card { padding: 36px; } }
@media (min-width: 960px) { .diag-grid { grid-template-columns: 5fr 7fr; gap: 72px; } }

.diag-count { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--petrol); }
.diag-area { color: var(--muted); letter-spacing: .08em; }
.diag-bar { margin-top: 10px; height: 4px; border-radius: 4px; background: var(--pale); overflow: hidden; }
.diag-bar span { display: block; height: 100%; background: var(--petrol); border-radius: 4px; transition: width .4s var(--ease); }

.diag-question { border: 0; padding: 0; margin: 28px 0 0; min-width: 0; }
.diag-question legend { padding: 0; margin-bottom: 20px; }
.diag-q-text { display: block; font-family: var(--serif); font-size: clamp(1.45rem, 3.4vw, 1.9rem); line-height: 1.2; outline: none; }
.diag-options { display: grid; gap: 10px; }
.diag-option {
  position: relative; display: flex; align-items: center; gap: 14px;
  min-height: 56px; padding: 12px 18px; cursor: pointer;
  border: 1px solid #B9CBD8; border-radius: 10px; background: var(--paper);
  font-weight: 600; transition: border-color .2s, background-color .2s;
}
.diag-option:hover { border-color: var(--petrol); background: #fff; }
.diag-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.diag-dot { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--petrol); display: grid; place-items: center; background: #fff; }
.diag-dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--petrol); transform: scale(0); transition: transform .2s var(--ease); }
.diag-option:has(input:checked) { border-color: var(--petrol); background: var(--pale); }
.diag-option:has(input:checked) .diag-dot::after { transform: scale(1); }
.diag-option:has(input:focus-visible) { outline: 3px solid var(--petrol); outline-offset: 2px; }
.diag-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }
.diag-nav .btn[disabled] { opacity: .45; cursor: not-allowed; }

.diag-stageline { display: grid; grid-template-columns: repeat(4, 1fr); margin: 18px 0 24px; position: relative; }
.diag-stageline::before { content: ""; position: absolute; left: 12%; right: 12%; top: 7px; height: 1.5px; background: var(--line); }
.diag-stageline li { position: relative; display: grid; justify-items: center; gap: 6px; text-align: center; font-size: .75rem; font-weight: 600; color: var(--muted); line-height: 1.25; }
.diag-stageline li span { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 1.5px solid #B9CBD8; position: relative; z-index: 1; }
.diag-stageline li.is-past span { border-color: var(--petrol); background: var(--pale); }
.diag-stageline li.is-current { color: var(--deep); font-weight: 700; }
.diag-stageline li.is-current span { background: var(--petrol); border-color: var(--petrol); box-shadow: 0 0 0 5px var(--pale); }

.diag-result-title { font-size: clamp(1.6rem, 4vw, 2.1rem); outline: none; }
.diag-result-title em { color: var(--petrol); }
.diag-score { display: inline-block; margin-left: 6px; padding: 2px 10px; border-radius: 999px; background: var(--pale); font-family: var(--sans); font-size: .85rem; font-weight: 700; color: var(--petrol); vertical-align: middle; }
.diag-result-lead { margin-top: 14px; color: var(--muted); }
.diag-result-lead strong { color: var(--deep); }
.diag-areas { margin-top: 22px; display: grid; gap: 10px; }
.diag-areas li { display: grid; grid-template-columns: 1fr 1.1fr auto; gap: 12px; align-items: center; font-size: .92rem; }
.diag-meter { height: 6px; border-radius: 6px; background: var(--pale); overflow: hidden; }
.diag-meter span { display: block; height: 100%; background: var(--sky); border-radius: 6px; }
.diag-area-level { font-size: .8rem; font-weight: 600; color: var(--muted); min-width: 6.5em; text-align: right; }
.diag-areas li.is-weakest .diag-area-name { font-weight: 700; }
.diag-areas li.is-weakest .diag-meter span { background: var(--petrol); }
.diag-areas li.is-weakest .diag-area-level { color: var(--petrol); }
@media (max-width: 480px) {
  .diag-areas li { grid-template-columns: 1fr auto; row-gap: 4px; }
  .diag-meter { grid-column: 1 / -1; grid-row: 2; }
}
.diag-rec { margin-top: 24px; padding: 16px 18px; border-radius: 10px; background: var(--pale); border-left: 3px solid var(--petrol); }
.diag-rec-label { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--petrol); margin-bottom: 4px; }
.diag-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.diag-foot { margin-top: 18px; font-size: .85rem; color: var(--muted); }
.diag-restart { background: none; border: 0; padding: 4px 0; color: var(--petrol); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }

/* Servicios */
.services { background: var(--white); border-top: 1px solid var(--line); }
.service-grid { display: grid; gap: 16px; }
.service {
  display: flex; flex-direction: column; gap: 12px;
  padding: 28px 24px; background: var(--paper);
  border: 1px solid var(--line); border-radius: 8px;
  transition: border-color .25s, transform .25s var(--ease);
}
.service:hover { border-color: #B9CBD8; transform: translateY(-2px); }
.service-num { font-size: .8rem; font-weight: 700; letter-spacing: .14em; color: var(--petrol); }
.service p { color: var(--muted); }
.service-link {
  margin-top: auto; padding-top: 8px; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  color: var(--petrol); font-weight: 600; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px;
}
.service-link svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.service-link:hover svg { transform: translateX(3px); }
.service-cta { background: var(--deep); border-color: var(--deep); color: #fff; justify-content: center; }
.service-cta p { color: #D3E2EE; }
.service-cta .btn { margin-top: 8px; align-self: flex-start; }
@media (min-width: 640px) { .service-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .service-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } .service { padding: 32px 28px; } }

.standards { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.standards-label { font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--petrol); margin-bottom: 16px; }
.standards ul { display: flex; flex-wrap: wrap; gap: 10px; }
.standards li { padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: .92rem; background: var(--paper); }
.standards strong { color: var(--petrol); margin-right: 6px; }

/* Cómo trabajo */
.steps { display: grid; gap: 28px; counter-reset: s; }
.steps li { position: relative; padding-left: 56px; }
.steps span {
  position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; font-size: .82rem; font-weight: 700;
  border: 1.5px solid var(--petrol); color: var(--petrol); background: var(--paper);
}
.steps li:last-child span { background: var(--petrol); color: #fff; }
.steps p { color: var(--muted); margin-top: 6px; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 32px; position: relative; }
  .steps::before { content: ""; position: absolute; left: 20px; right: 10%; top: 20px; height: 1.5px; background: var(--sky); }
  .steps li { padding: 60px 0 0; }
}

/* Sobre mí */
.about { background: var(--pale); }
.about-grid { display: grid; gap: 48px; align-items: center; }
.about-photo { position: relative; max-width: 420px; width: 100%; margin-inline: auto; }
.about-photo::before {
  content: ""; position: absolute; inset: -14px -14px 40% -14px; pointer-events: none;
  border: 1px solid #B9CBD8; border-bottom: 0; border-radius: 50% 50% 0 0 / 40% 40% 0 0;
}
.about-arch { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 50% 50% 10px 10px / 40% 40% 10px 10px; background: #6f6566; }
.about-arch img { width: 100%; height: 100%; object-fit: cover; }
.about-badge {
  position: absolute; left: -12px; bottom: 28px;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px 12px 12px; border-radius: 999px;
  background: var(--white); box-shadow: 0 18px 40px -24px rgba(7, 59, 82, .55);
  font-size: .85rem; color: var(--muted);
}
.about-badge svg { flex: none; width: 36px; height: 36px; padding: 7px; border-radius: 50%; background: var(--deep); fill: none; stroke: var(--sky); stroke-width: 1.6; }
.about-badge span { display: grid; line-height: 1.3; }
.about-badge strong { color: var(--deep); font-size: .95rem; }

.about-lead { margin-top: 18px; font-family: var(--serif); font-size: clamp(1.3rem, 3vw, 1.6rem); line-height: 1.3; color: var(--petrol); max-width: 30rem; }
.about-copy > p:not(.eyebrow):not(.about-lead) { margin-top: 16px; color: var(--muted); max-width: 34rem; }
.about-quote .quote-close { left: auto; top: auto; right: 22px; bottom: 22px; width: 32px; transform: rotate(180deg); }
.about-quote { position: relative; margin: 28px 0 32px; padding: 22px 60px 22px 72px; background: var(--white); border-radius: 12px; max-width: 34rem; }
.about-quote svg { position: absolute; left: 22px; top: 24px; width: 32px; fill: var(--sky); }
.about-quote p { font-family: var(--serif); font-style: italic; font-size: clamp(1.25rem, 2.6vw, 1.5rem); line-height: 1.3; color: var(--deep); }

.credentials { margin-top: clamp(56px, 8vw, 88px); }
.credentials-title { font-size: clamp(1.6rem, 4vw, 2rem); margin-bottom: 20px; }
.cred-grid { display: grid; gap: 16px; }
.cred { padding: 24px; border-radius: 12px; background: var(--white); border: 1px solid #D3E1EC; }
.cred-label { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--petrol); }
.cred h4 { margin: 10px 0 6px; font-family: var(--serif); font-weight: 400; font-size: 1.4rem; line-height: 1.2; }
.cred p:not(.cred-label) { color: var(--muted); font-size: .95rem; }
.cert-list { display: grid; gap: 0; margin-top: 10px; }
.cert-list li { display: grid; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cert-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.cert-list strong { color: var(--deep); font-weight: 700; }
.cert-list span { color: var(--muted); font-size: .95rem; }
@media (min-width: 700px) {
  .cred-grid { grid-template-columns: 1fr 1fr; }
  .cred-wide { grid-column: 1 / -1; }
  .cert-list li { grid-template-columns: 11rem 1fr; gap: 16px; align-items: baseline; }
}
@media (min-width: 1000px) {
  .cred-grid { grid-template-columns: 1fr 1fr 2fr; }
  .cred-wide { grid-column: auto; }
  .cert-list li { grid-template-columns: 9.5rem 1fr; }
}
@media (min-width: 900px) {
  .about-grid { grid-template-columns: 5fr 7fr; gap: 88px; }
  .about-badge { left: -28px; }
}

/* Clientes y proyectos */
.projects { background: var(--white); border-top: 1px solid var(--line); }
.projects[hidden], [data-nav-projects][hidden] { display: none; }
.project-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.project { display: flex; flex-direction: column; gap: 10px; padding: 28px 24px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.project-meta { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--petrol); }
.project-service { align-self: flex-start; padding: 4px 12px; border-radius: 999px; background: var(--pale); font-size: .85rem; font-weight: 600; color: var(--petrol); }
.project-details { display: grid; gap: 10px; margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line); }
.project-details dt { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.project-details dd { margin-top: 2px; }

/* Contacto */
.contact { background: var(--deep); color: #fff; }
.contact h2 em { color: var(--sky); }
.contact-grid { display: grid; gap: 40px; }
.contact-copy > p { color: #D3E2EE; margin-top: 18px; max-width: 30rem; }
.contact-photo { display: none; }
.contact-meta { margin-top: 28px; display: grid; gap: 8px; color: #D3E2EE; font-size: .95rem; }
.contact-meta a { color: #fff; font-weight: 600; }
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 5fr 6fr; gap: 72px; align-items: start; }
  .contact-photo { display: block; margin-top: 32px; max-width: 260px; }
  .contact-photo img { border-radius: 130px 130px 8px 8px; aspect-ratio: 4 / 5; object-fit: cover; }
}

/* Tres formas de empezar */
.contact-head { max-width: 40rem; }
.contact-head > p { color: #D3E2EE; margin-top: 16px; }
.start-options { position: relative; display: grid; gap: 16px; margin-top: 40px; }
.start-card {
  position: relative; display: flex; flex-direction: column; gap: 12px;
  padding: 28px 24px; border-radius: 12px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(145, 191, 240, .28);
}
.start-card p { color: #D3E2EE; }
.start-card .btn { margin-top: auto; align-self: flex-start; }
.start-card h3 { font-size: 1.55rem; padding-right: 48px; }
.start-num { position: absolute; top: 22px; right: 24px; font-family: var(--serif); font-size: 2rem; line-height: 1; color: var(--sky); opacity: .7; }
.start-icon { width: 36px; height: 36px; fill: none; stroke: var(--sky); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.start-card-featured { background: #fff; border-color: #fff; color: var(--deep); }
.start-card-featured p { color: var(--muted); }
.start-card-featured .start-icon { stroke: var(--petrol); }
.start-card-featured .start-num { color: var(--petrol); opacity: .5; }
.start-card-featured .btn-light { background: var(--deep); border-color: var(--deep); color: #fff; }
.start-card-featured .btn-light:hover { background: var(--petrol); border-color: var(--petrol); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
.btn-outline-light:hover { background: #fff; color: var(--deep); border-color: #fff; }
@media (min-width: 900px) {
  .start-options { grid-template-columns: 1.15fr 1fr 1fr; gap: 20px; padding-top: 30px; }
  .start-options::before {
    content: ""; position: absolute; top: 7px; left: 30px; right: 30px; height: 1.5px;
    background: linear-gradient(90deg, var(--sky), rgba(145, 191, 240, .35));
  }
  .start-card::before {
    content: ""; position: absolute; top: -30px; left: 24px; width: 14px; height: 14px; border-radius: 50%;
    background: var(--deep); border: 1.5px solid var(--sky);
  }
  .start-card-featured::before { background: var(--sky); }
  .start-card { padding: 32px 28px; }
}

.contact-grid { margin-top: clamp(56px, 8vw, 88px); }
.contact-sub { font-size: clamp(1.6rem, 4vw, 2.1rem); }

/* Mis contactos */
.channels { margin-top: clamp(56px, 8vw, 88px); padding-top: 40px; border-top: 1px solid rgba(145, 191, 240, .25); }
.channels-title { font-size: 1.6rem; margin-bottom: 20px; }
.channel-list { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .channel-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .channel-list { grid-template-columns: repeat(3, 1fr); } }
.channel-list li[hidden] { display: none; }
.channel {
  display: flex; align-items: center; gap: 14px; height: 100%;
  padding: 14px 16px; border-radius: 10px; text-decoration: none; color: #fff;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(145, 191, 240, .2);
  transition: background-color .2s, border-color .2s;
}
a.channel:hover { background: rgba(255, 255, 255, .1); border-color: var(--sky); }
.channel svg { flex: none; width: 40px; height: 40px; padding: 9px; border-radius: 50%; border: 1px solid rgba(145, 191, 240, .45); fill: none; stroke: var(--sky); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.channel span { display: grid; min-width: 0; }
.channel small { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--sky); }
.channel strong { font-weight: 600; overflow-wrap: break-word; }

.contact-form {
  background: var(--white); color: var(--deep); border-radius: 10px;
  padding: 28px 20px; display: grid; gap: 18px;
}
@media (min-width: 600px) { .contact-form { padding: 36px; } }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .95rem; }
.req { color: var(--petrol); }
.optional { color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  background: var(--paper); border: 1px solid #B9CBD8; border-radius: 6px; font-size: 1rem;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.field ::placeholder { color: #7D8A92; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--petrol); box-shadow: 0 0 0 3px rgba(21, 92, 126, .25); }
.field [aria-invalid="true"] { border-color: var(--error); background: #FDF7F6; }
.select-wrap { position: relative; }
.select-wrap::after { content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; border-right: 1.5px solid var(--deep); border-bottom: 1.5px solid var(--deep); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.field select { appearance: none; padding-right: 44px; }
.field-error { font-size: .875rem; font-weight: 600; color: var(--error); }
.field-error:empty { display: none; }
.form-note { font-size: .875rem; color: var(--muted); }
.form-note a { color: var(--petrol); }
.btn-submit { width: 100%; }
.btn-spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .8s linear infinite; }
.btn-submit[aria-busy="true"] .btn-spinner { display: inline-block; }
.btn-submit[aria-busy="true"] .btn-arrow { display: none; }
.btn-submit[disabled] { cursor: progress; opacity: .85; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-status:empty { display: none; }
.form-status { padding: 14px 16px; border-radius: 6px; font-size: .95rem; border: 1px solid #B9CBD8; background: var(--pale); }
.form-status[data-state="success"] { border-color: #9CCBB7; background: #F1F8F4; color: var(--success); }
.form-status[data-state="error"] { border-color: #E3B2AE; background: #FDF5F4; color: var(--error); }

/* WhatsApp */
[data-whatsapp][hidden] { display: none !important; }
[data-calendly][hidden] { display: none !important; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.contact-actions:not(:has(> :not([hidden]))) { display: none; }
.btn-icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.btn-whatsapp { background: #fff; color: var(--deep); border-color: #fff; }
.btn-whatsapp:hover { background: var(--pale); border-color: var(--pale); }
.btn-whatsapp svg, .wa-float svg { width: 22px; height: 22px; flex: none; }
.btn-whatsapp svg path:first-child { fill: none; stroke: #1F8F4E; stroke-width: 1.8; }
.btn-whatsapp .wa-phone { fill: #1F8F4E; }
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 60;
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 56px; padding: 0 18px 0 16px; border-radius: 999px;
  background: #1F8F4E; color: #fff; text-decoration: none; font-weight: 600;
  box-shadow: 0 12px 28px -12px rgba(7, 59, 82, .55);
  transition: transform .25s var(--ease), background-color .25s;
}
.wa-float:hover { background: #18773F; transform: translateY(-2px); }
.wa-float:focus-visible { outline-color: var(--deep); }
.wa-float svg path:first-child { fill: none; stroke: #fff; stroke-width: 1.8; }
.wa-float .wa-phone { fill: #fff; }
@media (max-width: 599px) {
  .wa-float { width: 56px; padding: 0; justify-content: center; }
  .wa-float-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

/* Pie */
.site-footer { background: #052C3E; color: #D3E2EE; font-size: .9rem; padding-block: 28px 96px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center; }
.footer-inner .brand { flex-basis: 100%; margin-bottom: 18px; padding-bottom: 20px; border-bottom: 1px solid rgba(145, 191, 240, .2); }
.site-footer strong { color: #fff; font-weight: 600; }
.site-footer a { color: #fff; }

/* Aparición suave */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

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

/* Proyectos de ejemplo */
.project { position: relative; }
.project-badge {
  position: absolute; top: 18px; right: 18px; padding: 3px 10px; border-radius: 999px;
  border: 1px dashed var(--petrol); font-size: .72rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--petrol); background: var(--white);
}
.project-example .project-meta { padding-right: 90px; }
.projects-note {
  margin-top: 16px; padding: 10px 14px; border-radius: 8px; background: var(--pale);
  border-left: 3px solid var(--petrol); font-size: .9rem; color: var(--deep);
}

/* Reseñas (estilo mensaje de WhatsApp, sin nombres) */
.reviews { background: var(--pale); }
.reviews[hidden], [data-nav-reviews][hidden] { display: none; }
.review-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: start; }
.review { display: grid; gap: 12px; }
.review-bubble {
  position: relative; margin: 0; padding: 16px 18px 26px; border-radius: 14px 14px 14px 4px;
  background: var(--white); box-shadow: 0 14px 30px -24px rgba(7, 59, 82, .55);
}
.review-bubble::before {
  content: ""; position: absolute; left: -7px; bottom: 0; width: 14px; height: 14px;
  background: var(--white); clip-path: polygon(100% 0, 100% 100%, 0 100%);
}
.review-bubble p { color: var(--deep); }
.review-meta { position: absolute; right: 12px; bottom: 6px; display: flex; align-items: center; gap: 4px; font-size: .72rem; color: var(--muted); }
.review-meta svg { width: 16px; height: 11px; fill: none; stroke: #53A6E8; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.review-author { display: flex; align-items: center; gap: 10px; padding-left: 6px; }
.review-avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--deep); color: var(--sky); font-size: .78rem; font-weight: 700; }
.review-author span:last-child { display: grid; font-size: .85rem; color: var(--muted); line-height: 1.3; }
.review-author strong { color: var(--deep); font-weight: 600; }
.reviews-cta { margin-top: 32px; }

/* Enlace del pie y diálogo «Deja tu reseña» */
.footer-review { background: none; border: 0; padding: 0; color: #fff; text-decoration: underline; text-underline-offset: 3px; font-size: inherit; cursor: pointer; }
.review-dialog { width: min(520px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 14px; background: var(--white); color: var(--deep); box-shadow: 0 30px 80px -30px rgba(7, 59, 82, .6); }
.review-dialog::backdrop { background: rgba(7, 59, 82, .55); }
.review-form { display: grid; gap: 16px; padding: 24px; }
.review-form-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.review-form-head h2 { font-size: 1.7rem; }
.review-close { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); font-size: 1.4rem; line-height: 1; color: var(--deep); }
.review-form-intro { color: var(--muted); font-size: .92rem; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--petrol); flex: none; }
.check input[aria-invalid="true"] { outline: 2px solid var(--error); outline-offset: 2px; }
.review-error { color: var(--error); font-size: .88rem; font-weight: 600; }
.review-error:empty { display: none; }
.review-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.review-wa { color: var(--petrol); font-weight: 600; font-size: .92rem; }
.review-wa[hidden] { display: none; }
.review-status:empty { display: none; }
.review-status { padding: 12px 14px; border-radius: 8px; font-size: .92rem; background: var(--pale); }
.review-status[data-state="success"] { background: #F1F8F4; color: var(--success); }
.review-status[data-state="error"] { background: #FDF5F4; color: var(--error); }
