/* ==========================================================================
   ExtraIoT — Hoja de estilos principal
   Paleta:
     --navy        #0B1F3A
     --navy-deep   #061325
     --blue        #1E3A8A
     --cyan        #00D9FF   (acento principal)
     --green       #00E5A0
     --orange      #FF7849
     --bg          #F7FAFC
     --ink         #0F172A
     --muted       #64748B
   ========================================================================== */

:root {
  /* Paleta oficial Extra IoT — confirmada por el equipo (Contenido Redes, 2026-05-25) */
  --navy: #1E417A;            /* azul principal de marca */
  --navy-deep: #102648;       /* navy oscurecido para fondos profundos */
  --blue: #1E417A;            /* alias del azul de marca */
  --cyan: #61CBCB;            /* acento teal/cyan de marca */
  --cyan-soft: #A8E0E0;       /* tono claro del acento */
  --green: #61CBCB;           /* unificamos "live" con el cyan de marca */
  --orange: #FF7849;          /* CTA secundario (no de marca, contraste) */
  --bg: #F7FAFC;
  --surface: #FFFFFF;
  --ink: #0F172A;
  --muted: #64748B;
  --border: #E2E8F0;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow-md: 0 10px 30px rgba(11, 31, 58, .08);
  --shadow-lg: 0 24px 60px rgba(11, 31, 58, .15);
  --transition: 200ms cubic-bezier(.2, .8, .2, 1);
  --max-w: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink); background: var(--bg); line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--blue); }

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  color: var(--navy); letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 .6em;
}
h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p  { margin: 0 0 1em; color: #334155; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .14em; color: var(--cyan);
  background: rgba(0, 217, 255, .08); padding: 6px 12px; border-radius: 999px; margin-bottom: 16px;
}

/* Botones */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  font-weight: 600; font-size: .95rem; border: 1px solid transparent;
  cursor: pointer; transition: all var(--transition); white-space: nowrap;
}
.btn-primary { background: linear-gradient(135deg, var(--cyan), var(--blue)); color: #fff; box-shadow: 0 10px 24px rgba(0, 217, 255, .25); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(0, 217, 255, .35); color: #fff; }
.btn-secondary { background: var(--navy); color: #fff; }
.btn-secondary:hover { background: var(--blue); color: #fff; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--blue); }
.btn-orange { background: var(--orange); color: #fff; box-shadow: 0 10px 24px rgba(255, 120, 73, .35); }
.btn-orange:hover { filter: brightness(1.05); transform: translateY(-2px); color:#fff; }

/* Navbar */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }  /* no usar shorthand: anularía el padding lateral de .container (#28) */
.brand { display: flex; align-items: center; gap: 10px; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.25rem; color: var(--navy); }
.brand-img { height: 38px; width: auto; display: block; }
footer .brand-img { background: #fff; padding: 8px 14px; border-radius: 10px; height: 42px; box-shadow: 0 4px 12px rgba(0,0,0,.2); }

/* Real HA dashboard card in hero */
.ha-real-card { background: linear-gradient(180deg, rgba(20,30,50,.92), rgba(10,20,40,.95)); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius-lg); padding: 14px; backdrop-filter: blur(10px); box-shadow: var(--shadow-lg); }
.ha-real-header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 10px; font-size: .82rem; color: #94A3B8; }
.ha-real-img { width: 100%; height: auto; border-radius: 12px; display: block; border: 1px solid rgba(255,255,255,.06); }
.ha-real-foot { margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.06); text-align: center; font-size: .72rem; color: #64748B; }
.ha-real-foot strong { color: #41BDF5; font-weight: 600; }
.brand-wordmark { display: flex; flex-direction: column; line-height: 1; }
.brand-tagline { font-family: 'Inter', sans-serif; font-size: .58rem; font-weight: 600; letter-spacing: .22em; color: var(--cyan); text-transform: uppercase; margin-top: 4px; }
.brand-mark { width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg, var(--cyan), var(--blue)); display: grid; place-items: center; box-shadow: 0 6px 16px rgba(0, 217, 255, .35); }
.brand-mark svg { width: 20px; height: 20px; color: #fff; }
.nav-links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-size: .95rem; font-weight: 500; color: #334155; position: relative; display: inline-block; padding: 12px 0; }
.nav-links a.active, .nav-links a:hover { color: var(--navy); }
.nav-links a.active::after, .nav-links a:hover::after {
  content: ''; position: absolute; left: 0; bottom: 6px; width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--green)); border-radius: 2px;
}
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: transparent; border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); margin: 5px 0; border-radius: 2px; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(0, 217, 255, .25), transparent 60%),
    radial-gradient(900px 600px at 0% 20%, rgba(30, 58, 138, .25), transparent 60%),
    linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: #fff; padding: 96px 0 110px;
}
.hero h1 { color: #fff; }
.hero .eyebrow { background: rgba(0, 217, 255, .15); color: var(--cyan); }
.hero p { color: #CBD5E1; font-size: 1.1rem; max-width: 620px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-meta { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 28px; color: #94A3B8; font-size: .9rem; }
.hero-meta strong { color: #fff; font-size: 1.6rem; font-family: 'Space Grotesk'; font-weight: 700; display: block; }
.hero-visual { position: relative; }
.hero-card {
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  padding: 22px; backdrop-filter: blur(10px); box-shadow: var(--shadow-lg);
}
.hero-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-size: .85rem; color: #94A3B8; }
.dot-live { display: inline-flex; align-items: center; gap: 6px; color: var(--green); font-weight: 600; }
.dot-live::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(0, 229, 160, .7); animation: pulse 1.6s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 229, 160, .7); }
  70% { box-shadow: 0 0 0 12px rgba(0, 229, 160, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 229, 160, 0); }
}
.sensor-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.sensor-row:last-child { border-bottom: 0; }
.sensor-label { color: #E2E8F0; font-size: .95rem; }
.sensor-value { font-family: 'Space Grotesk'; font-weight: 700; font-size: 1.2rem; color: var(--cyan); }
.sensor-trend { font-size: .8rem; color: var(--green); }
.sensor-trend.warn { color: var(--orange); }

.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 26px 26px; pointer-events: none;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.7), transparent 70%);
}

