/* Andamios Mota Esteves - estilos */
:root {
  --rojo: #d62828;
  --rojo-osc: #b51f1f;
  --negro: #161616;
  --gris-osc: #242424;
  --gris: #f3f3f3;
  --texto: #2b2b2b;
  --suave: #6b6b6b;
  --blanco: #fff;
  --radio: 18px;
  --sombra: 0 10px 30px rgba(0, 0, 0, .12);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--texto);
  background: var(--blanco);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .6em; color: var(--negro); }
h1 { font-size: clamp(2.3rem, 5.5vw, 4.2rem); font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 800; text-transform: uppercase; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.rojo { color: var(--rojo); }
.partir { overflow-wrap: anywhere; }

.contenedor { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }

.antetitulo {
  font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--rojo); margin-bottom: .8em;
}

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .85em 1.7em; border-radius: 999px; font-weight: 600; font-size: .95rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: background .2s, color .2s, transform .2s; font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn--rojo { background: var(--rojo); color: var(--blanco); }
.btn--rojo:hover { background: var(--rojo-osc); }
.btn--borde { border-color: var(--negro); color: var(--negro); }
.btn--borde:hover { background: var(--negro); color: var(--blanco); }
.btn--peq { padding: .6em 1.3em; font-size: .85rem; }
.btn--ancho { width: 100%; }

