/* =========================================================
   TC Embobinados Meza — estilos
   Paleta de marca
   ========================================================= */
:root {
  --crema: #EEE9DF;
  --arena: #C9C1B1;
  --pizarra: #2C3B4D;
  --amarillo: #F6B808;
  --oxido: #C45717;
  --oxido-osc: #8E3C0C;
  --marino: #222C56;
  --blanco: #FFFFFF;
  --gris-texto: #6B6556;

  --f-titulo: 'Bitter', Georgia, serif;
  --f-texto: 'Work Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radio: 24px;
  --sombra: 0 20px 48px rgba(34, 44, 86, .10);
  --ancho: 1280px;
  --gutter: 80px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--f-texto);
  font-size: 17px;
  line-height: 1.55;
  color: var(--marino);
  background: var(--crema);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--marino); }
a:hover { color: var(--oxido); }
h1, h2, h3 { font-family: var(--f-titulo); margin: 0; line-height: 1.1; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--oxido); outline-offset: 3px; border-radius: 6px; }

.contenedor { width: 100%; max-width: calc(var(--ancho) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.seccion { padding: 104px 0; }
.seccion--blanca { background: var(--blanco); }
.seccion--marino { background: var(--marino); color: var(--crema); }
.seccion--arena { background: var(--arena); }

.eyebrow { display: block; font-size: 14px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--oxido); margin-bottom: 14px; }
.seccion--marino .eyebrow { color: var(--amarillo); }
.titulo-seccion { font-size: clamp(32px, 4vw, 48px); font-weight: 800; }
.seccion--marino .titulo-seccion { color: var(--blanco); }
.cabecera-seccion { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 48px; flex-wrap: wrap; }
.cabecera-seccion--centro { flex-direction: column; align-items: center; text-align: center; }
.cabecera-seccion p { max-width: 440px; color: var(--pizarra); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px; border-radius: 999px;
  font-weight: 600; font-size: 17px; text-decoration: none; white-space: nowrap;
  border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { flex-shrink: 0; }
.btn--amarillo { background: var(--amarillo); color: var(--marino); }
.btn--amarillo:hover { background: #ffc828; color: var(--marino); }
.btn--marino { background: var(--marino); color: var(--blanco); }
.btn--marino:hover { background: #2d3a70; color: var(--blanco); }
.btn--borde { border-color: var(--marino); color: var(--marino); background: transparent; }
.btn--borde:hover { background: var(--marino); color: var(--blanco); }
.btn--chico { min-height: 48px; padding: 0 20px; font-size: 16px; }

.enlace-flecha { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; color: var(--oxido); text-decoration: none; }
.enlace-flecha:hover { color: var(--oxido-osc); }

/* ---------- Barra superior ---------- */
.topbar { background: var(--marino); color: var(--crema); font-size: 14px; }
.topbar .contenedor { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.topbar__datos { display: flex; gap: 32px; }
.topbar__datos span { display: inline-flex; gap: 8px; align-items: center; }
.topbar a { color: var(--amarillo); font-weight: 600; text-decoration: none; }

/* ---------- Encabezado / navegación ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(238, 233, 223, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--arena); }
.header .contenedor { height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header__logo img { height: 68px; width: auto; }
.nav { display: flex; align-items: center; gap: 30px; font-weight: 500; }
.nav a:not(.btn) { text-decoration: none; }
.nav-toggle { display: none; width: 48px; height: 48px; border: 0; border-radius: 12px; background: var(--marino); color: var(--crema); align-items: center; justify-content: center; cursor: pointer; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 104px; }
.hero .contenedor { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: center; }
.pill { display: inline-block; padding: 8px 16px; border-radius: 999px; background: var(--marino); color: var(--amarillo); font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.hero h1 { font-size: clamp(40px, 5.2vw, 68px); font-weight: 800; letter-spacing: -.02em; line-height: 1.03; margin: 26px 0; }
.hero h1 em { font-style: normal; color: var(--oxido); }
.hero__texto { font-size: 20px; color: var(--pizarra); max-width: 540px; }
.hero__botones { display: flex; gap: 16px; margin-top: 30px; flex-wrap: wrap; }
.hero__checks { display: flex; gap: 28px; margin-top: 30px; font-size: 15px; font-weight: 500; color: var(--pizarra); flex-wrap: wrap; }
.hero__checks span { display: inline-flex; gap: 8px; align-items: center; }

.hero__media { position: relative; min-height: 540px; }
.hero__media-img { position: absolute; inset: 0; }
.hero__fondo { position: absolute; right: 0; top: 0; width: 86%; height: 85%; border-radius: 28px; background: var(--amarillo); }
.hero__foto { position: absolute; left: 3%; bottom: 20px; width: 92%; height: 82%; border-radius: 28px; overflow: hidden; box-shadow: 0 24px 48px rgba(34,44,86,.14); }
.hero__foto img { width: 100%; height: 100%; object-fit: cover; }
.hero__sello { position: absolute; left: 0; top: 24px; display: flex; gap: 14px; align-items: center; padding: 14px 20px 14px 14px; border-radius: 20px; background: var(--blanco); box-shadow: 0 12px 28px rgba(34,44,86,.16); font-family: var(--f-titulo); font-weight: 700; font-size: 20px; line-height: 1.2; }
.hero__sello img { width: 72px; height: 72px; }
.hero__horario { position: absolute; right: 24px; bottom: 0; padding: 18px 22px; border-radius: 18px; background: var(--marino); color: var(--crema); font-family: var(--f-titulo); font-weight: 700; font-size: 19px; line-height: 1.45; }
.hero__horario small { display: block; font-family: var(--f-texto); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--amarillo); font-weight: 600; margin-bottom: 4px; }

/* ---------- Servicios ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.tarjeta { border-radius: var(--radio); background: var(--crema); overflow: hidden; display: flex; flex-direction: column; }
.tarjeta > img { width: 100%; height: 240px; object-fit: cover; }
.tarjeta__cuerpo { flex: 1; padding: 30px 32px 32px; display: flex; flex-direction: column; gap: 14px; }
.tarjeta__cuerpo h3 { font-size: 26px; font-weight: 700; }
.tarjeta__cuerpo p { flex: 1; font-size: 16px; color: var(--pizarra); }
.seccion--blanca .tarjeta { background: var(--crema); }

.mas-servicios { margin-top: 28px; border-radius: var(--radio); background: var(--marino); color: var(--crema); overflow: hidden; display: grid; grid-template-columns: 380px 1fr; }
.mas-servicios img { width: 100%; height: 100%; min-height: 340px; object-fit: cover; }
.mas-servicios__cuerpo { padding: 48px 56px; }
.mas-servicios h3 { font-size: 34px; color: var(--blanco); margin-bottom: 28px; font-weight: 700; }
.lista-check { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.lista-check--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 40px; }
.lista-check li { display: flex; gap: 12px; }
.lista-check svg { flex-shrink: 0; margin-top: 4px; }

/* ---------- Por qué ---------- */
.porque { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.porque__item { padding: 40px 36px; border-radius: var(--radio); background: var(--pizarra); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.porque__num { width: 88px; height: 88px; display: grid; place-items: center; font-family: var(--f-titulo); font-size: 40px; font-weight: 800; clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%); }
.porque__item h3 { font-size: 26px; color: var(--blanco); font-weight: 700; }
.porque__item p { color: var(--arena); }

/* ---------- Cómo funciona ---------- */
.fase { display: block; font-size: 14px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--pizarra); margin: 8px 0 16px; }
.paso { padding: 28px 30px; border-radius: 20px; background: var(--blanco); display: flex; flex-direction: column; gap: 10px; }
.paso__num { font-family: var(--f-titulo); font-size: 40px; font-weight: 800; color: var(--oxido); line-height: 1; }
.paso h3 { font-family: var(--f-texto); font-size: 21px; font-weight: 600; }
.paso p { font-size: 16px; color: var(--pizarra); }
.autorizacion { margin: 24px 0; padding: 20px 28px; border-radius: 16px; background: var(--amarillo); display: flex; gap: 14px; align-items: center; font-size: 19px; font-weight: 600; }
.tiempos { margin-top: 28px; padding: 32px 36px; border-radius: var(--radio); background: var(--blanco); }
.tiempos h3 { font-size: 26px; margin-bottom: 20px; font-weight: 700; }
.tiempo { padding: 20px; border-radius: 16px; border: 2px solid var(--arena); }
.tiempo strong { display: block; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 6px; }
.tiempo p { font-size: 16px; color: var(--pizarra); }
.tiempo--urgente { border-color: var(--oxido); } .tiempo--urgente strong { color: var(--oxido); }
.tiempo--regular { border-color: var(--marino); }

/* ---------- Estado de mi equipo ---------- */
.estado { padding: 56px 64px; border-radius: 32px; background: var(--blanco); box-shadow: var(--sombra); }
.estado__cabecera { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.estado__cabecera p { color: var(--pizarra); max-width: 640px; margin-top: 16px; }
.estado__cta { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.estado__cta small { color: var(--gris-texto); font-size: 14px; }
.estado__ejemplo { margin-top: 48px; padding: 32px; border-radius: var(--radio); background: var(--crema); }
.estado__ejemplo-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 32px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--pizarra); }
.etiqueta { padding: 8px 14px; border-radius: 999px; background: var(--amarillo); color: var(--marino); font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none; white-space: nowrap; }

.stepper { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); position: relative; }
.stepper::before, .stepper::after { content: ""; position: absolute; top: 20px; height: 4px; left: 8.33%; }
.stepper::before { right: 8.33%; background: var(--arena); }
.stepper::after { width: 66.67%; background: var(--marino); }
.stepper li { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; padding: 0 6px; font-size: 15px; line-height: 1.3; color: var(--pizarra); }
.stepper__punto { width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center; font-weight: 800; font-family: var(--f-titulo); box-shadow: 0 0 0 6px var(--crema); }
.stepper .hecho .stepper__punto { background: var(--marino); }
.stepper .actual .stepper__punto { background: var(--amarillo); border: 3px solid var(--marino); color: var(--marino); }
.stepper .actual { font-weight: 700; color: var(--marino); }
.stepper .pendiente .stepper__punto { background: var(--crema); border: 2px solid var(--arena); color: var(--gris-texto); }
.stepper .pendiente { color: var(--gris-texto); }

/* ---------- Nosotros ---------- */
.nosotros { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 72px; align-items: center; }
.nosotros__foto { position: relative; height: 600px; }
.nosotros__foto > img { width: 100%; height: 100%; object-fit: cover; border-radius: 28px; }
.nosotros__sello { position: absolute; right: -24px; bottom: 40px; padding: 18px; border-radius: 999px; background: var(--blanco); box-shadow: 0 12px 28px rgba(34,44,86,.18); }
.nosotros__sello img { width: 120px; height: 120px; }
.nosotros__texto { display: flex; flex-direction: column; gap: 22px; }
.nosotros__texto h2 { font-size: clamp(30px, 3.6vw, 46px); font-weight: 800; }
.nosotros__texto p { font-size: 18px; line-height: 1.65; color: var(--pizarra); }
.cifras { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cifra { padding: 18px; border-radius: 16px; background: var(--crema); }
.cifra strong { display: block; font-family: var(--f-titulo); font-size: 34px; font-weight: 800; color: var(--oxido); line-height: 1.1; }
.cifra span { font-size: 15px; color: var(--pizarra); }
.nosotros__extra { margin-top: 72px; }
.nosotros__extra .tarjeta__cuerpo p { flex: none; }
.marcas { width: 180px; border-radius: 12px; background: var(--blanco); padding: 8px; }

/* ---------- Cotizar ---------- */
.cotizar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: start; }
.cotizar__saludo { font-family: var(--f-titulo); font-size: 22px; font-weight: 700; color: var(--oxido-osc); }
.cotizar h2 { font-size: clamp(32px, 4.2vw, 52px); font-weight: 800; margin: 18px 0 22px; }
.cotizar__texto { color: var(--pizarra); max-width: 500px; font-size: 18px; }
.contacto-rapido { display: grid; gap: 14px; margin-top: 30px; }
.contacto-rapido a { display: inline-flex; align-items: center; gap: 14px; font-size: 20px; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.icono-circulo { width: 52px; height: 52px; flex-shrink: 0; border-radius: 999px; background: var(--marino); color: var(--amarillo); display: grid; place-items: center; }

.form { padding: 44px; border-radius: 28px; background: var(--blanco); box-shadow: var(--sombra); display: grid; gap: 20px; }
.form__fila { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.campo { display: flex; flex-direction: column; gap: 8px; }
.campo label { font-size: 15px; font-weight: 600; }
.campo label span { font-weight: 400; color: var(--gris-texto); }
.campo input, .campo select, .campo textarea { width: 100%; min-height: 52px; padding: 12px 16px; border-radius: 12px; border: 2px solid var(--arena); background: var(--blanco); font-size: 16px; color: var(--marino); }
.campo textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: none; border-color: var(--marino); }
.campo input[aria-invalid="true"] { border-color: var(--oxido); }
.form__nota { font-size: 14px; color: var(--gris-texto); text-align: center; }
.form .btn { width: 100%; min-height: 60px; font-size: 18px; }
.form__error { color: var(--oxido-osc); font-size: 14px; font-weight: 600; min-height: 1em; }

/* ---------- Contacto ---------- */
.contacto { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: stretch; }
.datos { display: grid; gap: 22px; margin: 32px 0; font-size: 18px; }
.dato { display: flex; gap: 16px; }
.dato svg { flex-shrink: 0; margin-top: 2px; }
.dato strong { display: block; }
.dato span, .dato a { color: var(--pizarra); }
.redes { display: flex; gap: 12px; flex-wrap: wrap; }
.mapa { border-radius: 28px; overflow: hidden; min-height: 480px; background: var(--arena); }
.mapa iframe { width: 100%; height: 100%; min-height: 480px; border: 0; display: block; }

/* ---------- Footer ---------- */
.footer { background: var(--marino); color: var(--arena); padding: 48px 0; font-size: 15px; }
.footer .contenedor { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.footer__marca { display: flex; align-items: center; gap: 24px; }
.footer__logo { padding: 10px 16px; border-radius: 16px; background: var(--crema); }
.footer__logo img { height: 56px; width: auto; }

/* ---------- WhatsApp flotante ---------- */
.wa-flotante { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 62px; height: 62px; border-radius: 999px; background: #25D366; color: var(--blanco); display: grid; place-items: center; box-shadow: 0 10px 24px rgba(34,44,86,.35); transition: transform .15s ease; }
.wa-flotante:hover { transform: scale(1.06); color: var(--blanco); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1180px) {
  :root { --gutter: 40px; }
  .nav { gap: 20px; font-size: 15px; }
  .topbar__datos span:first-child { display: none; }
}

@media (max-width: 1024px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 24px; background: var(--crema); border-bottom: 1px solid var(--arena);
    display: none;
  }
  .nav.abierta { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--arena); font-size: 17px; }
  .nav .btn { margin-top: 16px; }
  .hero .contenedor, .nosotros, .cotizar, .contacto { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .grid-3, .porque { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mas-servicios { grid-template-columns: minmax(0, 1fr); }
  .mas-servicios img { min-height: 0; height: 240px; }
  .nosotros__foto { height: 460px; }
  .nosotros__sello { right: 16px; }
}

@media (max-width: 720px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .seccion { padding: 56px 0; }
  .topbar { display: none; }
  .header .contenedor { height: 76px; }
  .header__logo img { height: 50px; }
  .hero { padding: 32px 0 48px; }
  .hero h1 { margin: 20px 0; }
  .hero__texto { font-size: 17px; }
  .hero__botones { flex-direction: column; }
  .hero__botones .btn { width: 100%; }
  .hero__checks { gap: 12px 20px; }
  .hero__media { min-height: 0; }
  .hero__fondo { width: 80%; height: 86%; border-radius: 22px; }
  .hero__foto { left: 0; bottom: 0; width: 88%; height: 84%; border-radius: 22px; }
  .hero__sello { left: auto; right: 8px; top: auto; bottom: 16px; padding: 10px 14px 10px 10px; font-size: 15px; }
  .hero__sello img { width: 48px; height: 48px; }
  .hero__horario { position: static; margin-top: 16px; font-size: 16px; border-radius: 16px; }
  .hero__media { display: flex; flex-direction: column; }
  .hero__media-img { position: relative; height: 290px; }

  .cabecera-seccion { margin-bottom: 28px; }
  .grid-3, .porque { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .tarjeta > img { height: 190px; }
  .tarjeta__cuerpo { padding: 22px; }
  .tarjeta__cuerpo h3 { font-size: 22px; }
  .mas-servicios__cuerpo { padding: 26px 22px; }
  .mas-servicios h3 { font-size: 24px; margin-bottom: 18px; }
  .lista-check--2 { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .porque__item { flex-direction: row; text-align: left; padding: 20px; gap: 16px; }
  .porque__num { width: 60px; height: 60px; font-size: 28px; flex-shrink: 0; }
  .porque__item h3 { font-size: 19px; margin-bottom: 4px; }
  .porque__item p { font-size: 15px; }
  .paso { flex-direction: row; padding: 18px; gap: 14px; }
  .paso__num { font-size: 26px; }
  .paso h3 { font-size: 17px; margin-bottom: 4px; }
  .paso p { font-size: 15px; }
  .autorizacion { font-size: 16px; padding: 16px 18px; }
  .tiempos { padding: 22px; }

  .estado { padding: 28px 20px; border-radius: 22px; }
  .estado__cta { align-items: stretch; width: 100%; }
  .estado__cta .btn { width: 100%; }
  .estado__ejemplo { padding: 20px; margin-top: 28px; }
  .estado__ejemplo-top { margin-bottom: 20px; }
  .stepper { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .stepper::before, .stepper::after { display: none; }
  .stepper li { flex-direction: row; text-align: left; gap: 14px; padding: 0 0 18px; position: relative; }
  .stepper li:not(:last-child)::after { content: ""; position: absolute; left: 13px; top: 30px; bottom: 2px; width: 3px; background: var(--arena); }
  .stepper .hecho:not(:last-child)::after { background: var(--marino); }
  .stepper__punto { width: 30px; height: 30px; flex-shrink: 0; font-size: 13px; box-shadow: none; }
  .stepper__punto svg { width: 14px; height: 14px; }

  .nosotros__foto { height: 300px; }
  .nosotros__sello { padding: 10px; right: 12px; bottom: 12px; }
  .nosotros__sello img { width: 76px; height: 76px; }
  .nosotros__texto p { font-size: 16px; }
  .cifras { gap: 8px; }
  .cifra { padding: 12px 10px; }
  .cifra strong { font-size: 22px; }
  .cifra span { font-size: 12px; }
  .nosotros__extra { margin-top: 32px; }

  .form { padding: 22px; border-radius: 20px; }
  .form__fila { grid-template-columns: minmax(0, 1fr); }
  .contacto-rapido a { font-size: 17px; }
  .datos { font-size: 16px; }
  .mapa, .mapa iframe { min-height: 280px; }
  .footer .contenedor { flex-direction: column; text-align: center; }
  .footer__marca { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .wa-flotante { transition: none; }
}

/* Ajustes de agrupación interna */
.porque__item > div, .paso > div { display: flex; flex-direction: column; gap: 8px; }
.form { grid-template-columns: minmax(0, 1fr); }
.campo input, .campo select, .campo textarea { min-width: 0; }
