:root {
  --azul: #0f3f53;
  --azul-2: #125069;
  --naranja: #c8500f;
  --naranja-2: #a8420b;
  --texto: #15232b;
  --suave: #5d6b73;
  --linea: #e4e8ea;
  --fondo: #ffffff;
  --fondo-2: #f5f7f8;
  --radio: 14px;
  --ancho: 1160px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--texto);
  background: var(--fondo);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
.contenedor { width: min(var(--ancho), 100% - 32px); margin-inline: auto; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.etiqueta { color: var(--naranja); font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 12px; }
.intro { color: var(--suave); max-width: 620px; margin: 14px 0 0; font-size: 1.05rem; }
section { padding: clamp(64px, 9vw, 112px) 0; }

/* Botones */
.boton {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px;
  font-weight: 650; text-decoration: none; font-size: 1rem;
  transition: background .2s, transform .2s, border-color .2s;
}
.boton:hover { transform: translateY(-1px); }
.boton-principal { background: var(--naranja); color: #fff; }
.boton-principal:hover { background: var(--naranja-2); }
.boton-borde { border: 1.5px solid rgba(255,255,255,.55); color: #fff; }
.boton-borde:hover { border-color: #fff; }
.boton svg { width: 20px; height: 20px; flex: none; }

/* Encabezado */
.encabezado {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--linea);
}
.encabezado .contenedor { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.marca { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 1.25rem; letter-spacing: -0.01em; }
.marca img { width: 44px; height: auto; }
.marca .m { color: var(--azul-2); }
.marca .g { color: var(--naranja); }
.menu { display: flex; align-items: center; gap: 28px; }
.menu a { text-decoration: none; color: var(--suave); font-weight: 550; font-size: .95rem; }
.menu a:hover { color: var(--texto); }
.menu .boton { color: #fff; padding: 10px 18px; font-size: .92rem; }

/* Portada */
.portada { position: relative; color: #fff; padding: 0; min-height: min(88vh, 760px); display: grid; align-items: end; overflow: hidden; }
.portada > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.portada::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,28,38,.15) 0%, rgba(8,28,38,.55) 45%, rgba(8,28,38,.92) 100%); }
.portada .contenedor { position: relative; z-index: 1; padding: 140px 0 56px; }
.portada h1 { font-size: clamp(2.2rem, 5.6vw, 4.2rem); max-width: 820px; font-weight: 800; }
.portada p { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 600px; color: rgba(255,255,255,.86); margin: 20px 0 32px; }
.portada .botones { display: flex; flex-wrap: wrap; gap: 12px; }
.cifras { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 56px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.2); }
.cifras b { display: block; font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; letter-spacing: -0.02em; }
.cifras span { color: rgba(255,255,255,.72); font-size: .9rem; }

/* Respaldo ONAC */
.respaldo { padding: 0; }
.respaldo .contenedor { display: flex; gap: 24px; align-items: center; padding: 32px clamp(20px, 4vw, 40px); margin-top: -1px; background: #fff7f2; border: 1px solid #f8d9c6; border-radius: var(--radio); transform: translateY(-40px); position: relative; z-index: 2; box-shadow: 0 12px 32px rgba(15,63,83,.08); }
.respaldo .sello { width: 56px; height: 56px; color: var(--naranja); flex: none; }
.respaldo h2 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); }
.respaldo p { margin: 6px 0 0; color: var(--suave); }
.respaldo b { color: var(--texto); }
.respaldo + section { padding-top: clamp(24px, 4vw, 56px); }

/* Servicios */
.tarjetas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.tarjeta { background: var(--fondo); border: 1px solid var(--linea); border-radius: var(--radio); overflow: hidden; display: flex; flex-direction: column; }
.tarjeta img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.tarjeta div { padding: 24px; }
.tarjeta h3 { font-size: 1.25rem; margin-bottom: 8px; }
.tarjeta p { color: var(--suave); margin: 0; }
.tarjeta ul { margin: 14px 0 0; padding: 0; list-style: none; color: var(--suave); font-size: .95rem; }
.tarjeta li { padding: 6px 0; border-top: 1px solid var(--linea); }

/* Equipos */
.equipos { background: var(--fondo-2); }
.lista-equipos { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; margin-top: 48px; }
.equipo { background: #fff; border-radius: var(--radio); padding: 22px 24px; border: 1px solid var(--linea); }
.equipo .capacidad { font-size: 2rem; font-weight: 800; color: var(--azul-2); letter-spacing: -0.02em; line-height: 1; }
.equipo .capacidad small { font-size: .9rem; font-weight: 650; color: var(--suave); margin-left: 4px; letter-spacing: 0; }
.equipo h3 { font-size: 1.02rem; margin-top: 12px; font-weight: 650; }
.equipo p { margin: 2px 0 0; color: var(--suave); font-size: .9rem; }
.nota { color: var(--suave); font-size: .85rem; margin-top: 20px; }

/* Nosotros */
.nosotros .contenedor { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.nosotros img { border-radius: var(--radio); aspect-ratio: 1; object-fit: cover; width: 100%; }
.nosotros p { color: var(--suave); font-size: 1.05rem; }
.puntos { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.puntos li { display: flex; gap: 12px; align-items: flex-start; }
.puntos svg { width: 22px; height: 22px; color: var(--naranja); flex: none; margin-top: 2px; }

/* Proyectos */
.proyectos { background: var(--fondo-2); }
.galeria { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 240px; gap: 12px; margin-top: 48px; }
.galeria img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.galeria .grande { grid-column: span 2; grid-row: span 2; }

/* Clientes */
.clientes { padding: clamp(56px, 7vw, 88px) 0; }
.clientes h2 { font-size: 1rem; color: var(--suave); font-weight: 600; letter-spacing: 0; text-align: center; }
.logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 28px 48px; margin-top: 36px; }
.logos img { height: 40px; width: auto; max-width: 130px; object-fit: contain; filter: grayscale(1); opacity: .65; transition: filter .25s, opacity .25s; }
.logos img:hover { filter: none; opacity: 1; }

/* Contacto */
.contacto { background: var(--azul); color: #fff; }
.contacto .contenedor { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contacto .intro { color: rgba(255,255,255,.75); }
.contacto .boton { margin-top: 32px; }
.datos { display: grid; gap: 4px; }
.dato { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.14); text-decoration: none; }
.dato:last-child { border-bottom: 0; }
.dato svg { width: 22px; height: 22px; color: var(--naranja); flex: none; margin-top: 3px; }
.dato span { display: block; color: rgba(255,255,255,.6); font-size: .85rem; }
.dato b { font-weight: 600; font-size: 1.05rem; }
a.dato:hover b { text-decoration: underline; }

/* Ventana de cotización */
dialog { border: 0; border-radius: 18px; padding: 0; width: min(440px, calc(100% - 32px)); box-shadow: 0 24px 64px rgba(0,0,0,.25); color: var(--texto); }
dialog::backdrop { background: rgba(10,30,40,.55); }
dialog form { padding: 28px; display: grid; gap: 14px; }
dialog h2 { font-size: 1.4rem; }
dialog p { margin: 0; color: var(--suave); }
dialog label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
dialog input, dialog select { font: inherit; font-weight: 400; padding: 12px 14px; border: 1px solid #cfd6da; border-radius: 10px; background: #fff; color: var(--texto); }
dialog input:focus, dialog select:focus { outline: 2px solid var(--naranja); outline-offset: 1px; border-color: transparent; }
dialog .trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
dialog .aviso { color: #b42318; font-size: .9rem; }
dialog .acciones { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 6px; }
dialog .boton { border: 0; cursor: pointer; font: inherit; font-weight: 650; }
.boton-claro { background: var(--fondo-2); color: var(--texto); }
a.dato { cursor: pointer; }

/* Pie */
.pie { background: #0a2d3c; color: rgba(255,255,255,.6); font-size: .88rem; padding: 28px 0; }
.pie .contenedor { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

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

/* Celular */
@media (max-width: 900px) {
  .menu a:not(.boton) { display: none; }
  .tarjetas { grid-template-columns: 1fr; }
  .nosotros .contenedor, .contacto .contenedor { grid-template-columns: 1fr; }
  .nosotros img { aspect-ratio: 4 / 3; }
  .galeria { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
  .cifras { grid-template-columns: 1fr 1fr; gap: 20px; }
  .respaldo .contenedor { flex-direction: column; align-items: flex-start; gap: 14px; transform: translateY(-24px); }
  .respaldo .sello { width: 44px; height: 44px; }
  .lista-equipos { grid-template-columns: 1fr 1fr; gap: 12px; }
  .equipo { padding: 18px; }
  .equipo .capacidad { font-size: 1.6rem; }
}
@media (max-width: 480px) {
  .marca { font-size: 1.1rem; }
  .marca img { width: 38px; }
  .portada .botones .boton { flex: 1 1 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---- Páginas de servicio ---- */
.portada-servicio { position: relative; color: #fff; overflow: hidden; padding: 0; }
.portada-servicio > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.portada-servicio::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,28,38,.92) 0%, rgba(8,28,38,.7) 55%, rgba(8,28,38,.35) 100%); }
.portada-servicio .contenedor { position: relative; z-index: 1; padding: clamp(56px, 9vw, 112px) 0; }
.portada-servicio h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); max-width: 760px; font-weight: 800; }
.portada-servicio p { font-size: clamp(1.02rem, 1.5vw, 1.2rem); max-width: 620px; color: rgba(255,255,255,.86); margin: 18px 0 28px; }
.migas { font-size: .85rem; color: rgba(255,255,255,.7); margin-bottom: 18px; }
.migas a { color: rgba(255,255,255,.85); text-decoration: none; }
.migas a:hover { text-decoration: underline; }
.texto { max-width: 760px; }
.texto h2 { margin-top: 48px; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.texto h2:first-child { margin-top: 0; }
.texto p, .texto li { color: var(--suave); font-size: 1.05rem; }
.texto ul { padding-left: 1.2em; }
.texto li { margin: 6px 0; }
.dos-columnas { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.caja-cotizar { position: sticky; top: 92px; background: var(--fondo-2); border: 1px solid var(--linea); border-radius: var(--radio); padding: 28px; }
.caja-cotizar h2 { font-size: 1.3rem; }
.caja-cotizar p { color: var(--suave); margin: 10px 0 20px; }
.caja-cotizar .boton { width: 100%; justify-content: center; }
.caja-cotizar ul { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: .95rem; }
.caja-cotizar li { display: flex; gap: 10px; }
.caja-cotizar li svg { width: 20px; height: 20px; color: var(--naranja); flex: none; margin-top: 2px; }
.otros-servicios { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.otros-servicios a { display: block; padding: 22px; border: 1px solid var(--linea); border-radius: var(--radio); text-decoration: none; background: #fff; transition: border-color .2s; }
.otros-servicios a:hover { border-color: var(--naranja); }
.otros-servicios b { display: block; font-size: 1.05rem; }
.otros-servicios span { color: var(--suave); font-size: .92rem; }
.tarjeta h3 a { text-decoration: none; }
.tarjeta h3 a::after { content: ""; position: absolute; inset: 0; }
.tarjeta { position: relative; }
.tarjeta .mas { display: inline-block; margin-top: 14px; color: var(--naranja); font-weight: 650; font-size: .95rem; }

/* ---- Preguntas frecuentes ---- */
.preguntas { max-width: 820px; margin-top: 40px; }
.preguntas details { border-bottom: 1px solid var(--linea); }
.preguntas summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; font-weight: 650; font-size: 1.08rem; position: relative; }
.preguntas summary::-webkit-details-marker { display: none; }
.preguntas summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 1.6rem; font-weight: 400; color: var(--naranja); transition: transform .2s; }
.preguntas details[open] summary::after { transform: rotate(45deg); }
.preguntas details p { margin: 0 0 22px; color: var(--suave); }

/* ---- Contacto en dos toques ---- */
.dato .pista { color: var(--naranja); font-size: .8rem; font-weight: 600; margin-top: 2px; }

/* ---- Privacidad ---- */
.pie a { color: rgba(255,255,255,.8); }

@media (max-width: 900px) {
  .dos-columnas { grid-template-columns: 1fr; }
  .caja-cotizar { position: static; }
  .otros-servicios { grid-template-columns: 1fr; }
}

/* Contraste del naranja: más oscuro sobre fondos claros, más claro sobre el azul */
.etiqueta { color: #b0450b; }
.contacto .etiqueta, .contacto .pista, .portada .etiqueta { color: #ffad7a; }
.contacto .dato svg { color: #ff9a5c; }
