/* Fuentes servidas desde el propio servidor.
   Antes venían de Google por un @import en este mismo fichero, que encadenaba
   tres peticiones bloqueantes: styles.css -> fonts.googleapis.com ->
   fonts.gstatic.com.

   Son fuentes variables: un único fichero cubre toda la gama de grosores, y
   por eso el font-weight declara un rango. Al bajarlas peso a peso salían
   catorce ficheros que en realidad eran cuatro repetidos, y el navegador se
   descargaba la misma Inter tres veces (145 KB en vez de 48).

   Solo latino y latino extendido; los bloques originales traían cirílico,
   griego y vietnamita, que este sitio no usa. */
/* =====================================================
   GRUPO MATERA MARKETING — Design System
   ===================================================== */

/* Fuentes servidas desde el propio servidor.
   Antes venían de Google con un @import dentro de este mismo fichero, que
   encadenaba tres peticiones bloqueantes: styles.css -> fonts.googleapis.com
   -> fonts.gstatic.com. Solo se traen los subconjuntos latino y latino
   extendido; los 29 bloques originales incluían cirílico, griego y
   vietnamita, que este sitio no usa. */
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/sora-latin.fc575ebf6f7c.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/sora-latin-ext.05dc9078cb06.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/inter-latin.260c81a4759b.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/inter-latin-ext.1ad231aac0a8.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --- Variables --- */
:root {
  --navy:       #233D63;
  --navy-dark:  #182b47;
  --navy-light: #2e5080;
  --gold:       #FFBE56;
  --gold-dark:  #e6a93a;
  --blue:       #4A7CED;
  --blue-dark:  #3366d6;
  --orange:     #FB9A00;
  --white:      #FFFFFF;
  --bg:         #F8F9FC;
  --bg-card:    #FFFFFF;
  --text:       #33373d;
  --text-muted: #5f6e84;
  --text-light: #b0bac7;
  --border:     #e4e8f0;
  --shadow-sm:  0 2px 8px rgba(35,61,99,.08);
  --shadow-md:  0 4px 20px rgba(35,61,99,.12);
  --shadow-lg:  0 8px 40px rgba(35,61,99,.16);
  --radius-sm:  6px;
  --radius:     12px;
  --radius-lg:  20px;
  --font-head:  'Sora', system-ui, sans-serif;
  --font-body:  'Inter', system-ui, sans-serif;
  --max-w:      1200px;
  --transition: .2s ease;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #2558d0; text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--blue-dark); }
ul { list-style: none; }
button { cursor: pointer; border: none; font-family: var(--font-body); }
input, textarea, select {
  font-family: var(--font-body);
  font-size: 1rem;
}

/* --- Typography --- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  line-height: 1.2;
  color: var(--navy);
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.125rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.125rem; }
p { margin-bottom: .9rem; }
p:last-child { margin-bottom: 0; }

/* --- Layout --- */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 5rem 0; }
.section--alt { background: var(--white); }
.section--dark { background: var(--navy); color: var(--white); }
.section--dark h1,
.section--dark h2,
.section--dark h3 { color: var(--white); }
.section--dark p { color: rgba(255,255,255,.8); }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header p { color: var(--text-muted); font-size: 1.1rem; max-width: 600px; margin: .75rem auto 0; }
.section-eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--navy);
  background: rgba(255,190,86,.25);
  padding: .3rem .85rem;
  border-radius: 2rem;
  margin-bottom: .75rem;
}
.section--dark .section-eyebrow { color: var(--gold); background: rgba(255,190,86,.15); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy);
}
.btn-primary:hover { background: var(--gold-dark); color: var(--navy); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.4);
}
.btn-secondary:hover { border-color: var(--white); background: rgba(255,255,255,.1); color: var(--white); }
.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-blue {
  background: var(--blue);
  color: var(--white);
}
.btn-blue:hover { background: var(--blue-dark); color: var(--white); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-lg { padding: 1rem 2.25rem; font-size: 1.05rem; }
.btn-sm { padding: .5rem 1.1rem; font-size: .875rem; }
.btn-block { width: 100%; justify-content: center; }

/* --- Header / Nav --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 2rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
}
.nav-logo-img {
  height: 42px;
  width: auto;
  display: block;
}
.footer-logo-img {
  height: 38px;
  width: auto;
  display: block;
  opacity: .9;
}
.nav-logo-mark {
  width: 36px;
  height: 36px;
  background: var(--navy);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav-logo-mark span {
  font-family: var(--font-head);
  font-weight: 800;
  color: var(--gold);
  font-size: 1.1rem;
}
.nav-logo-text { display: flex; flex-direction: column; line-height: 1; }
.nav-logo-text strong {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .95rem;
  color: var(--navy);
}
.nav-logo-text span {
  font-size: .7rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: .03em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: .25rem;
}
.nav-links a {
  padding: .5rem .85rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: .9rem;
  color: var(--text);
  transition: all var(--transition);
}
.nav-links a:hover,
.nav-links a.active { background: rgba(35,61,99,.06); color: var(--navy); }
.nav-actions { display: flex; align-items: center; gap: .75rem; }
.nav-cart {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  color: var(--navy);
  transition: background var(--transition);
  background: var(--bg);
}
.nav-cart:hover { background: var(--border); color: var(--navy); }
.nav-cart-count {
  position: absolute;
  top: 4px;
  right: 4px;
  background: var(--gold);
  color: var(--navy);
  font-size: .65rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  display: none;
}
.nav-cart-count.visible { display: flex; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: .5rem;
  border-radius: var(--radius-sm);
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all var(--transition);
}

/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 6rem 0 5rem;
  color: var(--white);
  overflow: hidden;
  position: relative;
}
.hero h1, .hero h2, .hero h3, .hero h4 { color: var(--white); }
.hero p { color: rgba(255,255,255,.8); }
.hero em { color: var(--gold); font-style: normal; }
.hero .section-eyebrow { color: var(--gold); background: rgba(255,190,86,.15); }
.page-hero h2, .page-hero h3, .page-hero h4 { color: var(--white); }
.page-hero p { color: rgba(255,255,255,.75); }
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(74,124,237,.2) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: 5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,190,86,.1) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-content h1 { color: var(--white); margin-bottom: 1.25rem; }
.hero-content h1 em { color: var(--gold); font-style: normal; }
.hero-content p { color: rgba(255,255,255,.8); font-size: 1.15rem; margin-bottom: 2rem; max-width: 480px; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.15);
}
.hero-stat-num {
  font-family: var(--font-head);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--gold);
}
.hero-stat-label { font-size: .8rem; color: rgba(255,255,255,.8); margin-top: .15rem; }
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-browser {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-lg);
  overflow: hidden;
  width: 100%;
  max-width: 460px;
  box-shadow: 0 24px 60px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.08);
  backdrop-filter: blur(10px);
}
.hero-browser .mockup-bar {
  padding: .65rem 1rem;
  background: rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.hero-browser-screen {
  height: 340px;
  overflow: hidden;
  position: relative;
  line-height: 0;
}
.hero-browser-screen img {
  width: 100%;
  height: auto;
  display: block;
  will-change: transform;
  transform: translateY(0);
}
.hero-mockup {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  width: 100%;
  max-width: 420px;
  backdrop-filter: blur(10px);
}
.mockup-bar {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.mockup-dot { width: 10px; height: 10px; border-radius: 50%; }
.mockup-dot:nth-child(1) { background: #ff5f57; }
.mockup-dot:nth-child(2) { background: #febc2e; }
.mockup-dot:nth-child(3) { background: #28c840; }
.mockup-url {
  flex: 1;
  background: rgba(255,255,255,.08);
  border-radius: 4px;
  padding: .3rem .75rem;
  font-size: .75rem;
  color: rgba(255,255,255,.5);
  margin-left: .5rem;
}
.mockup-content { display: flex; flex-direction: column; gap: .75rem; }
.mockup-block {
  background: rgba(255,255,255,.06);
  border-radius: 8px;
  padding: .85rem 1rem;
}
.mockup-block-title { font-size: .7rem; color: rgba(255,255,255,.4); margin-bottom: .4rem; }
.mockup-block-bar {
  height: 8px;
  border-radius: 4px;
  background: rgba(255,255,255,.15);
  margin-bottom: .3rem;
}
.mockup-block-bar.gold { background: rgba(255,190,86,.5); width: 75%; }
.mockup-block-bar.blue { background: rgba(74,124,237,.5); width: 55%; }
.mockup-block-bar.short { width: 40%; }
.mockup-products { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.mockup-product {
  background: rgba(255,255,255,.06);
  border-radius: 6px;
  padding: .6rem;
  text-align: center;
}
.mockup-product-img {
  height: 40px;
  background: rgba(255,190,86,.2);
  border-radius: 4px;
  margin-bottom: .4rem;
}
.mockup-product-name { font-size: .65rem; color: rgba(255,255,255,.5); }
.mockup-product-price { font-size: .7rem; color: var(--gold); font-weight: 600; margin-top: .2rem; }

/* --- Cards genéricas --- */
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-body { padding: 1.5rem; }
.card-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: var(--bg); }
.card-img-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-img-placeholder span { font-size: 2.5rem; }

