/* ==========================================================================
   Sertradis — hoja de estilos principal
   Paleta y tipografía heredadas de la identidad original (Elementor kit):
   navy #002E44 · teal #056796 · verde #6A9512 / #7DB903 · fondo #F9F7F5
   ========================================================================== */

/* ---------- Fuente auto-hospedada ---------- */
@font-face {
  font-family: 'Prompt';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/prompt-400-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Prompt';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/prompt-500-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Prompt';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/prompt-600-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Prompt';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/prompt-700-latin.woff2') format('woff2');
}

/* ---------- Variables ---------- */
:root {
  --navy: #002E44;
  --navy-dark: #04222f;
  --navy-deep: #111429;
  --teal: #056796;
  --green: #6A9512;
  --green-bright: #7DB903;
  --green-tint: rgba(125, 185, 3, 0.12);
  --bg-light: #F9F7F5;
  --text: #3c4650;
  --text-light: #6b7580;
  --white: #ffffff;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 10px 30px rgba(0, 46, 68, 0.10);
  --shadow-sm: 0 4px 14px rgba(0, 46, 68, 0.08);
  --container: 1180px;
  --font: 'Prompt', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ---------- Reset básico ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--green); }
h1, h2, h3, h4, h5, h6 {
  color: var(--navy);
  line-height: 1.25;
  margin: 0 0 0.6em;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
h5 { font-size: 1.15rem; }
h6 { font-size: 1rem; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }

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

/* ---------- Botones ---------- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: all 0.25s ease;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
}
.btn--green {
  background: var(--green-bright);
  color: var(--navy);
}
.btn--green:hover {
  background: var(--green);
  color: var(--white);
  transform: translateY(-2px);
}
.btn--outline {
  border-color: var(--white);
  color: var(--white);
}
.btn--outline:hover {
  background: var(--white);
  color: var(--navy);
}
.btn--navy {
  background: var(--navy);
  color: var(--white);
}
.btn--navy:hover {
  background: var(--teal);
  color: var(--white);
  transform: translateY(-2px);
}

/* ---------- Etiqueta eyebrow ---------- */
.eyebrow {
  display: inline-block;
  background: var(--green-tint);
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 4px;
  margin-bottom: 18px;
}
.section--dark .eyebrow { background: rgba(125, 185, 3, 0.18); color: var(--green-bright); }

/* ---------- Barra superior ---------- */
.topbar {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.82rem;
  padding: 7px 0;
}
.topbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.topbar__group { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar a { color: rgba(255, 255, 255, 0.85); display: inline-flex; align-items: center; gap: 7px; }
.topbar a:hover { color: var(--green-bright); }
.topbar svg { width: 14px; height: 14px; fill: var(--green-bright); flex-shrink: 0; }

/* ---------- Navegación ---------- */
.navbar {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}
.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}
.navbar__logo img { height: 48px; width: auto; border-radius: 6px; }
.navbar__menu {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.navbar__menu > li { position: relative; }
.navbar__menu a {
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 10px 13px;
  border-radius: 6px;
  display: block;
  white-space: nowrap;
}
.navbar__menu > li > a:hover,
.navbar__menu > li > a.is-active { color: var(--green-bright); }
.navbar__caret { font-size: 0.65em; margin-left: 4px; }

.dropdown__panel {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 290px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  list-style: none;
  padding: 10px;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.22s ease;
}
.dropdown:hover .dropdown__panel,
.dropdown:focus-within .dropdown__panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(4px);
}
.dropdown__panel a {
  color: var(--navy);
  padding: 10px 14px;
  font-weight: 500;
}
.dropdown__panel a:hover { background: var(--bg-light); color: var(--green); }

.navbar__cta { flex-shrink: 0; }
.navbar__cta .btn { padding: 11px 22px; font-size: 0.85rem; }

.navbar__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.navbar__toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--white);
  margin: 5px 0;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(0, 30, 45, 0.92) 0%, rgba(0, 46, 68, 0.72) 55%, rgba(0, 46, 68, 0.42) 100%);
}
.hero__inner {
  position: relative;
  z-index: 1;
  padding: clamp(70px, 11vw, 130px) 0;
  max-width: 720px;
}
.hero h1 { color: var(--white); }
.hero__lead {
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 32px;
  max-width: 600px;
}
.hero--simple {
  background: linear-gradient(115deg, var(--navy) 0%, var(--teal) 100%);
}
.hero--simple .hero__inner { padding: clamp(50px, 7vw, 80px) 0; }

