/* ==========================================================================
   CONFE GROUP — Sistema visual
   Colores tomados del Portafolio de Diseño aprobado
   ========================================================================== */
:root {
  /* Primarios */
  --azul: #001951;          /* Azul CONFE */
  --azul-profundo: #000E30; /* Fondos más oscuros / footer */
  --azul-logo: #0B2651;     /* Azul del logotipo */
  --verde: #036603;         /* Verde CONFE */
  --verde-profundo: #024D02;
  --amarillo: #E9B707;      /* Amarillo CONFE */
  --amarillo-suave: #F6D55C;
  /* Neutros */
  --tinta: #0B1A33;
  --gris: #5B6A85;
  --gris-claro: #E3E8F1;
  --nieve: #F5F7FB;
  --blanco: #FFFFFF;

  --radio: 18px;
  --radio-sm: 10px;
  --sombra: 0 18px 50px -20px rgba(0, 25, 81, .35);
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --fuente: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Patrón zigzag del portafolio */
  --patron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 44 44'%3E%3Cpath d='M0 22 11 11l11 11 11-11 11 11M0 44l11-11 11 11 11-11 11 11' fill='none' stroke='%23ffffff' stroke-opacity='.045' stroke-width='3'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--fuente); color: var(--tinta); background: var(--blanco);
  font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -.02em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--amarillo); outline-offset: 3px; border-radius: 6px; }

