/* Haalar Yona — estilos del sitio */
:root {
  --naranjo: #e0561b;
  --naranjo-osc: #c8461a;
  --cafe: #4a1e0c;
  --cafe-medio: #7a3413;
  --texto: #2f2420;
  --crema: #faf4ee;
  --crema-2: #f4ebe2;
  --linea: #e8d9cc;
  --sombra: 0 4px 14px rgba(74, 30, 12, .12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Nunito Sans", system-ui, sans-serif;
  color: var(--texto);
  background: var(--crema);
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.contenedor { width: min(1180px, 92%); margin: 0 auto; }

/* ---------- Cabecera ---------- */
.cabecera {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 244, 238, .97);
  box-shadow: 0 1px 0 var(--linea);
}
.cabecera__fila { display: flex; align-items: center; justify-content: space-between; min-height: 92px; }
.logo { display: flex; flex-direction: column; align-items: center; text-decoration: none; }
.logo__icono { width: 66px; margin-bottom: 2px; }
.logo__texto { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.logo__nombre { font-family: Montserrat, sans-serif; font-weight: 800; font-size: 1.45rem; color: var(--cafe); letter-spacing: .02em; }
.logo__lema { font-weight: 700; font-size: .82rem; color: var(--naranjo-osc); margin-top: 3px; }
.menu { display: flex; gap: 2.6rem; }
.menu a { text-decoration: none; font-size: 1rem; padding: 8px 0; position: relative; color: var(--texto); }
.menu a.activo { font-weight: 800; color: var(--cafe); }
.menu a.activo::after, .menu a:hover::after {
  content: ""; position: absolute; left: -6px; right: -6px; bottom: -4px; height: 3px; border-radius: 2px; background: var(--naranjo);
}
.menu-boton { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.menu-boton span { display: block; width: 26px; height: 3px; margin: 5px 0; background: var(--cafe); border-radius: 2px; }

/* ---------- Botones ---------- */
.boton {
  display: inline-flex; align-items: center; gap: .7rem;
  padding: .75rem 1.4rem; border-radius: 4px;
  font-weight: 700; text-decoration: none; font-size: .98rem;
  transition: transform .15s, background .15s;
}
.boton:hover { transform: translateY(-1px); }
.boton .flecha { font-size: 1.4em; line-height: .6; }
.boton--naranjo { background: var(--naranjo); color: #fff; box-shadow: 0 3px 10px rgba(224, 86, 27, .35); }
.boton--naranjo:hover { background: var(--naranjo-osc); }
.boton--borde { border: 2px solid #fff; color: #fff; }
.boton--borde:hover { background: rgba(255, 255, 255, .12); }
.boton--chico { border: 1.5px solid var(--cafe-medio); color: var(--cafe); font-size: .85rem; padding: .45rem .9rem; white-space: nowrap; }

/* ---------- Portada ---------- */
.portada {
  position: relative; overflow: hidden; color: #fff;
  min-height: 470px; display: flex; align-items: center;
  background: linear-gradient(160deg, #3d6fae 0%, #7a6b7f 45%, #9b6444 75%, #6b3a22 100%);
}
.portada__foto {
  position: absolute; inset: 0 0 0 38%;
  background: url(../img/hero.jpg) center / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%);
          mask-image: linear-gradient(90deg, transparent 0, #000 22%);
}
.portada::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(40, 22, 12, .55) 0%, rgba(40, 22, 12, .25) 45%, transparent 65%);
}
.portada__contenido { position: relative; z-index: 2; padding: 3.5rem 0; }
.portada h1 {
  font-weight: 800; font-size: clamp(2rem, 3.6vw, 2.75rem); line-height: 1.12;
  max-width: 13.5em; margin: 0; text-shadow: 0 2px 10px rgba(0, 0, 0, .4);
}
.raya { display: block; width: 64px; height: 4px; background: var(--naranjo); border-radius: 2px; margin: 1.3rem 0; }
.portada p { max-width: 27em; font-size: 1.08rem; margin: 0 0 1.8rem; text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
.botones { display: flex; flex-wrap: wrap; gap: 1.2rem; }

/* ---------- Áreas ---------- */
.areas { background: var(--crema); padding: 1.1rem 0; }
.areas__fila { display: grid; grid-template-columns: repeat(4, 1fr); }
.area { text-align: center; padding: .4rem 1rem; }
.area + .area { border-left: 1.5px solid var(--linea); }
.area svg, .tarjeta svg, .valores svg {
  fill: none; stroke: var(--naranjo); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
}
.area svg { width: 60px; height: 60px; }
.area h3 { margin: .2rem 0 0; font-size: 1.12rem; font-weight: 800; line-height: 1.15; color: var(--texto); }

/* ---------- Frase ---------- */
.frase {
  background: url(../img/banda-desierto.jpg) center bottom / cover no-repeat;
  min-height: 110px; display: flex; justify-content: center; padding-top: 14px;
}
.frase p { margin: 0; text-align: center; font-style: italic; font-weight: 600; font-size: 1.25rem; line-height: 1.25; color: #2a1d18; }

/* ---------- Secciones ---------- */
.seccion { padding: 1.6rem 0 2rem; }
.seccion--linea { border-top: 1px solid var(--linea); }
.titulo { border-left: 5px solid var(--naranjo); padding-left: 1rem; margin-bottom: 1.4rem; }
.titulo h2 { margin: 0; font-size: 1.9rem; font-weight: 800; line-height: 1.1; color: var(--cafe); }
.titulo p { margin: .2rem 0 0; font-size: 1rem; }
.titulo--con-boton { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }

/* Tarjetas de servicios */
.tarjetas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.tarjeta { background: #fffaf6; border-radius: 6px; overflow: hidden; box-shadow: var(--sombra); }
.tarjeta img { width: 100%; aspect-ratio: 3 / 1.05; object-fit: cover; }
.tarjeta__texto { display: flex; gap: 1rem; align-items: center; padding: .9rem 1.2rem 1.1rem; }
.tarjeta__texto svg { width: 46px; height: 46px; flex: none; }
.tarjeta h3 { margin: 0; font-size: 1.05rem; font-weight: 800; color: var(--cafe); }
.tarjeta p { margin: .1rem 0 0; font-size: .85rem; line-height: 1.3; }

/* Proyectos */
.proyectos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem; }
.proyectos figure { margin: 0; }
.proyectos img { width: 100%; aspect-ratio: 2.35 / 1; object-fit: cover; border-radius: 4px; box-shadow: var(--sombra); }
.proyectos figcaption { padding: .55rem .3rem 0; font-size: .9rem; line-height: 1.3; }
.proyectos strong { display: block; color: var(--texto); font-weight: 800; }

/* Quiénes somos */
.nosotros { padding-bottom: 0; overflow: hidden; }
.nosotros__fila { display: grid; grid-template-columns: 1.45fr 1.15fr .75fr; gap: 1.5rem; align-items: center; }
.nosotros__texto p { font-size: .93rem; margin: 0 0 .7rem 1.3rem; }
.valores { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-left: 1.5px solid var(--linea); }
.valores li { text-align: center; font-weight: 700; font-size: .92rem; line-height: 1.2; padding: .3rem .4rem; }
.valores li + li { border-left: 1.5px solid var(--linea); }
.valores svg { width: 46px; height: 46px; display: block; margin: 0 auto .4rem; }
.nosotros__foto { align-self: stretch; min-height: 160px; margin-right: calc(-1 * (100vw - min(1180px, 92vw)) / 2);
  background: url(../img/quienes-somos.jpg) left center / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 25%); mask-image: linear-gradient(90deg, transparent 0, #000 25%); }

/* Contacto */
.contacto { position: relative; border-top: 1px solid var(--linea); overflow: hidden; }
.contacto__foto {
  position: absolute; inset: 0 0 0 34%;
  background: url(../img/contacto.jpg) center / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18%); mask-image: linear-gradient(90deg, transparent 0, #000 18%);
}
.contacto__caja { position: relative; padding: 1.6rem 0 2.2rem; max-width: 420px; }
.contacto__intro { margin: -.6rem 0 1rem 1.3rem; }
.datos { list-style: none; padding: 0; margin: 0 0 1.3rem 1.3rem; }
.datos li { display: flex; align-items: center; gap: 1rem; margin: .45rem 0; }
.datos a { text-decoration: none; }
.datos a:hover { color: var(--naranjo); }
.datos svg { width: 22px; height: 22px; fill: none; stroke: var(--naranjo); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.boton--whatsapp svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2; stroke-linejoin: round; }

/* Pie y WhatsApp flotante */
.pie { background: var(--cafe); color: #f3e4d8; text-align: center; font-size: .85rem; padding: 1rem 0; }
.whatsapp-flotante {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%; background: #25d366;
  display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
}
.whatsapp-flotante svg { width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 2; stroke-linejoin: round; }

/* ---------- Tablet ---------- */
@media (max-width: 980px) {
  .menu { gap: 1.4rem; }
  .menu a { font-size: .92rem; }
  .tarjetas { grid-template-columns: 1fr 1fr; }
  .proyectos { grid-template-columns: 1fr 1fr; }
  .nosotros__fila { grid-template-columns: 1fr 1fr; }
  .nosotros__foto { display: none; }
}

/* ---------- Celular ---------- */
@media (max-width: 760px) {
  .cabecera__fila { min-height: 72px; }
  .logo { flex-direction: row; gap: .6rem; }
  .logo__icono { width: 48px; margin: 0; }
  .logo__texto { align-items: flex-start; }
  .logo__nombre { font-size: 1.15rem; }
  .logo__lema { font-size: .72rem; }
  .menu-boton { display: block; }
  .menu {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--crema); box-shadow: 0 8px 16px rgba(0, 0, 0, .1);
  }
  .menu.abierto { display: flex; }
  .menu a { padding: .9rem 4%; border-top: 1px solid var(--linea); }
  .menu a::after { display: none; }

  .portada { min-height: 0; }
  .portada__foto { inset: 0; -webkit-mask-image: none; mask-image: none; }
  .portada::before { background: linear-gradient(180deg, rgba(40, 22, 12, .45), rgba(40, 22, 12, .7)); }
  .portada__contenido { padding: 3rem 0; }

  .areas__fila { grid-template-columns: 1fr 1fr; row-gap: 1rem; }
  .area:nth-child(3) { border-left: 0; }
  .area h3 { font-size: 1rem; }
  .frase p { font-size: 1.05rem; padding: 0 1rem; }
  .frase p br { display: none; }

  .tarjetas, .nosotros__fila { grid-template-columns: 1fr; }
  .titulo--con-boton { flex-direction: column; }
  .titulo h2 { font-size: 1.6rem; }
  .valores { border-left: 0; }

  .contacto__foto { position: relative; display: block; height: 180px; inset: auto; -webkit-mask-image: none; mask-image: none; }
  .contacto { display: flex; flex-direction: column-reverse; }
}
@media (max-width: 340px) {
  .proyectos { grid-template-columns: 1fr; }
  .botones .boton { width: 100%; justify-content: center; }
}

/* ---------- Ajustes: 4 tarjetas de servicios ---------- */
.tarjetas { grid-template-columns: repeat(4, 1fr); gap: 1.3rem; }
.tarjeta img { aspect-ratio: 2.4 / 1; }
.tarjeta__texto { flex-direction: column; align-items: flex-start; gap: .35rem; padding: .9rem 1.1rem 1.2rem; }
.tarjeta__texto svg { width: 42px; height: 42px; }
.tarjeta h3 { font-size: 1.15rem; }
.tarjeta p { font-size: .9rem; }

/* ---------- Pie de página ---------- */
.pie { background: #4f200d; color: #f6e8dc; text-align: left; font-size: .92rem; padding: 0; }
.pie__fila { display: grid; grid-template-columns: 1.2fr 1fr 1.3fr; padding: 2rem 0 1.4rem; }
.pie__fila > * + * { border-left: 1px solid rgba(246, 232, 220, .25); padding-left: 3rem; }
.pie__marca { display: flex; flex-direction: column; align-items: center; text-align: center; padding-right: 2rem; }
.pie__icono { width: 86px; margin-bottom: 4px; }
.pie__nombre { font-family: Montserrat, sans-serif; font-weight: 800; font-size: 1.55rem; letter-spacing: .03em; line-height: 1; color: #fff; }
.pie__lema { color: #f39a4a; font-weight: 700; margin-top: 4px; }
.pie__frase { font-style: italic; font-size: .82rem; margin-top: 4px; display: flex; align-items: center; gap: .5rem; }
.pie__frase::before, .pie__frase::after { content: ""; width: 22px; height: 1px; background: #f39a4a; }
.pie h4 { margin: 0 0 .5rem; font-size: 1.05rem; font-weight: 800; color: #fff; }
.pie__col a { color: #f6e8dc; text-decoration: none; }
.pie__col a:hover { color: #f39a4a; }
nav.pie__col { display: flex; flex-direction: column; gap: .15rem; }
.datos--pie { margin: 0; }
.datos--pie li { margin: .3rem 0; gap: .8rem; }
.datos--pie svg { stroke: #f6e8dc; width: 19px; height: 19px; }
.pie__guarda { height: 34px; background: url(../img/guarda.svg) left center / auto 100% repeat-x; }
.pie__copy { margin: 0; text-align: center; padding: .9rem 4%; font-size: .85rem; }
.pie__copy .sep { margin: 0 .5rem; opacity: .7; }

@media (max-width: 980px) {
  .tarjetas { grid-template-columns: 1fr 1fr; }
  .pie__fila { grid-template-columns: 1fr 1fr; row-gap: 1.6rem; }
  .pie__marca { grid-column: 1 / -1; padding-right: 0; }
  .pie__fila > * + * { border-left: 0; padding-left: 0; }
  .pie__fila > :last-child { border-left: 1px solid rgba(246, 232, 220, .25); padding-left: 2rem; }
}
@media (max-width: 760px) {
  .tarjetas { grid-template-columns: 1fr; }
  .pie__fila { grid-template-columns: 1fr; text-align: left; }
  .pie__fila > :last-child { border-left: 0; padding-left: 0; }
  .pie__copy .sep { display: none; }
  .pie__copy .lugar { display: block; }
  .whatsapp-flotante { bottom: 14px; right: 14px; }
}

/* Más aire entre Quiénes Somos y Contacto */
.nosotros { padding-bottom: 2.5rem; }
.contacto__caja { padding-top: 2.6rem; }
@media (max-width: 760px) { .nosotros { padding-bottom: 1.5rem; } }

/* Franja superior en café muy claro */
.cabecera { background: #ecdcc8; box-shadow: 0 1px 0 #dcc6ad; }
@media (max-width: 760px) { .menu { background: #ecdcc8; } .menu a { border-top-color: #dcc6ad; } }