/* ---------- Secciones ---------- */
.section { padding: clamp(60px, 8vw, 96px) 0; }
.section--light { background: var(--bg-light); }
.section--dark { background: var(--navy); color: rgba(255, 255, 255, 0.85); }
.section--dark h2, .section--dark h3, .section--dark h5, .section--dark h6 { color: var(--white); }
.section__head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 28px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 72px);
  align-items: center;
}
.split--wide-text { grid-template-columns: 1.15fr 1fr; }

/* ---------- Tarjetas ---------- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card__icon {
  width: 58px;
  height: 58px;
  object-fit: contain;
  margin-bottom: 18px;
}
.card h5, .card h6 { margin-bottom: 10px; }
.card p { margin-bottom: 0; font-size: 0.95rem; }

/* Tarjeta de sector (imagen + texto) */
.sector-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}
.sector-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.sector-card__img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.sector-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.sector-card:hover .sector-card__img img { transform: scale(1.06); }
.sector-card__body { padding: 22px 24px 26px; }
.sector-card__body h5 { margin-bottom: 8px; }
.sector-card__body p { margin: 0; font-size: 0.92rem; }

/* Paso numerado */
.step-card { position: relative; padding-top: 40px; }
.step-card__num {
  position: absolute;
  top: -6px;
  left: 28px;
  font-size: 3rem;
  font-weight: 700;
  color: var(--green-tint);
  -webkit-text-stroke: 1.5px var(--green);
  line-height: 1;
}

/* Lista de ventajas con check */
.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}
.check-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.check-list .check {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--green-tint);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 3px;
}
.check-list .check::after {
  content: '';
  width: 7px;
  height: 12px;
  border: solid var(--green);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg) translateY(-1px);
}

/* Mini-features (icono + texto en línea) */
.mini-feature { display: flex; gap: 16px; align-items: flex-start; }
.mini-feature img { width: 46px; height: 46px; object-fit: contain; flex-shrink: 0; }
.mini-feature h6 { margin-bottom: 4px; }
.mini-feature p { font-size: 0.92rem; margin: 0; }

/* ---------- Contadores ---------- */
.counters { display: flex; gap: clamp(28px, 5vw, 64px); flex-wrap: wrap; }
.counter__value {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 700;
  color: var(--green-bright);
  line-height: 1.1;
}
.counter__label { font-weight: 600; margin-top: 4px; }
.counter__sub { font-size: 0.88rem; color: var(--text-light); margin: 0; }
.section--dark .counter__sub { color: rgba(255, 255, 255, 0.65); }

/* ---------- Imágenes con marco ---------- */
.framed-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.framed-img img { width: 100%; object-fit: cover; }
.img-stack { position: relative; }
.img-stack .framed-img + .framed-img {
  position: absolute;
  width: 55%;
  bottom: -36px;
  right: -18px;
  border: 6px solid var(--white);
}

/* ---------- Logos de clientes ---------- */
.client-logos {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
  justify-content: center;
}
.client-logos img {
  height: 56px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.65;
  transition: all 0.3s ease;
}
.client-logos img:hover { filter: none; opacity: 1; }

