:root {
  --azul: #002b4b;
  --azul-hondo: #011d33;
  --azul-medio: #0b3f66;
  --oro: #d8a741;
  --oro-claro: #ecc877;
  --crema: #f7f4ee;
  --papel: #ffffff;
  --tinta: #13263a;
  --tinta-suave: #4b5d70;
  --linea: #e4ddd0;
  --radio: 14px;
  --ancho: 1160px;
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  font-family: "Poppins", system-ui, sans-serif;
  color: var(--tinta);
  background: var(--crema);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.contenedor { width: min(var(--ancho), 100% - 32px); margin-inline: auto; }

.antetitulo {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--oro);
  margin-bottom: .9rem;
}
h1, h2, h3 { line-height: 1.15; letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 700; color: var(--azul); margin-bottom: 1.2rem; }

/* Botones */
.boton {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  font-weight: 600; font-size: .95rem;
  transition: background .2s, color .2s, transform .2s;
}
.boton svg { width: 20px; height: 20px; }
.boton:hover { transform: translateY(-1px); }
.boton-oro { background: var(--oro); color: var(--azul-hondo); }
.boton-oro:hover { background: var(--oro-claro); }
.boton-claro { border: 1.5px solid rgba(255,255,255,.4); color: #fff; }
.boton-claro:hover { background: rgba(255,255,255,.1); }
.boton-chico { padding: .55rem 1.1rem; font-size: .88rem; }

/* Barra superior */
.barra {
  position: fixed; inset: 0 0 auto; z-index: 20;
  color: #fff;
  transition: background .25s, box-shadow .25s;
}
.barra.solida { background: rgba(1, 29, 51, .96); box-shadow: 0 1px 0 rgba(255,255,255,.06); backdrop-filter: blur(8px); }
.barra-fila { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.marca { display: inline-flex; align-items: center; gap: .65rem; font-size: 1.02rem; font-weight: 500; }
.marca b { font-weight: 800; color: var(--oro); letter-spacing: .04em; }
.menu { display: flex; align-items: center; gap: 2rem; font-size: .93rem; font-weight: 500; }
.menu > a:not(.boton) { opacity: .85; transition: opacity .2s; }
.menu > a:not(.boton):hover { opacity: 1; }
.menu-boton { display: none; }

/* Portada */
.portada {
  position: relative; overflow: hidden;
  min-height: min(100vh, 820px);
  display: flex; align-items: center;
  background: var(--azul-hondo);
  color: #fff;
  padding: 120px 0 90px;
}
.portada-fondo {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, var(--azul-hondo) 30%, rgba(1,29,51,.55) 70%, rgba(1,29,51,.3)),
    linear-gradient(0deg, var(--azul-hondo) 0%, transparent 45%),
    url("img/montanas.jpg") center 70% / cover no-repeat;
}
.portada-contenido { position: relative; z-index: 1; }
.portada h1 {
  font-size: clamp(3rem, 8.5vw, 6.2rem);
  font-weight: 800;
  letter-spacing: .01em;
  line-height: 1;
  margin-bottom: 1.6rem;
}
.portada h1 span { display: inline-block; font-weight: 600; font-size: .5em; letter-spacing: .12em; text-transform: uppercase; color: var(--oro); margin-top: .5rem; }
.portada-texto { max-width: 36rem; font-size: clamp(1rem, 1.6vw, 1.15rem); color: rgba(255,255,255,.82); margin-bottom: 2.2rem; }
.acciones { display: flex; flex-wrap: wrap; gap: .8rem; }
.portada-logo {
  position: absolute; z-index: 0;
  right: max(4vw, calc((100vw - var(--ancho)) / 2));
  top: 50%; transform: translateY(-46%);
  width: clamp(200px, 26vw, 360px);
  opacity: .9;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,.35));
}

