/* =============================================================
   CND · Clean Never Dirty  |  Hoja de estilos única
   1) Tokens (colores, tipografía, espacios)  2) Base  3) Secciones
   Para cambiar la identidad visual edita solo los TOKENS.
   ============================================================= */
:root {
  /* Marca */
  --navy: #071B49; --blue: #087CFA; --light-blue: #55B9FF;
  --soft-blue: #DCEFFF; --white: #FFFFFF;
  /* Auxiliares */
  --blue-deep: #064A9B; --blue-hover: #0663CB; --ink: #345577;
  --stroke: #C5E4FF; --bg-soft: #F4FAFF; --panel: #F8FBFF; --on-navy: #D5EAFF;

  /* Tipografía: una sola escala para toda la web */
  --font: "Segoe UI", Inter, system-ui, -apple-system, Arial, sans-serif;
  --fs-h2: clamp(1.875rem, 1.2rem + 2.2vw, 2.75rem);   /* títulos de sección */
  --fs-h3: 1.125rem;                                   /* tarjetas y pasos   */
  --fs-lead: 1.0625rem;                                /* subtítulos         */
  --fs-body: 1rem;
  --fs-small: .875rem;
  --fs-tiny: .8125rem;

  /* Espacios y formas */
  --header-h: 60px;
  --section-y: clamp(56px, 7vw, 88px);
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 6px 22px rgba(7, 27, 73, .08);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body { background: var(--white); color: var(--navy); font: var(--fs-body)/1.65 var(--font); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
ul, ol { list-style: none; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.container { width: min(100%, 1200px); margin-inline: auto; }
.section { padding: var(--section-y) var(--gutter); }

/* Encabezados de sección (todos iguales) */
.section-head { text-align: center; max-width: 760px; margin: 0 auto 40px; }
.section h2 { font-size: var(--fs-h2); font-weight: 850; line-height: 1.18; letter-spacing: -.03em; color: var(--navy); }
.section-head h2 { margin-bottom: 14px; }
.lead { font-size: var(--fs-lead); line-height: 1.7; color: var(--ink); }
.tagline { color: var(--blue); font-size: 1.25rem; font-weight: 800; line-height: 1.35; margin-bottom: 8px; }

.eyebrow { display: inline-flex; align-items: center; gap: 9px; font-size: var(--fs-tiny); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(85, 185, 255, .2); }

/* Botones */
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 10px; border: 0; border-radius: 12px; background: var(--blue); color: var(--white); padding: 15px 24px; font-size: var(--fs-body); font-weight: 800; line-height: 1.3; text-decoration: none; cursor: pointer; box-shadow: 0 10px 24px rgba(8, 124, 250, .25); transition: transform .18s, background .18s; }
.btn:hover { transform: translateY(-2px); background: var(--blue-hover); }
.btn--soft { background: var(--light-blue); color: var(--navy); box-shadow: none; }
.btn--soft:hover { background: var(--soft-blue); }

/* ---------- Cabecera ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 1000; height: var(--header-h); display: flex; background: linear-gradient(to right, var(--blue), var(--blue-deep) 50%, var(--navy)); box-shadow: 0 4px 15px rgba(7, 27, 73, .12); }
.brand { display: flex; align-items: center; gap: 10px; padding-inline: clamp(12px, 2.5vw, 40px); color: var(--white); text-decoration: none; min-width: 0; }
.brand img { width: 40px; height: 50px; object-fit: contain; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-size: 1.4rem; font-weight: 850; letter-spacing: -.03em; }
.brand-sub { font-size: .6875rem; font-weight: 650; color: var(--soft-blue); white-space: nowrap; }

.nav-desktop { flex: 1; min-width: 0; }
.nav-desktop ul { display: flex; justify-content: flex-end; height: 100%; }
.nav-desktop li { display: flex; min-width: 110px; margin-right: -20px; background: var(--navy); clip-path: polygon(20px 0, 100% 0, calc(100% - 20px) 100%, 0 100%); transition: background .2s; }
.nav-desktop li:last-child { margin-right: 0; clip-path: polygon(20px 0, 100% 0, 100% 100%, 0 100%); }
.nav-desktop li:hover, .nav-desktop li:focus-within { background: var(--blue); }
.nav-desktop a { display: flex; align-items: center; justify-content: center; width: 100%; padding-inline: 28px; color: var(--white); font-size: var(--fs-small); font-weight: 700; text-decoration: none; }

#menu_check { position: absolute; opacity: 0; width: 1px; height: 1px; }
.menu-btn, .nav-mobile { display: none; }

/* ---------- Banner ---------- */

/* ---------- Servicios ---------- */
.servicios { background: var(--bg-soft); }
.cards { --gap: 20px; --cols: 4; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); }
.card { flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--stroke); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: transform .25s, border-color .25s; }
.card:hover { transform: translateY(-5px); border-color: var(--light-blue); }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card h3 { margin: 16px 14px 0; font-size: var(--fs-h3); font-weight: 800; line-height: 1.3; text-align: center; color: var(--navy); }
.card h3 span { display: block; color: var(--blue); }
.card ul { margin: 14px 0 20px; padding: 0 14px 0 30px; list-style: disc; }
.card li { font-size: var(--fs-small); line-height: 1.55; margin-bottom: 6px; color: var(--ink); }
.card li::marker { color: var(--blue); }