/* Barra superior */
.topbar { background: var(--negro); color: #ddd; font-size: .8rem; }
.topbar__in { display: flex; justify-content: space-between; gap: 1rem; padding-top: .5rem; padding-bottom: .5rem; }
.topbar__datos { display: flex; gap: 1.4rem; }
.topbar a { text-decoration: none; color: var(--blanco); white-space: nowrap; }
.topbar strong { color: var(--blanco); }

/* Cabecera */
.cabecera {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px); transition: box-shadow .2s;
}
.cabecera.con-sombra { box-shadow: 0 4px 20px rgba(0, 0, 0, .08); }
.cabecera__in { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.marca img { height: 64px; width: auto; }
.menu { display: flex; align-items: center; gap: 2rem; }
.menu a:not(.btn) {
  text-decoration: none; font-weight: 500; font-size: .95rem; position: relative; padding: .3em 0;
}
.menu a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--rojo); transition: width .2s;
}
.menu a:not(.btn):hover::after, .menu a.activo::after { width: 100%; }
.menu-btn { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.menu-btn span { display: block; width: 26px; height: 3px; background: var(--negro); margin: 5px 0; border-radius: 2px; transition: transform .25s, opacity .25s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Hero */
.hero {
  padding: 60px 0 80px;
  background:
    linear-gradient(90deg, #fff 0%, #fff 55%, rgba(255,255,255,.85) 100%),
    repeating-linear-gradient(0deg, transparent 0 59px, #eee 59px 60px),
    repeating-linear-gradient(90deg, transparent 0 59px, #eee 59px 60px);
}
.hero__in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.hero__lead { font-size: 1.1rem; color: var(--suave); max-width: 34em; }
.hero__acciones { display: flex; flex-wrap: wrap; gap: 1rem; margin: 2rem 0 2.5rem; }
.hero__foto { position: relative; }
.hero__foto img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 28px; box-shadow: var(--sombra);
}
.hero__foto::before {
  content: ""; position: absolute; inset: 24px -24px -24px 24px; border: 3px solid var(--rojo); border-radius: 28px; z-index: -1;
}
.cifras { display: flex; flex-wrap: wrap; gap: 2.5rem; list-style: none; padding: 0; margin: 0; }
.cifras li { display: flex; flex-direction: column; }
.cifras strong { font-size: 1.9rem; font-weight: 800; color: var(--negro); line-height: 1.1; }
.cifras span { font-size: .85rem; color: var(--suave); }

/* Secciones */
.seccion { padding: 96px 0; }
.seccion--oscura { background: var(--negro); color: #cfcfcf; }
.seccion--oscura h2, .seccion--oscura h3 { color: var(--blanco); }
.seccion--gris { background: var(--gris); }
.cabeza-seccion { max-width: 720px; margin-bottom: 48px; }
.cabeza-seccion p:last-child { font-size: 1.05rem; }
.seccion--oscura .cabeza-seccion p:last-child { color: #bdbdbd; }

/* Servicios */
.servicios { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.servicio {
  background: var(--gris-osc); border-radius: var(--radio); padding: 30px 26px; border-top: 4px solid var(--rojo);
  transition: transform .25s, background .25s;
}
.servicio:hover { transform: translateY(-6px); background: #2d2d2d; }
.servicio__num {
  display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--rojo); color: var(--blanco); font-weight: 700; margin-bottom: 18px;
}
.servicio p { font-size: .93rem; margin: 0; }
.banda-material {
  display: grid; grid-template-columns: 280px 1fr; gap: 40px; align-items: center;
  margin-top: 56px; background: var(--blanco); color: var(--texto); border-radius: var(--radio); overflow: hidden;
}
.banda-material img { width: 100%; height: 100%; max-height: 320px; object-fit: cover; }
.banda-material > div { padding: 32px 40px 32px 0; }
.banda-material h3 { color: var(--negro); font-size: 1.5rem; }

/* Galería */
.galeria { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 14px; }
.galeria__item {
  padding: 0; border: 0; background: #ddd; border-radius: 14px; overflow: hidden; cursor: zoom-in; position: relative;
}
.galeria__item--alta { grid-row: span 2; }
.galeria__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.galeria__item:hover img, .galeria__item:focus-visible img { transform: scale(1.06); }
.galeria__item:focus-visible { outline: 3px solid var(--rojo); outline-offset: 2px; }

/* Visor */
.visor {
  position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, .92);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.visor[hidden] { display: none; }
.visor img { max-height: 90vh; max-width: min(90vw, 900px); border-radius: 10px; object-fit: contain; }
.visor button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; cursor: pointer; border-radius: 50%; width: 48px; height: 48px; font-size: 2rem; line-height: 1; }
.visor button:hover { background: var(--rojo); }
.visor__cerrar { top: 16px; right: 16px; }
.visor__nav--ant { left: 16px; top: 50%; transform: translateY(-50%); }
.visor__nav--sig { right: 16px; top: 50%; transform: translateY(-50%); }

/* Nosotros */
.nosotros { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: center; }
.nosotros__foto { position: relative; }
.nosotros__foto img { border-radius: 28px; aspect-ratio: 4 / 5; object-fit: cover; width: 100%; box-shadow: var(--sombra); }
.sello {
  position: absolute; right: -20px; bottom: 30px; background: var(--rojo); color: var(--blanco);
  border-radius: var(--radio); padding: 18px 22px; box-shadow: var(--sombra); text-align: center;
}
.sello strong { display: block; font-size: 2.6rem; line-height: 1; font-weight: 800; }
.sello span { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.ventajas { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: .7rem; }
.ventajas li { padding-left: 2rem; position: relative; font-weight: 500; }
.ventajas li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 1.1rem; height: 1.1rem; border-radius: 50%;
  background: var(--rojo) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 70% no-repeat;
}

/* Contacto */
.contacto { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.datos { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.2rem; }
.datos li { display: flex; gap: 1rem; align-items: center; }
.datos__icono {
  flex: none; width: 50px; height: 50px; border-radius: 50%; background: var(--negro);
  display: grid; place-items: center;
}
.datos__icono svg { width: 22px; height: 22px; fill: var(--blanco); }
.datos li:nth-child(3) .datos__icono { background: var(--rojo); }
.datos small { display: block; color: var(--suave); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.datos a { text-decoration: none; font-weight: 600; color: var(--negro); }
.datos a:hover { color: var(--rojo); }

.formulario { background: var(--negro); color: #ddd; padding: 36px; border-radius: 24px; box-shadow: var(--sombra); }
.formulario h3 { color: var(--blanco); font-size: 1.5rem; }
.campo { margin-bottom: 1rem; flex: 1; min-width: 0; }
.fila { display: flex; gap: 1rem; }
.campo label { display: block; font-size: .85rem; margin-bottom: .35rem; color: #cfcfcf; }
.campo input, .campo select, .campo textarea {
  width: 100%; padding: .8rem 1rem; border-radius: 10px; border: 1px solid #3a3a3a; background: #222; color: var(--blanco);
  font: inherit; font-size: .95rem;
}
.campo textarea { resize: vertical; }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: none; border-color: var(--rojo); box-shadow: 0 0 0 3px rgba(214, 40, 40, .3); }
.campo .error { border-color: var(--rojo); }
.check { display: flex; gap: .6rem; font-size: .82rem; margin: .4rem 0 1rem; cursor: pointer; align-items: flex-start; }
.check input { margin-top: .25rem; accent-color: var(--rojo); }
.formulario__aviso { color: #ff8a8a; font-size: .88rem; min-height: 1.2em; margin: 0 0 .6rem; }
.formulario__aviso.ok { color: #8fe3a5; }
.formulario__nota { font-size: .78rem; color: #999; margin: .8rem 0 0; text-align: center; }

/* Pie */
.pie { background: var(--negro); color: #bdbdbd; font-size: .92rem; padding-top: 70px; }
.pie__columnas { display: grid; grid-template-columns: 1.3fr 1fr 1.7fr .9fr; gap: 40px; padding-bottom: 50px; }
.pie h4 { color: var(--blanco); text-transform: uppercase; font-size: .95rem; letter-spacing: .05em; padding-bottom: .8rem; position: relative; margin-bottom: 1.2rem; }
.pie h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 36px; height: 3px; background: var(--rojo); }
.pie ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.pie a { text-decoration: none; }
.pie .partir { font-size: .85rem; }
.pie a:hover { color: var(--blanco); }
.pie__logo { width: 140px; height: auto; margin-bottom: 1.2rem; }
.pie__base { border-top: 1px solid #2e2e2e; background: var(--blanco); color: var(--texto); }
.pie__base-in { display: flex; justify-content: space-between; align-items: center; gap: 2rem; padding-top: 18px; padding-bottom: 18px; font-size: .82rem; }
.pie__base p { margin: 0; }
.kit-digital img { width: 257px; height: auto; }

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

/* Aparición al hacer scroll */
.aparece { opacity: 0; transform: translateY(24px); transition: opacity .6s, transform .6s; }
.aparece.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .aparece { opacity: 1; transform: none; transition: none; }
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .servicios { grid-template-columns: repeat(2, 1fr); }
  .galeria { grid-template-columns: repeat(3, 1fr); }
  .pie__columnas { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .menu-btn { display: block; }
  .menu {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--blanco); padding: 0 20px; max-height: 0; overflow: hidden; transition: max-height .3s, padding .3s;
    box-shadow: 0 10px 20px rgba(0,0,0,.08);
  }
  .menu.abierto { max-height: 420px; padding: 10px 20px 20px; }
  .menu a:not(.btn) { padding: .9rem 0; border-bottom: 1px solid #eee; }
  .menu a:not(.btn)::after { display: none; }
  .menu .btn { margin-top: 1rem; }

  .hero { padding: 40px 0 60px; }
  .hero__in, .nosotros, .contacto { grid-template-columns: 1fr; gap: 48px; }
  .hero__foto { max-width: 480px; margin-right: 24px; }
  .hero__foto img { aspect-ratio: 4 / 3; }
  .nosotros__foto { max-width: 480px; }
  .sello { right: 10px; }
  .banda-material { grid-template-columns: 1fr; gap: 0; }
  .banda-material img { max-height: 240px; }
  .banda-material > div { padding: 28px; }
  .seccion { padding: 72px 0; }
  .pie__base-in { flex-direction: column; text-align: center; }
}

@media (max-width: 600px) {
  .oculto-movil { display: none; }
  .topbar__in { font-size: .75rem; }
  .servicios { grid-template-columns: 1fr; }
  .galeria { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; gap: 10px; }
  .fila { flex-direction: column; gap: 0; }
  .formulario { padding: 26px 20px; }
  .cifras { gap: 1.5rem; }
  .cifras strong { font-size: 1.5rem; }
  .pie__columnas { grid-template-columns: 1fr; }
  .hero__acciones .btn { flex: 1 1 100%; }
  .marca img { height: 54px; }
  .cabecera__in { height: 72px; }
}