/* Quiénes somos */
.nosotros { padding: clamp(70px, 10vw, 130px) 0; }
.nosotros-rejilla { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.nosotros-texto > p { color: var(--tinta-suave); margin-bottom: 1rem; }
.pilares { list-style: none; padding: 0; margin-top: 2rem; display: grid; gap: 1rem; }
.pilares li { padding-left: 1.1rem; border-left: 3px solid var(--oro); }
.pilares b { display: block; color: var(--azul); font-weight: 600; }
.pilares span { font-size: .92rem; color: var(--tinta-suave); }
.nosotros-fotos { position: relative; aspect-ratio: 1 / 1.05; }
.foto { position: absolute; object-fit: cover; border-radius: var(--radio); box-shadow: 0 24px 50px -20px rgba(1,29,51,.45); }
.foto-a { width: 62%; height: 82%; left: 0; top: 0; }
.foto-b { width: 64%; height: 48%; right: 0; bottom: 0; border: 6px solid var(--crema); }

/* Servicios */
.servicios { background: var(--papel); padding: clamp(70px, 10vw, 130px) 0; }
.encabezado { max-width: 40rem; margin-bottom: 3rem; }
.rejilla-servicios { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.servicio {
  display: flex; flex-direction: column;
  padding: 2rem 1.8rem 1.8rem;
  border: 1px solid var(--linea);
  border-radius: var(--radio);
  background: var(--papel);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.servicio:hover { border-color: var(--oro); box-shadow: 0 20px 40px -24px rgba(1,29,51,.35); transform: translateY(-2px); }
.servicio-icono {
  width: 52px; height: 52px; padding: 11px;
  border-radius: 12px;
  background: var(--azul); color: var(--oro);
  margin-bottom: 1.3rem;
}
.servicio h3 { font-size: 1.12rem; font-weight: 600; color: var(--azul); margin-bottom: .7rem; }
.servicio > p { font-size: .92rem; color: var(--tinta-suave); margin-bottom: 1.3rem; }
.beneficios { list-style: none; padding: 1.1rem 0 0; margin-top: auto; border-top: 1px solid var(--linea); display: grid; gap: .45rem; }
.beneficios li { display: flex; gap: .55rem; align-items: flex-start; font-size: .88rem; font-weight: 500; color: var(--tinta); }
.beneficios svg { flex: none; width: 17px; height: 17px; margin-top: .22rem; color: var(--oro); }

/* Franja */
.franja { position: relative; overflow: hidden; background: var(--azul); color: #fff; padding: clamp(70px, 10vw, 120px) 0; }
.franja img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .22; }
.franja::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--azul) 20%, rgba(0,43,75,.6)); }
.franja-texto { position: relative; z-index: 1; }
.franja-texto p { max-width: 46rem; font-size: clamp(1.3rem, 2.6vw, 1.9rem); font-weight: 500; line-height: 1.4; }
.franja-texto em { font-style: normal; color: var(--oro); }

/* Contacto */
.contacto { padding: clamp(70px, 10vw, 120px) 0; }
.contacto-rejilla { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.contacto-texto { color: var(--tinta-suave); max-width: 26rem; }
.canales { display: grid; gap: .9rem; }
.canal {
  display: flex; align-items: center; gap: 1.1rem;
  padding: 1.15rem 1.4rem;
  border-radius: var(--radio);
  background: var(--papel);
  border: 1px solid var(--linea);
  transition: border-color .2s, transform .2s;
  min-width: 0;
}
.canal:hover { border-color: var(--oro); transform: translateX(3px); }
.canal svg { flex: none; width: 46px; height: 46px; padding: 11px; border-radius: 50%; background: var(--azul); color: var(--oro); }
.canal span { display: flex; flex-direction: column; font-weight: 600; color: var(--azul); font-size: 1.02rem; min-width: 0; overflow-wrap: anywhere; }
.canal small { font-size: .74rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--tinta-suave); }

/* Pie */
.pie { background: var(--azul-hondo); color: rgba(255,255,255,.7); font-size: .85rem; }
.pie-fila { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; padding: 1.6rem 0; }
.pie .marca { color: #fff; font-size: .95rem; }

/* Tablet */
@media (max-width: 980px) {
  .rejilla-servicios { grid-template-columns: repeat(2, 1fr); }
  .portada-logo { opacity: .18; right: -40px; width: 340px; }
}

/* Teléfono */
@media (max-width: 760px) {
  .menu-boton {
    display: grid; place-content: center; gap: 6px;
    width: 44px; height: 44px;
    background: none; border: 0; cursor: pointer;
  }
  .menu-boton span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s; }
  .menu-boton[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-boton[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .menu {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: .5rem 16px 1.2rem;
    background: var(--azul-hondo);
    display: none;
  }
  .menu.abierto { display: flex; }
  .menu > a:not(.boton) { padding: .9rem 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .menu .boton { margin-top: 1rem; justify-content: center; }
  .barra:has(.menu.abierto) { background: var(--azul-hondo); }

  .portada { min-height: auto; padding: 130px 0 80px; }
  .nosotros-rejilla, .contacto-rejilla { grid-template-columns: 1fr; }
  .nosotros-fotos { aspect-ratio: 1 / 1; }
  .rejilla-servicios { grid-template-columns: 1fr; }
  .servicio { padding: 1.6rem 1.3rem 1.4rem; }
}