/* ---------- Banda CTA ---------- */
.cta-band {
  background: linear-gradient(115deg, var(--navy) 0%, var(--teal) 100%);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  color: var(--white);
}
.cta-band h2, .cta-band h3 { color: var(--white); margin-bottom: 8px; }
.cta-band p { margin: 0; color: rgba(255, 255, 255, 0.85); max-width: 560px; }
.cta-band__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Formularios ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .form-field--full { grid-column: 1 / -1; }
.form-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid #dce1e5;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s ease;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--teal);
}
.form-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.85rem;
  color: var(--text-light);
}
.form-consent input { width: auto; margin-top: 4px; }

/* ---------- Tarjetas de contacto ---------- */
.contact-card {
  background: var(--teal);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  text-align: center;
}
.contact-card h5 { color: var(--white); margin: 14px 0 10px; }
.contact-card a, .contact-card p { color: rgba(255, 255, 255, 0.9); font-size: 0.95rem; margin: 0; display: block; }
.contact-card a:hover { color: var(--green-bright); }
.contact-card__icon {
  width: 54px;
  height: 54px;
  margin: 0 auto;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-card__icon svg { width: 24px; height: 24px; fill: var(--white); }

.map-embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.map-embed iframe { display: block; width: 100%; height: 380px; border: 0; }

/* ---------- Contenido legal ---------- */
.legal-content { max-width: 820px; }
.legal-content h2 { font-size: 1.4rem; margin-top: 2em; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content ul { margin-bottom: 1.2em; }
.legal-data {
  background: var(--bg-light);
  border-left: 4px solid var(--green-bright);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 26px;
  margin: 1.2em 0;
}
.legal-data p { margin: 0.25em 0; }

/* ---------- Footer ---------- */
.footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: clamp(56px, 7vw, 80px) 0 0;
  font-size: 0.93rem;
}
.footer h5 {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 20px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: clamp(32px, 5vw, 56px);
  padding-bottom: 48px;
}
.footer__brand img { height: 52px; width: auto; border-radius: 6px; margin-bottom: 18px; }
.footer__brand p { max-width: 300px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: 10px; }
.footer a { color: rgba(255, 255, 255, 0.75); }
.footer a:hover { color: var(--green-bright); }
.footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer__contact svg { width: 16px; height: 16px; fill: var(--green-bright); flex-shrink: 0; margin-top: 5px; }
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.85rem;
}
.footer__legal { display: flex; gap: 22px; flex-wrap: wrap; }

/* ---------- Animación de aparición ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Utilidades ---------- */
.mt-0 { margin-top: 0; }
.mb-40 { margin-bottom: 40px; }
.text-center { text-align: center; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .navbar__menu a { padding: 10px 9px; font-size: 0.88rem; }
}

@media (max-width: 880px) {
  .topbar__group--secondary { display: none; }

  .navbar__toggle { display: block; }
  .navbar__menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 20px 20px;
    display: none;
    box-shadow: 0 14px 24px rgba(0, 0, 0, 0.25);
    max-height: calc(100vh - 130px);
    overflow-y: auto;
  }
  .navbar__menu.is-open { display: flex; }
  .navbar__menu a { padding: 13px 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  .dropdown__panel {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: none;
    min-width: 0;
    display: none;
  }
  .dropdown.is-open .dropdown__panel { display: block; }
  .dropdown__panel a { color: rgba(255, 255, 255, 0.85); }
  .dropdown__panel a:hover { background: rgba(255, 255, 255, 0.08); color: var(--green-bright); }
  .navbar__cta { display: none; }
  .navbar__menu .navbar__cta--mobile { display: block; margin-top: 16px; }
  .navbar__menu .navbar__cta--mobile a {
    border: none;
    text-align: center;
    background: var(--green-bright);
    color: var(--navy);
    border-radius: 50px;
    font-weight: 600;
  }

  .split, .split--wide-text { grid-template-columns: 1fr; }
  .grid--3 { grid-template-columns: 1fr; }
  .grid--2 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .img-stack .framed-img + .framed-img { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .grid--4 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .topbar__inner { justify-content: center; }
  .hero__inner { padding: 56px 0; }
}