.contenedor { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.seccion { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.patron { background-image: var(--patron); }

/* Etiqueta tipo "pill" amarilla del portafolio */
.etiqueta {
  display: inline-block; background: var(--amarillo); color: var(--azul);
  font-weight: 800; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase;
  padding: .45em 1em; border-radius: 8px;
}
.etiqueta--azul { background: var(--azul); color: var(--blanco); }
.linea { display: block; width: 90px; height: 2px; background: var(--amarillo); margin: 22px 0; }
.resaltar { color: var(--amarillo); }
.titulo { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; }
.lead { font-size: clamp(1.02rem, 1.4vw, 1.15rem); color: var(--gris); }

/* Botones */
.btn {
  display: inline-flex; align-items: center; gap: .7em; font-weight: 700; font-size: .98rem;
  padding: 1em 1.6em; border-radius: 12px; transition: transform .2s, background .2s, box-shadow .2s, color .2s;
  border: 2px solid transparent; cursor: pointer; font-family: inherit;
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .2s; }
.btn:hover svg { transform: translate(3px, -3px); }
.btn--amarillo { background: var(--amarillo); color: var(--azul); box-shadow: 0 10px 30px -10px rgba(233, 183, 7, .7); }
.btn--amarillo:hover { background: var(--amarillo-suave); transform: translateY(-2px); }
.btn--verde { background: var(--verde); color: var(--blanco); }
.btn--verde:hover { background: var(--verde-profundo); transform: translateY(-2px); }
.btn--borde { border-color: rgba(255,255,255,.4); color: var(--blanco); }
.btn--borde:hover { border-color: var(--amarillo); color: var(--amarillo); }
.btn--borde-azul { border-color: var(--azul); color: var(--azul); }
.btn--borde-azul:hover { background: var(--azul); color: var(--blanco); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, box-shadow .3s, padding .3s;
  padding: 18px 0;
}
.header.scrolled { background: rgba(0, 25, 81, .96); backdrop-filter: blur(10px); box-shadow: 0 6px 30px rgba(0,0,0,.2); padding: 10px 0; }
.header .contenedor { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header__logo img { height: 46px; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 32px); }
.nav a { color: rgba(255,255,255,.85); font-size: .92rem; font-weight: 500; position: relative; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--amarillo); transition: width .25s; }
.nav a:not(.btn):hover { color: var(--blanco); }
.nav a:not(.btn):hover::after { width: 100%; }
.nav .btn { padding: .7em 1.2em; font-size: .9rem; }
.menu-btn { display: none; background: none; border: 0; color: #fff; width: 44px; height: 44px; cursor: pointer; }
.menu-btn svg { width: 28px; height: 28px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end;
  color: var(--blanco); background: var(--azul) url("img/hero.webp") center 30% / cover no-repeat;
  padding: 150px 0 80px; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(0,25,81,.94) 0%, rgba(0,25,81,.78) 42%, rgba(0,25,81,.25) 75%, rgba(0,25,81,.15) 100%),
    linear-gradient(0deg, rgba(0,14,48,.95) 0%, rgba(0,14,48,0) 45%);
}
.hero__arco {
  position: absolute; right: -12vw; top: 8vh; width: 70vw; max-width: 900px; aspect-ratio: 1; border-radius: 50%;
  border: 1.5px solid rgba(233,183,7,.35); pointer-events: none;
}
.hero__arco::after { content: ""; position: absolute; inset: 9%; border-radius: 50%; border: 1.5px solid rgba(3,102,3,.5); }
.hero .contenedor { position: relative; display: grid; grid-template-columns: 1.35fr .9fr; gap: 48px; align-items: end; }
.hero__eyebrow { display: flex; align-items: center; gap: 14px; font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--amarillo); font-weight: 600; margin-bottom: 26px; }
.hero__eyebrow::before { content: ""; width: 40px; height: 2px; background: var(--amarillo); }
.hero h1 { font-size: clamp(2.3rem, 5.6vw, 4.4rem); font-weight: 700; letter-spacing: -.03em; }
.hero h1 mark {
  background: var(--amarillo); color: var(--azul); padding: .02em .22em; border-radius: 10px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.hero__sub { margin-top: 26px; max-width: 560px; color: rgba(255,255,255,.82); font-size: clamp(1rem, 1.4vw, 1.12rem); }
.hero__acciones { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 38px; }
.hero__dato { display: flex; align-items: center; gap: 12px; padding-left: 26px; border-left: 1px solid rgba(255,255,255,.25); }
.hero__dato strong { font-size: 2rem; font-weight: 800; color: var(--amarillo); line-height: 1; }
.hero__dato span { font-size: .8rem; line-height: 1.3; color: rgba(255,255,255,.75); }
.hero__lema { border-top: 2px solid var(--amarillo); padding-top: 18px; max-width: 340px; justify-self: end; }
.hero__lema p { font-weight: 600; font-size: 1.1rem; line-height: 1.4; }
.hero__lema a { display: inline-block; margin-top: 10px; color: var(--amarillo); font-size: 1.05rem; }

/* ---------- Esencia ---------- */
.esencia { background: var(--nieve); }
.esencia__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.esencia h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); font-weight: 700; margin-top: 22px; }
.esencia h2 span { color: var(--verde); }
.esencia__texto { margin-top: 22px; }
.proposito {
  margin-top: 36px; background: var(--blanco); border-radius: var(--radio); padding: 28px 30px;
  border-left: 5px solid var(--amarillo); box-shadow: var(--sombra);
}
.proposito h3 { font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--verde); margin-bottom: 10px; }
.proposito p { font-size: 1.12rem; font-weight: 500; color: var(--azul); }
.esencia__visual {
  position: relative; border-radius: 240px 240px var(--radio) var(--radio); overflow: hidden;
  background: var(--azul); aspect-ratio: 4/4.6; display: flex; align-items: flex-end; justify-content: center;
}
.esencia__visual::before {
  content: ""; position: absolute; width: 80%; aspect-ratio: 1; border-radius: 50%; left: -25%; bottom: -20%;
  border: 38px solid rgba(255,255,255,.06);
}
.esencia__visual img { position: relative; height: 94%; width: auto; max-width: 96%; object-fit: contain; object-position: bottom; filter: grayscale(1) contrast(1.05); }
.esencia__visual .punto { position: absolute; top: 14%; right: 16%; width: 58px; height: 58px; border-radius: 50%; background: var(--amarillo); box-shadow: 0 0 0 12px rgba(233,183,7,.15); }