/* ---------- Por qué elegirnos ---------- */
.why { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--navy), var(--blue-deep)); color: var(--white); }
.why::after { content: ""; position: absolute; right: -250px; top: -190px; width: 530px; height: 530px; border: 1px solid rgba(85, 185, 255, .22); border-radius: 50%; pointer-events: none; }
.why-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 2fr 3fr; gap: 64px; align-items: center; }
.why .eyebrow { color: var(--light-blue); }
.why h2 { color: var(--white); margin: 18px 0; }
.why h2 span { color: var(--light-blue); }
.why .lead { color: var(--on-navy); margin-bottom: 24px; }
.why-points { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.why-item { display: flex; gap: 14px; padding: 24px; background: rgba(255, 255, 255, .09); border: 1px solid rgba(85, 185, 255, .3); border-radius: var(--radius); }
.why-item svg { flex: none; color: var(--light-blue); }
.why-item h3 { font-size: var(--fs-body); font-weight: 800; line-height: 1.4; margin-bottom: 6px; }
.why-item p { font-size: var(--fs-small); line-height: 1.6; color: var(--on-navy); }

/* ---------- Pasos ---------- */
.steps { display: flex; justify-content: center; gap: 32px; flex-wrap: wrap; counter-reset: paso; }
.step { flex: 1 1 230px; max-width: 330px; text-align: center; counter-increment: paso; }
.step::before { content: "0" counter(paso); display: inline-flex; align-items: center; justify-content: center; width: 72px; height: 72px; border: 1.5px solid var(--light-blue); border-radius: 50%; background: var(--soft-blue); color: var(--blue); font-size: 1.25rem; font-weight: 850; }
.step h3 { margin: 20px 0 8px; font-size: var(--fs-h3); font-weight: 800; line-height: 1.3; }
.step p { font-size: var(--fs-body); line-height: 1.65; color: var(--ink); }

/* ---------- Presupuesto ---------- */
.quote { padding-top: 0; }
.quote-wrap { display: grid; grid-template-columns: 42% 58%; overflow: hidden; background: linear-gradient(155deg, var(--soft-blue), var(--bg-soft)); border: 1px solid var(--stroke); border-radius: 28px; }
.quote-copy { padding: 56px 46px; }
.quote-copy .eyebrow { color: var(--blue); }
.quote-copy h2 { margin: 18px 0; }
.contact-list { display: grid; gap: 14px; margin-top: 28px; }
.contact-list li { display: flex; align-items: center; gap: 12px; color: var(--blue-deep); font-size: var(--fs-small); font-weight: 700; }
.contact-list svg { flex: none; color: var(--blue); }
.quote-form { padding: 38px 42px; background: var(--white); min-width: 0; }
.quote-form h3 { font-size: 1.375rem; font-weight: 800; line-height: 1.3; margin-bottom: 20px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: var(--fs-tiny); font-weight: 750; color: var(--blue-deep); }
.field input, .field select, .field textarea { width: 100%; padding: 13px; border: 1px solid var(--stroke); border-radius: var(--radius-sm); background: var(--panel); color: var(--navy); font-size: var(--fs-body); line-height: 1.45; }
.field input::placeholder, .field textarea::placeholder { color: #607A98; opacity: 1; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(8, 124, 250, .15); }
.submit-btn { width: 100%; margin-top: 20px; }
.form-note { margin-top: 12px; font-size: var(--fs-tiny); line-height: 1.6; color: var(--ink); }
.form-feedback { display: none; margin-top: 14px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--soft-blue); color: var(--blue-deep); font-size: var(--fs-small); font-weight: 700; }
.form-feedback.show { display: block; }

/* ---------- Footer ---------- */
.footer { padding: 40px var(--gutter) 24px; background: linear-gradient(135deg, var(--navy), var(--blue-deep)); color: var(--on-navy); }
.footer-main { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.footer .brand { padding: 0; }
.social-links { display: flex; flex-wrap: wrap; gap: 12px; }
.social-links a { display: inline-flex; align-items: center; gap: 9px; padding: 10px 16px; border: 1px solid rgba(85, 185, 255, .3); border-radius: 999px; background: rgba(255, 255, 255, .09); color: var(--white); font-size: var(--fs-small); font-weight: 700; text-decoration: none; transition: background .2s, border-color .2s, color .2s; }
.social-links a:hover { background: var(--light-blue); border-color: var(--light-blue); color: var(--navy); }
.social-links svg { flex: none; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(85, 185, 255, .25); font-size: var(--fs-tiny); color: #A8CDEC; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .cards { --cols: 2; }
  .why-grid { gap: 32px; }
  .quote-wrap { grid-template-columns: 1fr; }
  .quote-copy { padding: 36px 28px 20px; }
  .quote-form { padding: 28px; }
  .nav-desktop li { min-width: 94px; }
  .nav-desktop a { padding-inline: 22px; }
}
@media (max-width: 767px) {
  .nav-desktop { display: none; }
  .site-header { justify-content: space-between; }
  .menu-btn { display: flex; align-items: center; justify-content: center; width: 58px; height: var(--header-h); cursor: pointer; }
  .menu-btn svg { fill: var(--white); }
  #menu_check:checked + .menu-btn svg { fill: var(--light-blue); }
  #menu_check:focus-visible + .menu-btn { outline: 2px solid var(--white); outline-offset: -4px; }
  .nav-mobile { display: block; position: absolute; top: var(--header-h); left: 0; width: 100%; max-height: 0; overflow: hidden; background: var(--navy); box-shadow: 0 12px 24px rgba(7, 27, 73, .2); transition: max-height .3s; }
  #menu_check:checked ~ .nav-mobile { max-height: 320px; }
  .nav-mobile ul { padding: 8px 18px 16px; }
  .nav-mobile a { display: block; padding: 12px 6px; color: var(--white); font-weight: 650; text-decoration: none; border-bottom: 1px solid rgba(85, 185, 255, .17); }
  .nav-mobile a:hover { color: var(--light-blue); }
  .why-grid { grid-template-columns: 1fr; }
  .why-item { padding: 18px; }
  .step { flex-basis: 100%; }
  .section-head { margin-bottom: 28px; }
}
@media (max-width: 600px) {
  .footer-main, .footer-bottom { flex-direction: column; align-items: center; text-align: center; }
  .social-links { justify-content: center; }
  .cards { --gap: 12px; }
  .card h3 { margin-inline: 8px; }
  .card ul { padding-left: 24px; padding-right: 8px; }
  .card li { font-size: var(--fs-tiny); }
}
@media (max-width: 420px) {
  .why-points, .fields { grid-template-columns: 1fr; }
  .quote-copy { padding: 30px 20px 18px; }
  .quote-form { padding: 22px 18px; }
}
@media (max-width: 360px) {
  .cards { --cols: 1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* ---------- Hero (HTML + CSS, sin imagen de banner) ---------- */
.hero { position: relative; overflow: hidden; padding: calc(var(--header-h) + clamp(32px, 5vw, 64px)) var(--gutter) clamp(40px, 6vw, 72px); background: linear-gradient(180deg, var(--bg-soft), var(--white)); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 1.2rem + 4.6vw, 4.5rem); font-weight: 900; line-height: 1.02; letter-spacing: -.04em; color: var(--navy); }
.hero h1 span { display: block; color: var(--blue); }
.hero-tagline { margin: 18px 0 8px; font-size: 1.25rem; font-weight: 800; color: var(--blue-deep); }
.hero .lead { max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-cta { display: inline-flex; align-items: center; gap: 10px; padding: 11px 22px; border: 1.5px solid var(--light-blue); border-radius: 12px; background: var(--white); color: var(--navy); font-weight: 800; line-height: 1.25; text-decoration: none; transition: background .18s, transform .18s; }
.hero-cta:hover { background: var(--soft-blue); transform: translateY(-2px); }
.hero-cta svg { flex: none; color: var(--blue); }
.hero-cta small { display: block; font-size: var(--fs-tiny); font-weight: 700; color: var(--blue); }
.hero-cta--call { display: none; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--stroke); border-radius: 999px; background: var(--white); color: var(--navy); font-size: var(--fs-small); font-weight: 700; text-decoration: none; transition: background .18s; }
.chip:hover { background: var(--soft-blue); }
.chip svg { color: var(--blue); }
.hero-art { position: relative; display: grid; place-items: center; min-height: 380px; }
.hero-art::before { content: ""; position: absolute; width: min(100%, 440px); aspect-ratio: 1; border-radius: 50%; background: linear-gradient(145deg, var(--blue), var(--navy)); }
.hero-art::after { content: ""; position: absolute; width: min(118%, 520px); aspect-ratio: 1; border: 1px solid var(--light-blue); border-radius: 50%; opacity: .5; }
.hero-art img { position: relative; z-index: 1; width: min(76%, 340px); height: auto; filter: drop-shadow(0 18px 22px rgba(7, 27, 73, .35)); }
.hero-spark { position: absolute; z-index: 2; top: 8%; left: 6%; width: 46px; color: var(--light-blue); }
.hero-spark--b { top: auto; left: auto; bottom: 10%; right: 4%; width: 30px; }
@media (hover: none) and (pointer: coarse) {
  .hero-cta--call { display: inline-flex; }
  .hero-cta--chat { display: none; }
}
@media (max-width: 767px) {
  .hero-cta--call { display: inline-flex; }
  .hero-cta--chat { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-actions > * { flex: 1 1 100%; justify-content: center; }
  .hero-art { min-height: 300px; }
  .hero-art::before { width: 290px; }
  .hero-art::after { width: 340px; }
  .hero-art img { width: 210px; }
}

/* Logo CND centrado como encabezado del hero */
.hero-brand { display: flex; justify-content: center; margin: 0 auto clamp(20px, 3.5vw, 40px); }
.hero-logo { width: clamp(120px, 14vw, 180px); height: auto; }
.brand img { width: auto; max-width: 48px; }

/* Footer: datos de contacto */
.footer-info { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(85, 185, 255, .25); }
.footer-info li { display: flex; align-items: center; gap: 12px; min-width: 0; font-size: var(--fs-small); font-weight: 700; color: var(--white); }
.footer-info small { display: block; font-size: .6875rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--light-blue); }
.footer-info a { text-decoration: none; overflow-wrap: anywhere; transition: color .2s; }
.footer-info a:hover { color: var(--light-blue); }
.fi-icon { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .09); border: 1px solid rgba(85, 185, 255, .3); color: var(--light-blue); }
@media (max-width: 767px) { .footer-info { grid-template-columns: 1fr; justify-items: center; } .footer-info li { justify-content: flex-start; width: min(100%, 300px); } }

/* Ondas decorativas del hero (inspiradas en el banner) */
.hero { padding-bottom: clamp(88px, 12vw, 160px); }
.hero::before, .hero::after { content: ""; position: absolute; pointer-events: none; background-repeat: no-repeat; background-size: 100% 100%; }
.hero::before { top: 0; left: 0; width: clamp(180px, 30vw, 460px); aspect-ratio: 2 / 1; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 300'%3E%3Cpath d='M0 0H600C500 30 360 50 250 130 160 195 70 240 0 255Z' fill='%2355B9FF' fill-opacity='.35'/%3E%3Cpath d='M0 0H430C330 28 220 60 140 120 90 155 40 180 0 190Z' fill='%23087CFA' fill-opacity='.92'/%3E%3Cpath d='M0 0H250C190 20 110 50 60 90 35 110 15 120 0 125Z' fill='%23071B49' fill-opacity='.85'/%3E%3C/svg%3E"); }
.hero::after { left: 0; right: 0; bottom: 0; height: clamp(56px, 9vw, 130px); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 160' preserveAspectRatio='none'%3E%3Cpath d='M0 90C260 10 560 20 840 70S1260 120 1440 30V160H0Z' fill='%2355B9FF' fill-opacity='.4'/%3E%3Cpath d='M0 125C240 55 520 60 800 105S1250 150 1440 80V160H0Z' fill='%23087CFA' fill-opacity='.92'/%3E%3C/svg%3E"); }
.hero-brand, .hero-grid { position: relative; z-index: 1; }
@media (max-width: 767px) {
  .hero::before { width: 150px; }
  .hero { padding-bottom: 96px; }
}