section { padding: 80px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 50px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* Cards */
.cards { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px; transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover { transform: translateY(-4px); border-color: rgba(0, 217, 255, .4); box-shadow: var(--shadow-md); }
.card .icon-bubble {
  width: 48px; height: 48px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(0,217,255,.15), rgba(30,58,138,.15));
  color: var(--blue); display: grid; place-items: center; margin-bottom: 18px;
}
.card .icon-bubble svg { width: 24px; height: 24px; }
.card h3 { color: var(--navy); }
.card p { color: var(--muted); margin: 0; font-size: .96rem; }
.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; color: var(--blue); font-weight: 600; font-size: .9rem; }
.card-link:hover { gap: 10px; color: var(--cyan); }

.logos { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; justify-content: center; opacity: .75; }
.logo-text { font-family: 'Space Grotesk', sans-serif; font-weight: 700; color: var(--muted); font-size: 1.2rem; letter-spacing: -0.02em; }

.stats { background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%); color: #fff; padding: 60px 0; position: relative; overflow: hidden; }
.stats::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(0, 217, 255, .12) 1px, transparent 1px); background-size: 24px 24px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; position: relative; }
.stats-grid .num { font-family: 'Space Grotesk'; font-size: 2.6rem; font-weight: 700; background: linear-gradient(135deg, var(--cyan), var(--green)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats-grid .lbl { color: #CBD5E1; font-size: .95rem; }

.solutions-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.solution { background: var(--surface); border-radius: var(--radius-lg); padding: 32px; position: relative; overflow: hidden; border: 1px solid var(--border); transition: all var(--transition); }
.solution::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--cyan), var(--green)); transform: scaleX(0); transform-origin: left; transition: transform var(--transition); }
.solution:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.solution:hover::before { transform: scaleX(1); }
.solution h3 { color: var(--navy); }
.solution ul { padding-left: 18px; color: var(--muted); margin: 0; }
.solution ul li { margin-bottom: 6px; }
.solution-tag { display: inline-block; font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: rgba(0, 217, 255, .1); color: var(--blue); margin-bottom: 12px; }