/* --- Grid helpers --- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* --- Servicios / Products --- */
.service-card .card-img-placeholder {
  aspect-ratio: 4/3;
}
.service-badge {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  padding: .25rem .7rem;
  border-radius: 2rem;
  background: rgba(74,124,237,.1);
  color: var(--blue);
  margin-bottom: .75rem;
}
.service-title { margin-bottom: .5rem; font-size: 1.2rem; }
.service-desc { color: var(--text-muted); font-size: .9rem; margin-bottom: 1rem; }
.service-price {
  display: flex;
  align-items: baseline;
  gap: .35rem;
  margin-bottom: 1.25rem;
}
.service-price-amount {
  font-family: var(--font-head);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--navy);
}
.service-price-suffix { color: var(--text-muted); font-size: .85rem; }
.service-features { margin-bottom: 1.25rem; }
.service-features li {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  font-size: .875rem;
  padding: .35rem 0;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.service-features li:last-child { border-bottom: none; }
.service-features li::before {
  content: '✓';
  color: var(--blue);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: .05rem;
}
.service-card-actions { display: flex; gap: .75rem; }

/* --- Blog --- */
.post-card .card-img-placeholder { aspect-ratio: 16/9; }
.post-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: .8rem;
  color: var(--text-muted);
  margin-bottom: .6rem;
}
.post-category {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  padding: .2rem .6rem;
  border-radius: 2rem;
  background: rgba(255,190,86,.2);
  color: var(--navy);
}
.post-title { font-size: 1.1rem; margin-bottom: .5rem; }
.post-title a { color: var(--navy); }
.post-title a:hover { color: var(--blue); }
.post-excerpt { font-size: .875rem; color: var(--text-muted); }
.post-read-more {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--blue);
  margin-top: .75rem;
}
.post-read-more:hover { gap: .65rem; color: var(--blue-dark); }