/* ---------- Por qué elegirnos ---------- */
.porque { background: var(--azul); color: var(--blanco); }
.porque__head { display: flex; justify-content: space-between; align-items: end; gap: 30px; flex-wrap: wrap; margin-bottom: 56px; }
.porque__head h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); font-weight: 700; max-width: 640px; margin-top: 20px; }
.porque__head p { max-width: 380px; color: rgba(255,255,255,.72); }
.razones { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.razon {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radio);
  padding: 30px 26px; transition: transform .25s, background .25s, border-color .25s;
}
.razon:hover { transform: translateY(-6px); background: rgba(255,255,255,.08); border-color: var(--amarillo); }
.razon__icono { width: 54px; height: 54px; border-radius: 14px; background: var(--amarillo); color: var(--azul); display: grid; place-items: center; margin-bottom: 22px; }
.razon__icono svg { width: 28px; height: 28px; }
.razon h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.razon p { font-size: .93rem; color: rgba(255,255,255,.72); }

/* ---------- Líder ---------- */
.lider { background: var(--verde); color: var(--blanco); overflow: hidden; padding-bottom: 0; }
.lider__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.lider__foto { align-self: end; }
.lider__texto { padding-bottom: clamp(56px, 8vw, 110px); }
.lider__nombre { display: flex; gap: 22px; align-items: center; margin-top: 26px; }
.lider__nombre img { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; border: 3px solid var(--amarillo); }
.lider__nombre small { display: block; color: var(--amarillo); font-weight: 700; font-size: .95rem; }
.lider__nombre h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 600; }
.lider__nombre em { font-style: normal; color: var(--amarillo); font-weight: 600; font-size: 1.02rem; }
.lider__intro { margin-top: 24px; color: rgba(255,255,255,.88); max-width: 560px; }
.vinetas { margin-top: 22px; display: grid; gap: 10px; }
.vinetas li { display: flex; gap: 12px; align-items: baseline; }
.vinetas li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--amarillo); flex: none; transform: translateY(-1px); }
.cita {
  margin-top: 34px; padding: 26px 28px; border-radius: var(--radio); background: rgba(0,0,0,.18);
  border-left: 5px solid var(--amarillo); font-size: 1.05rem; font-style: italic; max-width: 600px;
}
.cita cite { display: block; margin-top: 12px; font-style: normal; font-weight: 700; color: var(--amarillo); font-size: .92rem; }
.lider__foto { position: relative; display: flex; justify-content: center; }
.lider__foto::before { content: ""; position: absolute; bottom: 0; width: 85%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(233,183,7,.35), rgba(233,183,7,0) 65%); }
.lider__foto img { position: relative; width: min(100%, 470px); height: auto; }

/* ---------- Servicios ---------- */
.servicios { background: var(--nieve); }
.servicios__head { display: flex; justify-content: space-between; align-items: end; gap: 30px; flex-wrap: wrap; margin-bottom: 50px; }
.servicios__head h2 { color: var(--azul); }
.servicios__head p { max-width: 420px; }
.tarjetas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.tarjeta {
  position: relative; background: var(--amarillo); color: var(--azul); border-radius: var(--radio); padding: 22px;
  display: flex; flex-direction: column; gap: 16px; transition: transform .25s, box-shadow .25s;
}
.tarjeta:hover { transform: translateY(-6px); box-shadow: var(--sombra); }
.tarjeta h3, .tarjeta h2 { font-size: 1.28rem; font-weight: 800; line-height: 1.12; min-height: 2.3em; }
.tarjeta__img { border-radius: 12px; overflow: hidden; aspect-ratio: 16/11; background: rgba(0,0,0,.08); }
.tarjeta__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.tarjeta:hover .tarjeta__img img { transform: scale(1.06); }
.tarjeta p { font-size: .9rem; line-height: 1.55; }
.tarjeta--destacada { background: var(--azul); color: var(--blanco); }
.tarjeta--destacada h3, .tarjeta--destacada h2 { color: var(--amarillo); }
.tarjeta--destacada .estrella { position: absolute; top: -18px; right: -12px; width: 48px; height: 48px; color: var(--amarillo); filter: drop-shadow(0 4px 8px rgba(0,0,0,.25)); }
.tarjeta--verde { background: var(--verde); color: var(--blanco); }
.tarjeta--verde h3 { color: var(--blanco); }
.servicios__suite {
  margin-top: 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background: var(--azul); color: var(--blanco); border-radius: var(--radio); padding: 30px 34px;
}
.servicios__suite p { font-size: 1.15rem; max-width: 720px; }
.servicios__suite strong { color: var(--amarillo); }

