/* SURAFUM — estilos del sitio */

:root {
  /* Colores tomados del logo */
  --blue: #0a517a;
  --blue-dark: #073c5c;
  --navy: #05263b;
  --blue-soft: #e9f1f7;
  --green: #10724f;
  --green-dark: #0b5a3e;
  --green-soft: #e8f3ee;

  --text: #1d2a33;
  --muted: #586773;
  --line: #d8e1e8;
  --bg: #ffffff;
  --bg-alt: #f3f7fa;

  --font-head: "Montserrat", system-ui, sans-serif;
  --font-body: "Open Sans", system-ui, sans-serif;

  --radius: 5px;
  --header-h: 84px;
  --container: 1200px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font: 400 16px/1.65 var(--font-body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* height:auto evita que el atributo height estire las fotos con aspect-ratio */
img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue); }
a:hover { color: var(--blue-dark); }

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.2;
  margin: 0 0 .6em;
  color: var(--navy);
}
h2 { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--blue); color: #fff; padding: 8px 14px;
}
.skip:focus { left: 8px; }

.i { width: 1em; height: 1em; flex: none; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font: 700 .95rem/1 var(--font-head);
  padding: .95em 1.4em;
  border-radius: var(--radius);
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.btn .i { width: 1.15em; height: 1.15em; }
.btn--lg { font-size: 1rem; padding: 1.05em 1.6em; }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-dark); color: #fff; }
.btn--wa { background: var(--green); color: #fff; }
.btn--wa:hover { background: var(--green-dark); color: #fff; }
.btn--ghost { border-color: #fff; color: #fff; background: transparent; }
.btn--ghost:hover { background: #fff; color: var(--navy); }

.eyebrow {
  font: 700 .8rem/1 var(--font-head);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: .9em;
}

/* Topbar */
.topbar { background: var(--green-dark); color: #e3f1ea; font-size: .85rem; }
.topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; }
.topbar__data { gap: 26px; }
.topbar__data li { display: flex; align-items: center; gap: 7px; }
.topbar__social { gap: 14px; }
.topbar a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 7px; }
.topbar a:hover { color: #fff; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s;
}
.header.is-scrolled { box-shadow: 0 2px 14px rgba(5, 38, 59, .1); }
.header__in { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 20px; }
.brand img { height: 58px; width: auto; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 24px; }
.nav ul a {
  font: 600 .93rem/1 var(--font-head);
  color: var(--navy);
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}
.nav ul a:hover { color: var(--blue); border-bottom-color: var(--green); }

.menu-btn {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.menu-btn span { display: block; width: 22px; height: 2px; background: var(--navy); transition: transform .25s, opacity .25s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h) - 40px);
  min-height: calc(100svh - var(--header-h) - 40px);
  display: flex; align-items: center;
  color: #fff;
  overflow: hidden;
  background: var(--navy);
}
.hero__slides { position: absolute; inset: 0; }
.hero__slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.2s ease; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); }
.hero__slide.is-active { opacity: 1; }
.hero__slide.is-active img { animation: heroZoom 7s ease-out forwards; }
@keyframes heroZoom { from { transform: scale(1.02); } to { transform: scale(1.1); } }
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(4, 30, 47, .9) 0%, rgba(4, 30, 47, .72) 42%, rgba(4, 30, 47, .2) 75%, rgba(4, 30, 47, .1) 100%);
}
.hero__content { position: relative; z-index: 2; padding-top: 70px; padding-bottom: 90px; }
.hero__content > * { max-width: 640px; }
.hero__kicker {
  font: 700 .82rem/1 var(--font-head); letter-spacing: .14em; text-transform: uppercase;
  color: #9fd8bf;
  border-left: 3px solid var(--green); padding-left: 12px;
}
.hero h1 { color: #fff; font-size: clamp(2rem, 1.3rem + 3vw, 3.3rem); font-weight: 800; margin-bottom: .5em; }
.hero__lead { font-size: clamp(1rem, .95rem + .3vw, 1.15rem); color: #dde8ef; margin-bottom: 2em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__dots { position: absolute; z-index: 3; left: 0; right: 0; bottom: 28px; display: flex; justify-content: center; gap: 10px; }
.hero__dots button {
  width: 12px; height: 12px; padding: 0; border-radius: 50%;
  border: 2px solid #fff; background: transparent; cursor: pointer;
}
.hero__dots button.is-active { background: #fff; }

/* Franja de contacto */
.strip { background: var(--green); color: #fff; }
.strip__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 22px; padding-bottom: 22px; flex-wrap: wrap; }
.strip__title { margin: 0; font: 600 1.15rem/1.3 var(--font-head); }
.strip__title strong { font-weight: 800; }
.strip__items { list-style: none; margin: 0; padding: 0; display: flex; gap: 34px; flex-wrap: wrap; }
.strip__items li { display: flex; align-items: center; gap: 12px; }
.strip__items .i { width: 22px; height: 22px; opacity: .9; }
.strip__items span { display: flex; flex-direction: column; line-height: 1.3; font-weight: 600; }
.strip__items small { font-weight: 400; opacity: .85; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.strip a { color: #fff; text-decoration: none; }
.strip a:hover { text-decoration: underline; }

/* Secciones */
.section { padding: 90px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 760px; margin-bottom: 44px; }
.section__head p:last-child { color: var(--muted); font-size: 1.05rem; }

/* Servicios */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.service img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.service__body { padding: 24px 24px 22px; display: flex; flex-direction: column; flex: 1; }
.service h3 { font-size: 1.25rem; margin-bottom: .5em; }
.service p { color: var(--muted); font-size: .95rem; }
.service__link {
  margin-top: auto;
  font: 700 .92rem/1 var(--font-head);
  color: var(--blue);
  text-decoration: none;
  padding-top: 6px;
  align-self: flex-start;
  border-bottom: 2px solid var(--green);
  padding-bottom: 4px;
}
.service__link:hover { color: var(--green); }

.ticks { list-style: none; padding: 0; margin: 0 0 20px; font-size: .92rem; }
.ticks li { position: relative; padding-left: 20px; margin-bottom: 6px; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: .62em;
  width: 7px; height: 7px; background: var(--green);
}

.also {
  margin-top: 36px;
  background: var(--blue-soft);
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 26px 30px;
}
.also h3 { margin-bottom: .8em; }
.also ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.also li { font-size: .95rem; color: var(--text); }
.also strong { color: var(--navy); display: block; font-family: var(--font-head); margin-bottom: 4px; }

/* MIP */
.mip__grid { display: grid; grid-template-columns: 5fr 6fr; gap: 60px; align-items: center; }
.mip__media img { width: 100%; aspect-ratio: 6 / 7; object-fit: cover; border-radius: var(--radius); }
.mip__text > p { color: var(--muted); font-size: 1.03rem; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 30px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 26px 30px; }
.steps li { counter-increment: step; position: relative; padding-left: 52px; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: -2px;
  font: 800 1.6rem/1 var(--font-head);
  color: var(--green);
}
.steps h3 { margin-bottom: .3em; font-size: 1.05rem; }
.steps p { font-size: .93rem; color: var(--muted); margin: 0; }

/* Nosotros */
.about { display: grid; grid-template-columns: 6fr 5fr; gap: 60px; align-items: center; }
.about__text > p { color: var(--muted); font-size: 1.03rem; }
.about__media img { width: 100%; aspect-ratio: 9 / 10; object-fit: cover; border-radius: var(--radius); }
.checks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 32px; font-weight: 600; color: var(--navy); }
.checks li::before {
  content: ""; position: absolute; left: 4px; top: .3em;
  width: 7px; height: 13px;
  border: solid var(--green); border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

/* Sectores */
.sectors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.sector { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; }
.sector img { width: 100%; aspect-ratio: 7 / 5; object-fit: cover; transition: transform .5s; }
.sector:hover img { transform: scale(1.04); }
.sector figcaption {
  position: absolute; inset: auto 0 0 0;
  padding: 60px 20px 18px;
  background: linear-gradient(0deg, rgba(4, 30, 47, .88) 0%, rgba(4, 30, 47, .55) 55%, rgba(4, 30, 47, 0) 100%);
  color: #fff;
}
.sector h3 { color: #fff; margin-bottom: .2em; font-size: 1.15rem; }
.sector p { margin: 0; font-size: .9rem; color: #d8e5ee; }

/* Cobertura */
.zones { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.zone {
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  border-radius: var(--radius);
  padding: 24px 22px;
  background: #fff;
}
.zone h3 { color: var(--blue); }
.zone p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Banda CTA */
.band { position: relative; overflow: hidden; color: #fff; padding: 100px 0; background: var(--navy); }
.band__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band::after { content: ""; position: absolute; inset: 0; background: rgba(5, 38, 59, .78); }
.band__in { position: relative; z-index: 2; text-align: center; max-width: 820px; }
.band h2 { color: #fff; }
.band p { color: #d8e5ee; font-size: 1.1rem; margin-bottom: 1.8em; }

/* FAQ */
.faq { max-width: 880px; }
.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list details:first-child { border-top: 1px solid var(--line); }
.faq__list summary {
  list-style: none;
  cursor: pointer;
  font: 700 1.05rem/1.4 var(--font-head);
  color: var(--navy);
  padding: 20px 44px 20px 0;
  position: relative;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after {
  content: "+";
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font: 400 1.7rem/1 var(--font-body); color: var(--green);
}
.faq__list details[open] summary::after { content: "−"; }
.faq__list summary:hover { color: var(--blue); }
.faq__list details p { color: var(--muted); padding-right: 40px; margin-bottom: 22px; }

/* Contacto */
.contact { display: grid; grid-template-columns: 4fr 7fr; gap: 56px; align-items: start; }
.contact__info > p { color: var(--muted); }
.contact__list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 20px; }
.contact__list li { display: flex; gap: 14px; align-items: flex-start; }
.contact__list .i { width: 22px; height: 22px; color: var(--green); margin-top: 3px; }
.contact__list span { display: flex; flex-direction: column; line-height: 1.45; }
.contact__list small { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.contact__list a { font-weight: 600; text-decoration: none; }

.form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; margin-bottom: 18px; }
.field > span { font: 600 .87rem/1.3 var(--font-head); color: var(--navy); margin-bottom: 6px; }
.field input,
.field select,
.field textarea {
  font: inherit; font-size: .97rem;
  color: var(--text);
  padding: 11px 13px;
  border: 1px solid #c3cfd8;
  border-radius: 4px;
  background: #fff;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
.field__err { display: none; color: #b3261e; font-size: .82rem; margin-top: 5px; }
.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea { border-color: #b3261e; }
.field.is-invalid .field__err { display: block; }
.form__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.form__note { font-size: .83rem; color: var(--muted); margin: 14px 0 0; }

/* Footer */
.footer { background: var(--navy); color: #b9c9d5; font-size: .93rem; padding-top: 64px; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 44px; }
.footer__brand img { width: 220px; margin-bottom: 18px; }
.footer h3 { color: #fff; font-size: 1rem; margin-bottom: 1em; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { color: #b9c9d5; text-decoration: none; }
.footer a:hover { color: #fff; }
.footer .footer__social { display: flex; gap: 14px; margin-top: 16px; }
.footer__social .i { width: 20px; height: 20px; }
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-top: 20px; padding-bottom: 20px;
  font-size: .85rem;
}
.footer__bottom p { margin: 0; }

/* Flotantes */
.fab-wa {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  background: #1fa855; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
}
.fab-wa svg { width: 30px; height: 30px; }
.fab-wa:hover { background: #178c46; color: #fff; }
.to-top {
  position: fixed; right: 27px; bottom: 90px; z-index: 60;
  width: 44px; height: 44px; border-radius: var(--radius);
  border: 0; background: var(--blue); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
}
.to-top svg { width: 22px; height: 22px; }
.to-top.is-visible { opacity: 1; visibility: visible; }
.to-top:hover { background: var(--blue-dark); }

/* Responsive */
@media (max-width: 1100px) {
  .nav ul { gap: 18px; }
  .nav { gap: 20px; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .zones { grid-template-columns: repeat(2, 1fr); }
  .hide-md { display: none !important; }
}

@media (max-width: 960px) {
  :root { --header-h: 70px; }
  .brand img { height: 46px; }
  .menu-btn { display: flex; }

  /* Menú mobile: absolute dentro del header (no fixed) y oculto con opacidad,
     no con translateX, para no generar scroll horizontal. */
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    background: #fff;
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    gap: 0;
    padding: 12px 20px 30px;
    overflow-y: auto;
    border-top: 1px solid var(--line);
    opacity: 0; visibility: hidden;
    transition: opacity .2s, visibility .2s;
  }
  .nav.is-open { opacity: 1; visibility: visible; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { display: block; padding: 16px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .nav ul a:hover { border-bottom-color: var(--line); }
  .nav__cta { margin-top: 22px; }

  .mip__grid,
  .about { grid-template-columns: 1fr; gap: 36px; }
  .mip__media img { aspect-ratio: 16 / 10; }
  .about__media { order: -1; }
  .about__media img { aspect-ratio: 16 / 10; }
  .sectors { grid-template-columns: repeat(2, 1fr); }
  .also ul { grid-template-columns: 1fr; gap: 14px; }
  .contact { grid-template-columns: 1fr; gap: 36px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .container { padding: 0 16px; }
  .hide-sm { display: none !important; }
  .topbar__data { gap: 14px; }
  .section { padding: 64px 0; }
  .section__head { margin-bottom: 32px; }
  .hero { min-height: calc(100svh - var(--header-h) - 40px); }
  .hero::after { background: linear-gradient(90deg, rgba(4, 30, 47, .88) 0%, rgba(4, 30, 47, .7) 100%); }
  .hero__content { padding-top: 48px; padding-bottom: 80px; }
  .hero__actions .btn { width: 100%; }
  .strip__items { flex-direction: column; gap: 14px; }
  .services,
  .sectors,
  .zones { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .form { padding: 22px 18px; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .form__actions .btn { width: 100%; }
  .band { padding: 72px 0; }
  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .faq__list details p { padding-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__slide.is-active img { animation: none; }
  .hero__slide { transition: none; }
}