.project { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: all var(--transition); display: flex; flex-direction: column; }
.project:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.project-cover { height: 200px; background: linear-gradient(135deg, var(--navy), var(--blue)); position: relative; overflow: hidden; }
.project-cover.cover-1 { background: linear-gradient(135deg, #0B1F3A, #1E3A8A); }
.project-cover.cover-2 { background: linear-gradient(135deg, #064E3B, #00E5A0); }
.project-cover.cover-3 { background: linear-gradient(135deg, #7C2D12, #FF7849); }
.project-cover.cover-4 { background: linear-gradient(135deg, #4C1D95, #00D9FF); }
.project-cover.cover-5 { background: linear-gradient(135deg, #831843, #FF7849); }
.project-cover.cover-6 { background: linear-gradient(135deg, #1E293B, #0EA5E9); }
.project-cover.cover-photo { background-size: cover; background-position: center; }
.project-cover.cover-photo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(11,31,58,.55) 100%);
}
.project-cover svg { position: absolute; inset: 0; margin: auto; width: 80px; height: 80px; color: rgba(255,255,255,.85); }
.project-cover .pattern { position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.15) 1px, transparent 1px); background-size: 14px 14px; opacity: .6; }
.project-body { padding: 24px; flex: 1; }
.project-meta { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--cyan); font-weight: 600; margin-bottom: 8px; }
.project h3 { color: var(--navy); margin-bottom: 8px; }
.project-body p { color: var(--muted); font-size: .95rem; }
.project-results { display: flex; gap: 18px; margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--border); }
.project-results div { flex: 1; }
.project-results strong { display: block; font-family: 'Space Grotesk'; color: var(--blue); font-size: 1.3rem; }
.project-results span { color: var(--muted); font-size: .8rem; }

.cta-band { background: linear-gradient(135deg, var(--navy-deep), var(--navy)); color: #fff; border-radius: var(--radius-lg); padding: 56px 48px; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; position: relative; overflow: hidden; }
.cta-band::after { content: ''; position: absolute; right: -100px; top: -100px; width: 320px; height: 320px; background: radial-gradient(circle, rgba(0,217,255,.35), transparent 60%); filter: blur(40px); }
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { color: #CBD5E1; margin: 0; max-width: 540px; }
.cta-band .btn { position: relative; z-index: 1; }

.testimonial { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; }
.testimonial blockquote { margin: 0; font-size: 1.1rem; color: var(--ink); font-weight: 500; line-height: 1.5; }
.testimonial blockquote::before { content: '"'; font-family: 'Space Grotesk'; font-size: 4rem; color: var(--cyan); line-height: .5; display: block; }
.testimonial-author { margin-top: 20px; display: flex; align-items: center; gap: 14px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--cyan), var(--blue)); display: grid; place-items: center; color: #fff; font-weight: 700; font-family: 'Space Grotesk'; }
.testimonial-author small { color: var(--muted); display: block; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .85rem; color: var(--navy); font-weight: 600; }
.field input, .field textarea, .field select {
  border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px;
  font-family: inherit; font-size: .95rem; color: var(--ink); background: #fff;
  transition: border var(--transition), box-shadow var(--transition);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(0, 217, 255, .15);
}
.field textarea { min-height: 130px; resize: vertical; }
.form-status { margin-top: 16px; padding: 12px 14px; border-radius: 10px; background: rgba(0, 229, 160, .1); color: #0F766E; font-size: .9rem; display: none; }
.form-status.show { display: block; }

.contact-split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 50px; align-items: start; }
.contact-info { background: linear-gradient(160deg, var(--navy) 0%, var(--blue) 100%); color: #fff; border-radius: var(--radius-lg); padding: 40px; position: relative; overflow: hidden; }
.contact-info::after { content: ''; position: absolute; right: -60px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(0,217,255,.35), transparent 60%); filter: blur(30px); }
.contact-info h2 { color: #fff; }
.contact-info p { color: #CBD5E1; }
.contact-list { list-style: none; padding: 0; margin: 30px 0 0; }
.contact-list li { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 22px; color: #E2E8F0; }
.contact-list svg { width: 22px; height: 22px; color: var(--cyan); flex-shrink: 0; margin-top: 2px; }
.contact-list strong { display: block; color: #fff; font-weight: 600; }
.contact-list small { color: #94A3B8; }
.socials { display: flex; gap: 10px; margin-top: 30px; }
.socials a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: rgba(255,255,255,.08); color: #fff; transition: all var(--transition); }
.socials a:hover { background: var(--cyan); color: var(--navy); }

footer { background: var(--navy-deep); color: #94A3B8; padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-grid h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: #94A3B8; font-size: .92rem; }
.footer-grid a:hover { color: var(--cyan); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.06); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; font-size: .85rem; color: #64748B; }
.footer-brand p { color: #94A3B8; margin: 14px 0 0; font-size: .92rem; max-width: 320px; }

.page-head { background: linear-gradient(135deg, var(--navy-deep), var(--navy)); color: #fff; padding: 90px 0 70px; text-align: center; position: relative; overflow: hidden; }
.page-head::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(0, 217, 255, .12) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(180deg, rgba(0,0,0,.5), transparent); }
.page-head h1 { color: #fff; position: relative; }
.page-head p { color: #CBD5E1; max-width: 640px; margin: 0 auto; font-size: 1.1rem; position: relative; }
.page-head .eyebrow { background: rgba(0, 217, 255, .15); color: var(--cyan); }

.wa-float { position: fixed; bottom: 24px; right: 24px; width: 58px; height: 58px; border-radius: 50%; background: #25D366; display: grid; place-items: center; color: #fff; box-shadow: 0 10px 24px rgba(37, 211, 102, .35); z-index: 90; transition: transform var(--transition); }
.wa-float:hover { transform: scale(1.08); color: #fff; }
.wa-float svg { width: 30px; height: 30px; }

@media (max-width: 960px) {
  .hero-grid, .contact-split, .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 28px; }
}
@media (max-width: 900px) {
  .nav-links { position: fixed; inset: 64px 16px auto 16px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); flex-direction: column; gap: 0; padding: 10px 18px; box-shadow: var(--shadow-md); display: none; }
  .nav-links.open { display: flex; }
  .nav-links a { display: flex; align-items: center; min-height: 44px; padding: 0; }
  .nav-links a.active::after, .nav-links a:hover::after { bottom: 8px; width: 28px; }
  .nav-cta .btn { display: none; }
  .nav-toggle { display: block; min-width: 44px; min-height: 44px; }
}
@media (max-width: 720px) {
  section { padding: 60px 0; }
  .hero { padding: 70px 0 80px; }
  .stats-grid { gap: 20px; }
}

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Home Assistant style hero panel ---------- */
.ha-card {
  background: linear-gradient(180deg, rgba(20,30,50,.92), rgba(10,20,40,.95));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  padding: 22px;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg);
  color: #E2E8F0;
}
.ha-header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.06); margin-bottom: 14px; }
.ha-header strong { display: block; color: #fff; font-family: 'Space Grotesk'; font-weight: 600; font-size: .95rem; }
.ha-header small { color: #94A3B8; font-size: .78rem; }
.ha-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.ha-tile {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex; gap: 12px; align-items: center;
  transition: background var(--transition), border-color var(--transition);
}
.ha-tile:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(0,217,255,.25);
}
/* ==========================================================================
   Figura dividida: foto + foto o foto + panel de marca (issue #9)
   ========================================================================== */
.figure-split { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 16px; margin: 6px 0 34px; }
.figure-split > * { position: relative; margin: 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); box-shadow: 0 18px 40px rgba(11,31,58,.10); }
.figure-split img { width: 100%; height: clamp(260px, 34vw, 420px); object-fit: cover; display: block; }
.figure-split figcaption { position: absolute; left: 14px; bottom: 14px; background: rgba(16,38,72,.82); color: #fff; font-size: .8rem; font-weight: 600; letter-spacing: .04em; padding: 6px 12px; border-radius: 999px; backdrop-filter: blur(6px); }
.figure-split figcaption::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); margin-right: 8px; vertical-align: 1px; }
.figure-panel { background: linear-gradient(150deg, var(--navy) 0%, var(--navy-deep) 100%); color: #fff; padding: clamp(24px, 3.2vw, 44px); display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.figure-panel .eyebrow { align-self: flex-start; background: rgba(97,203,203,.16); color: var(--cyan); }
.figure-panel h3 { color: #fff; font-size: clamp(1.3rem, 2.2vw, 1.75rem); line-height: 1.2; margin: 0; }
.figure-panel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.figure-panel li { display: flex; gap: 12px; align-items: flex-start; color: #D6E2F0; line-height: 1.45; }
.figure-panel li::before { content: ""; flex: 0 0 20px; height: 20px; margin-top: 1px; border-radius: 50%; background: var(--cyan) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23102648' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.figure-panel li strong { color: #fff; font-weight: 600; }
@media (max-width: 720px) {
  .figure-split { grid-template-columns: 1fr; }
  .figure-split img { height: 260px; }
}

/* ==========================================================================
   Responsive multi-dispositivo (issue #28)
   ========================================================================== */
/* Los hijos de un grid no deben imponer su ancho mínimo de contenido */
.contact-split > *, .hero-grid > *, .footer-grid > *, .form-grid > *, .about-split > *, .cards > * { min-width: 0; }
.form-grid input, .form-grid select, .form-grid textarea { width: 100%; max-width: 100%; box-sizing: border-box; }
.contact-info a, .footer-grid a { overflow-wrap: anywhere; }

/* Bloque intro de Nosotros (antes grid inline que nunca colapsaba) */
.about-split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }

@media (max-width: 960px) {
  .about-split { grid-template-columns: 1fr; gap: 36px; }
}
/* Áreas táctiles >= 44px en móvil y tablet */
@media (max-width: 900px) {
  .btn { min-height: 44px; }
  .brand { min-height: 44px; display: flex; align-items: center; }
  .card-link, .contact-info a { display: inline-flex; align-items: center; min-height: 44px; }
  .contact-info a:has(svg), .contact-info a:empty { min-width: 44px; justify-content: center; }
  .footer-grid li { margin-bottom: 0; }
  .footer-grid a { display: inline-flex; align-items: center; min-height: 44px; }
}
@media (max-width: 720px) {
  .btn { white-space: normal; text-align: center; }
  .contact-info { padding: 28px 22px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .footer-brand, .footer-grid > div:last-child { grid-column: 1 / -1; }   /* marca y contacto a todo el ancho */
}

/* Formulario de contacto → CRM (issue #3) */
.hp-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status.is-ok { background: rgba(0, 229, 160, .1); color: #0F766E; }
.form-status.is-error { background: rgba(239, 68, 68, .08); color: #B91C1C; }
#contact-form button[aria-busy="true"] { opacity: .7; cursor: progress; }

/* Aviso de privacidad y páginas legales */
.legal { max-width: 860px; margin: 0 auto; color: var(--text, #1f2937); line-height: 1.7; font-size: 1rem; }
.legal h2 { font-size: clamp(1.15rem, 2vw, 1.4rem); margin: 2.2em 0 .6em; color: var(--navy); }
.legal h3 { font-size: 1.05rem; margin: 1.6em 0 .5em; color: var(--navy); }
.legal h2.legal-annex { font-size: clamp(1.4rem, 2.6vw, 1.8rem); text-transform: uppercase; letter-spacing: .06em; border-top: 2px solid var(--cyan); padding-top: 1em; }
.legal p, .legal li { margin: .5em 0; }
.legal ul, .legal ol { padding-left: 1.4em; }
.legal li p { margin: .2em 0; }
.legal hr { border: 0; border-top: 1px solid var(--border); margin: 2em 0; }
.legal a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.legal blockquote { margin: 1.2em 0; padding: 14px 18px; background: rgba(97,203,203,.08); border-left: 4px solid var(--cyan); border-radius: 0 10px 10px 0; }
.legal .table-wrap { overflow-x: auto; margin: 1em 0; border: 1px solid var(--border); border-radius: 12px; }
.legal table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 560px; }
.legal th, .legal td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.legal th { background: var(--bg); color: var(--navy); font-weight: 600; }
.legal tr:last-child td { border-bottom: 0; }
.footer-bottom a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