/* ---------- Happy Work ---------- */
.happy { background: var(--azul); color: var(--blanco); overflow: hidden; }
.happy__grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.happy__marca { font-size: clamp(4.2rem, 12vw, 10rem); font-weight: 900; line-height: .86; letter-spacing: -.04em; text-transform: uppercase; }
.happy__marca span { display: block; color: var(--amarillo); }
.happy__marca sup { font-size: .22em; vertical-align: top; color: var(--amarillo); letter-spacing: 0; }
.happy h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 600; }
.happy h2 strong { color: var(--amarillo); font-weight: 700; }
.happy__desc { margin-top: 14px; color: rgba(255,255,255,.8); }
.happy .etiqueta { margin-top: 30px; }
.componentes { margin-top: 20px; display: grid; gap: 12px; }
.componentes li { display: flex; gap: 12px; align-items: baseline; color: rgba(255,255,255,.85); }
.componentes li::before { content: "◆"; color: var(--amarillo); font-size: .7rem; flex: none; }
.componentes strong { color: var(--blanco); }
.resultados-titulo { margin: 70px 0 26px; display: inline-block; background: var(--amarillo); color: var(--azul); font-weight: 800; font-size: clamp(1.05rem, 1.8vw, 1.35rem); padding: .5em 1em; border-radius: 12px; }
.resultados { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.resultado { border-radius: var(--radio); padding: 30px 22px; text-align: center; background: var(--amarillo); color: var(--azul); transition: transform .25s; }
.resultado:nth-child(even) { background: var(--verde); color: var(--blanco); }
.resultado:hover { transform: translateY(-6px); }
.resultado svg { width: 64px; height: 64px; margin: 0 auto 18px; }
.resultado small { display: block; font-weight: 700; font-size: .85rem; letter-spacing: .08em; padding-top: 14px; border-top: 2px solid currentColor; width: 60%; margin: 0 auto; }
.resultado h3 { font-size: 1.3rem; font-weight: 800; text-transform: uppercase; margin: 4px 0 12px; }
.resultado p { font-size: .88rem; line-height: 1.5; }

/* ---------- Banda resultados ---------- */
.banda {
  position: relative; min-height: 520px; display: flex; align-items: center; justify-content: center; text-align: center;
  background: var(--azul) url("img/equipo.webp") center 25% / cover no-repeat; padding: 100px 0;
}
.banda::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,25,81,.75), rgba(0,25,81,.25)); }
.banda .contenedor { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.banda span { background: var(--azul); color: var(--blanco); font-weight: 700; font-size: clamp(.95rem, 2vw, 1.5rem); padding: .4em .9em; text-transform: uppercase; }
.banda strong { background: var(--amarillo); color: var(--blanco); font-weight: 900; font-size: clamp(1.8rem, 5vw, 3.6rem); padding: .12em .5em; text-transform: uppercase; line-height: 1.1; text-shadow: 0 2px 0 rgba(0,0,0,.12); }

/* ---------- Proceso ---------- */
.proceso { background: var(--azul-profundo); color: var(--blanco); }
.proceso__head { text-align: center; margin-bottom: 64px; }
.proceso__head h2 { margin-top: 20px; font-size: clamp(2rem, 4.2vw, 3.2rem); font-weight: 700; }
.pasos { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; position: relative; }
.pasos::before { content: ""; position: absolute; top: 48px; left: 10%; right: 10%; height: 2px; background: repeating-linear-gradient(90deg, var(--amarillo) 0 10px, transparent 10px 18px); opacity: .6; }
.paso { text-align: center; position: relative; }
.paso__num { width: 96px; height: 96px; margin: 0 auto; border-radius: 50%; background: var(--amarillo); color: var(--azul); display: grid; place-items: center; font-size: 2rem; font-weight: 900; box-shadow: 0 0 0 8px var(--azul-profundo), 0 0 0 10px rgba(233,183,7,.35); }
.paso h3 { margin: 26px auto 12px; display: inline-block; background: var(--amarillo); color: var(--azul); font-size: .82rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: .6em 1.1em; border-radius: 999px; }
.paso p { font-size: .9rem; color: rgba(255,255,255,.75); max-width: 220px; margin: 0 auto; }
.compromiso { margin-top: 80px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: center; padding-top: 60px; border-top: 1px solid rgba(255,255,255,.12); }
.compromiso h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; text-transform: uppercase; }
.compromiso ul { display: grid; gap: 14px; }
.compromiso li { display: flex; gap: 14px; align-items: baseline; font-size: 1.05rem; }
.compromiso li::before { content: "◆"; color: var(--amarillo); font-size: .75rem; flex: none; }