/* --- Features / Value props --- */
.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  background: rgba(74,124,237,.1);
}
.feature-icon.gold { background: rgba(255,190,86,.15); }
.feature-icon.blue { background: rgba(74,124,237,.1); }
.feature-icon.navy { background: rgba(35,61,99,.08); }
.feature-title { font-size: 1.1rem; margin-bottom: .5rem; }
.feature-desc { font-size: .9rem; color: var(--text-muted); }

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: var(--radius-lg);
  padding: 4rem 3rem;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,190,86,.15), transparent 70%);
  pointer-events: none;
}
.cta-banner h2 { color: var(--white); margin-bottom: .75rem; }
.cta-banner p { color: rgba(255,255,255,.75); margin-bottom: 2rem; font-size: 1.1rem; }
.cta-actions { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* --- Filters (Servicios) --- */
.filter-bar {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.filter-btn {
  padding: .5rem 1.1rem;
  border-radius: 2rem;
  font-size: .875rem;
  font-weight: 500;
  background: var(--white);
  color: var(--text);
  border: 1.5px solid var(--border);
  transition: all var(--transition);
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* --- Footer --- */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,.7);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand .nav-logo { margin-bottom: 1rem; }
.footer-brand .nav-logo-text strong { color: var(--white); }
.footer-brand .nav-logo-text span { color: rgba(255,255,255,.6); }
.footer-brand p { font-size: .875rem; line-height: 1.7; color: rgba(255,255,255,.72); }
.footer-heading {
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  margin-bottom: 1.25rem;
}
.footer-links a {
  display: block;
  color: rgba(255,255,255,.65);
  font-size: .875rem;
  padding: .35rem 0;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .8rem;
  color: rgba(255,255,255,.55);
}
.footer-bottom a { color: rgba(255,255,255,.55); }
.footer-bottom a:hover { color: rgba(255,255,255,.85); }
.footer-social {
  display: flex;
  gap: .6rem;
  margin-top: 1.25rem;
}
.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,.07);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.6);
  font-size: .9rem;
  transition: all var(--transition);
  text-decoration: none;
}
.social-btn:hover { background: var(--gold); color: var(--navy); }