/* ---------- Brochure ---------- */
.brochure { background: linear-gradient(110deg, var(--azul) 0%, var(--azul-logo) 60%, var(--verde) 140%); color: var(--blanco); padding: clamp(60px, 8vw, 96px) 0; }
.brochure .contenedor { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.brochure h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); font-weight: 700; margin-top: 18px; }
.brochure p { margin-top: 12px; color: rgba(255,255,255,.78); max-width: 560px; }

/* ---------- Contacto ---------- */
.contacto { background: var(--verde); color: var(--blanco); padding: 0; }
.contacto__grid { display: grid; grid-template-columns: .85fr 1.15fr; min-height: 640px; }
.contacto__foto { background: url("img/contacto.webp") center / cover no-repeat; min-height: 360px; }
.contacto__texto { padding: clamp(56px, 8vw, 110px) clamp(24px, 6vw, 90px); }
.contacto h2 { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 800; }
.contacto h2::before { content: ""; display: block; width: 180px; border-top: 3px dashed var(--amarillo); margin-bottom: 20px; }
.contacto__intro { margin-top: 12px; font-size: 1.15rem; max-width: 560px; }
.contacto__intro mark { background: var(--amarillo); color: var(--azul); font-weight: 600; padding: .05em .35em; border-radius: 6px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.datos { margin-top: 30px; display: grid; gap: 14px; }
.datos a, .datos div { display: flex; align-items: center; gap: 14px; font-size: 1.02rem; }
.datos svg { width: 22px; height: 22px; color: var(--amarillo); flex: none; }
.datos a:hover { color: var(--amarillo); }
.cobertura { margin-top: 26px; }
.cobertura p { margin-top: 10px; font-weight: 600; }
.contacto .cita { background: var(--azul); border-left-color: var(--amarillo); font-style: normal; }
.contacto .cita strong { color: var(--amarillo); }
.contacto__acciones { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Footer ---------- */
.footer { background: var(--azul-profundo); color: rgba(255,255,255,.75); padding: 64px 0 28px; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; align-items: start; }
.footer__logo img { height: 52px; width: auto; }
.footer__lema { margin-top: 18px; font-size: 1.05rem; color: var(--blanco); font-weight: 500; }
.footer h4 { color: var(--amarillo); font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 16px; }
.footer li + li { margin-top: 8px; }
.footer a:hover { color: var(--amarillo); }
.footer__base { margin-top: 50px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }

/* WhatsApp flotante */
.wa-flotante { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.3); transition: transform .2s; }
.wa-flotante:hover { transform: scale(1.08); }
.wa-flotante svg { width: 30px; height: 30px; }

/* Animación de entrada */
.revelar { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.revelar.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .revelar { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .tarjetas { grid-template-columns: repeat(2, 1fr); }
  .razones { grid-template-columns: repeat(2, 1fr); }
  .resultados { grid-template-columns: repeat(2, 1fr); }
  .pasos { grid-template-columns: repeat(3, 1fr); row-gap: 50px; }
  .pasos::before { display: none; }
}
@media (max-width: 900px) {
  .menu-btn { display: block; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(320px, 85vw); background: var(--azul); flex-direction: column; align-items: flex-start;
    padding: 96px 30px 30px; gap: 22px; transform: translateX(100%); transition: transform .3s; box-shadow: -20px 0 50px rgba(0,0,0,.3);
  }
  .nav a { font-size: 1.1rem; }
  .nav.abierto { transform: none; }
  .hero .contenedor, .esencia__grid, .lider__grid, .happy__grid, .compromiso, .contacto__grid, .footer__grid { grid-template-columns: 1fr; }
  .hero__lema { justify-self: start; }
  .esencia__visual { max-width: 460px; margin: 0 auto; width: 100%; }
  .lider__texto { padding-bottom: 20px; }
  .lider__foto img { width: min(80%, 360px); }
  .contacto__foto { order: 2; }
}
@media (max-width: 600px) {
  .header__logo img { height: 38px; }
  .tarjetas, .razones { grid-template-columns: 1fr; }
  .resultados { grid-template-columns: 1fr 1fr; gap: 12px; }
  .resultado { padding: 22px 14px; }
  .resultado svg { width: 48px; height: 48px; }
  .resultado h3 { font-size: 1.05rem; }
  .pasos { grid-template-columns: 1fr 1fr; }
  .hero__dato { border-left: 0; padding-left: 0; }
  .servicios__suite { padding: 24px; }
}

/* ==========================================================================
   Páginas internas (Servicios)
   ========================================================================== */
.tarjeta__mas { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .9rem; padding-top: 6px; border-top: 2px solid currentColor; align-self: flex-start; }
.tarjeta__mas svg { width: 16px; height: 16px; transition: transform .2s; }
.tarjeta--link:hover .tarjeta__mas svg { transform: translate(3px, -3px); }
.tarjeta--link:focus-visible { outline-offset: 4px; }

/* Hero interno */
.shero { background: var(--azul) var(--patron); color: var(--blanco); padding: 150px 0 90px; position: relative; overflow: hidden; }
.shero::after { content: ""; position: absolute; right: -180px; bottom: -260px; width: 620px; aspect-ratio: 1; border-radius: 50%; border: 1.5px solid rgba(233,183,7,.3); pointer-events: none; }
.shero .contenedor { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 6vw, 80px); align-items: center; position: relative; z-index: 1; }
.migas { display: flex; flex-wrap: wrap; gap: 8px; font-size: .82rem; color: rgba(255,255,255,.65); margin-bottom: 26px; }
.migas a:hover { color: var(--amarillo); }
.migas li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.migas [aria-current] { color: var(--amarillo); }
.shero__num { display: block; font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--amarillo); font-weight: 600; margin: 22px 0 14px; }
.shero h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); font-weight: 800; letter-spacing: -.03em; }
.shero h1 span { color: var(--amarillo); }
.shero__lead { margin-top: 22px; font-size: clamp(1.02rem, 1.5vw, 1.2rem); color: rgba(255,255,255,.85); max-width: 580px; }
.shero__acciones { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.shero__foto { position: relative; }
.shero__foto img { width: 100%; aspect-ratio: 4/4.3; object-fit: cover; border-radius: 240px 240px var(--radio) var(--radio); box-shadow: 0 30px 60px -25px rgba(0,0,0,.6); }
.shero__foto::before { content: ""; position: absolute; top: 8%; right: -14px; width: 64px; height: 64px; border-radius: 50%; background: var(--amarillo); box-shadow: 0 0 0 12px rgba(233,183,7,.18); z-index: 1; }
.shero--hub { padding-bottom: 110px; }
.shero--hub .contenedor { grid-template-columns: 1fr; }

/* Retos */
.retos { background: var(--nieve); }
.retos__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.retos h2, .incluye h2, .para h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); font-weight: 700; color: var(--azul); margin-top: 20px; }
.retos h2 span, .incluye h2 span, .para h2 span { color: var(--verde); }
.retos__lista { display: grid; gap: 14px; }
.retos__lista li { background: var(--blanco); border-radius: 14px; padding: 18px 22px; display: flex; gap: 16px; align-items: flex-start; box-shadow: 0 10px 30px -22px rgba(0,25,81,.5); border-left: 4px solid var(--amarillo); }
.retos__lista svg { width: 22px; height: 22px; color: var(--verde); flex: none; margin-top: 2px; }