/* --- Notificación Toast --- */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--navy);
  color: var(--white);
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  font-size: .9rem;
  font-weight: 500;
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: all .3s ease;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast-icon { font-size: 1.1rem; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .planes-grid { grid-template-columns: 1fr; }
  .plan-card--featured { transform: translateY(0); }
  .plan-card--featured:hover { transform: translateY(-3px); }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions .btn { display: none; }
  .nav-toggle { display: flex; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero { padding: 4rem 0 3.5rem; }
  .hero-stats { gap: 1.25rem; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .section { padding: 3.5rem 0; }
  .cta-banner { padding: 3rem 1.75rem; }
  .checkout-steps { gap: .5rem; }
  .step-label { display: none; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .cta-actions { flex-direction: column; }
  .cta-actions .btn { width: 100%; justify-content: center; }
}

/* --- Nav mobile open --- */
.nav-mobile {
  display: none;
  flex-direction: column;
  gap: .25rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
  background: var(--white);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  padding: .65rem .85rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: .5rem;
}
.nav-mobile a:hover { background: var(--bg); color: var(--navy); }

/* --- Utility --- */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-4 { margin-bottom: 2rem; }
.gap-1 { gap: .5rem; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.fw-bold { font-weight: 700; }
.badge {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  padding: .25rem .65rem;
  border-radius: 2rem;
  background: rgba(74,124,237,.1);
  color: var(--blue);
}
.badge-gold { background: rgba(255,190,86,.2); color: var(--navy); }
.badge-green { background: rgba(40,200,80,.12); color: #22863a; }

/* --- Hero figura (estilo agencia: recorte sobre forma redondeada) --- */
.hero-figure { position: relative; width: 100%; max-width: 384px; margin: 0 auto -5rem; }
.hero-visual { display: flex; justify-content: center; align-items: flex-end; }
.hero-figure-shape { position: absolute; left: 0; right: 0; bottom: 0; height: 76%;
  background: linear-gradient(135deg, var(--blue) 0%, #6fd3f2 100%); border-radius: 36px; }
.hero-figure-img { position: relative; display: block; width: 92%; margin: 0 auto;
  filter: drop-shadow(0 18px 40px rgba(0,0,0,.35)); }
.hero-figure::before { content: ""; position: absolute; top: 4%; right: -24px; width: 52px; height: 52px;
  border: 3px solid rgba(255,255,255,.35); border-radius: 50%; }
.hero-figure::after { content: ""; position: absolute; bottom: 8%; left: -28px; width: 26px; height: 26px;
  background: var(--gold); border-radius: 50%; }
.hero-float-card { position: absolute; left: -54px; bottom: 16%; background: #fff; border-radius: 14px;
  padding: 12px 14px 10px; box-shadow: 0 12px 30px rgba(10,20,50,.25); display: flex; flex-direction: column; gap: 6px; }
.hfc-bars { display: flex; align-items: flex-end; gap: 5px; height: 32px; }
.hfc-bars span { width: 8px; background: linear-gradient(180deg, var(--blue), var(--navy)); border-radius: 3px; display: block; }
.hfc-bars span:nth-child(4) { background: linear-gradient(180deg, var(--gold), var(--orange)); }
.hfc-label { font-size: .72rem; font-weight: 700; color: var(--navy); }
@media (max-width: 900px) { .hero-figure { max-width: 272px; margin: 2rem auto -5rem; } .hero-float-card { left: -8px; } }

/* Variante compacta de la figura para heroes interiores */
.hero-figure--sm { max-width: 224px; margin: 0 auto -4rem; }
.inner-hero-visual { display: flex; justify-content: center; align-items: flex-end; }
.hero-figure--sm .hero-figure-shape { border-radius: 26px; height: 74%; }
.hero-figure--sm::before { width: 34px; height: 34px; right: -12px; top: 2%; }
.hero-figure--sm::after { width: 16px; height: 16px; left: -14px; bottom: 6%; }

/* --- Que nada desborde: un hijo de grid no baja del ancho de su contenido
       salvo que se le diga. Es lo que saca la página de la pantalla con un
       nombre largo o una tabla ancha. --- */
.grid-2 > *, .grid-3 > *, .grid-4 > *,
.planes-grid > *, .footer-grid > *, .historia-grid > * { min-width: 0; }

@media (max-width: 480px) {
  /* .grid-4 se quedaba en dos columnas hasta el final: a 360px las tarjetas
     de «por qué elegirnos» no caben. */
  .grid-4 { grid-template-columns: 1fr; }
}

/* --- Los cuatro pasos de «cómo trabajamos» --- */
.paso { text-align: center; padding: 1.5rem 1rem; }
.paso-num {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--navy); color: var(--gold);
  font-family: var(--font-head); font-weight: 800; font-size: 1.4rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
}
.paso-desc { font-size: .875rem; margin-top: .5rem; color: var(--text-muted); }