/* Qué incluye */
.incluye__head { display: flex; justify-content: space-between; align-items: end; gap: 30px; flex-wrap: wrap; margin-bottom: 46px; }
.incluye__head p { max-width: 420px; }
.componentes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.comp { border: 1px solid var(--gris-claro); border-radius: var(--radio); padding: 28px 26px; background: var(--blanco); transition: transform .25s, box-shadow .25s, border-color .25s; }
.comp:hover { transform: translateY(-5px); box-shadow: var(--sombra); border-color: var(--amarillo); }
.comp__n { width: 46px; height: 46px; border-radius: 50%; background: var(--amarillo); color: var(--azul); font-weight: 900; display: grid; place-items: center; margin-bottom: 18px; }
.comp h3 { font-size: 1.1rem; font-weight: 700; color: var(--azul); margin-bottom: 8px; }
.comp p { font-size: .93rem; color: var(--gris); }
.principio { margin-top: 40px; background: var(--azul); color: var(--blanco); border-radius: var(--radio); padding: 30px 34px; font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 600; border-left: 6px solid var(--amarillo); }
.principio small { display: block; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--amarillo); margin-bottom: 8px; }

/* Entregables y resultados */
.valor { background: var(--verde); color: var(--blanco); }
.valor__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.valor h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 700; margin-top: 20px; }
.valor h2 span { color: var(--amarillo); }
.entregables { margin-top: 26px; display: grid; gap: 12px; }
.entregables li { display: flex; gap: 12px; align-items: baseline; }
.entregables li::before { content: "◆"; color: var(--amarillo); font-size: .7rem; flex: none; }
.logros { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.logro { background: var(--amarillo); color: var(--azul); border-radius: var(--radio); padding: 24px 22px; }
.logro:nth-child(2), .logro:nth-child(3) { background: var(--azul); color: var(--blanco); }
.logro:nth-child(2) h3, .logro:nth-child(3) h3 { color: var(--amarillo); }
.logro h3 { font-size: 1.05rem; font-weight: 800; text-transform: uppercase; margin-bottom: 8px; }
.logro p { font-size: .9rem; line-height: 1.5; }

/* Para quién */
.para__chips { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.para__chips li { background: var(--nieve); border: 1px solid var(--gris-claro); color: var(--azul); font-weight: 600; font-size: .95rem; padding: .7em 1.2em; border-radius: 999px; }
.para__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.para__modal { background: var(--nieve); border-radius: var(--radio); padding: 30px; display: grid; gap: 18px; }
.para__modal div { display: flex; gap: 16px; align-items: flex-start; }
.para__modal svg { width: 26px; height: 26px; color: var(--verde); flex: none; }
.para__modal strong { display: block; color: var(--azul); }
.para__modal span { font-size: .92rem; color: var(--gris); }

/* Relacionados */
.relacionados { background: var(--nieve); }
.relacionados .tarjetas { grid-template-columns: repeat(3, 1fr); }
.relacionados h2 { color: var(--azul); margin-bottom: 40px; }

@media (max-width: 1080px) {
  .componentes-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .shero .contenedor, .retos__grid, .valor__grid, .para__grid { grid-template-columns: 1fr; }
  .shero__foto { max-width: 460px; }
  .relacionados .tarjetas { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .componentes-grid, .logros, .relacionados .tarjetas, .footer__grid { grid-template-columns: 1fr; }
  .shero { padding-top: 120px; }
}
