/* ========== Tokens ========== */
:root {
  --navy: #1b2a41;
  --navy-dark: #121e30;
  --blue: #3d5a80;
  --yellow: #f2c230;
  --green: #2e8b4d;
  --red: #d9302f;
  --ink: #1c2530;
  --ink-soft: #5a6472;
  --paper: #ffffff;
  --paper-alt: #f4f6f9;
  --border: #e3e7ee;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(18, 30, 48, 0.08);
  --container: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: inherit; font-weight: 800; line-height: 1.2; margin: 0 0 16px; color: var(--navy); }
p { margin: 0 0 16px; color: var(--ink-soft); }

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

/* ========== Header ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.site-header .container { max-width: none; padding: 0 32px; }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand-logo { width: 40px; height: 40px; object-fit: contain; }
.brand-text {
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.03em;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-text small {
  font-weight: 400;
  font-size: 11px;
  color: #c7d0dd;
  letter-spacing: 0.05em;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 38px;
}
.site-nav a {
  color: #d7dee8;
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.site-nav a:hover, .site-nav a.nav-active { color: #fff; border-color: var(--yellow); }
.site-nav a.nav-sarg { color: var(--yellow); }
.site-nav a.nav-sarg:hover { color: #fff; border-color: var(--yellow); }

/* ========== Buttons ========== */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary { background: var(--yellow); color: var(--navy-dark); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(242,194,48,0.35); }
.btn-ghost { border: 2px solid rgba(255,255,255,0.6); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,0.12); }

/* ========== Hero ========== */
.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(18,30,48,0.92) 20%, rgba(27,42,65,0.72) 60%, rgba(27,42,65,0.45) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 60px;
  padding-bottom: 60px;
  max-width: 760px;
}
.eyebrow {
  color: var(--yellow);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 13px;
  margin-bottom: 14px;
}
.hero h1 {
  color: #fff;
  font-size: clamp(30px, 5vw, 48px);
  margin-bottom: 18px;
}
.hero-sub {
  color: #dbe2ec;
  font-size: 17px;
  max-width: 560px;
  margin-bottom: 30px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.scroll-cue {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  animation: bob 2s ease-in-out infinite;
}
.scroll-cue svg { width: 18px; height: 18px; stroke: #fff; fill: none; stroke-width: 2.4; }
@keyframes bob { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(6px); } }

/* ========== Sections ========== */
.section { padding: 88px 0; }
.section-alt { background: var(--paper-alt); }
.tag {
  display: inline-block;
  color: var(--green);
  background: rgba(46,139,77,0.1);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.tag-light { color: var(--yellow); background: rgba(242,194,48,0.15); }
.section h2 { font-size: clamp(26px, 4vw, 36px); }
.section-lead { max-width: 620px; font-size: 16.5px; }

/* Nosotros split */
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; margin-top: 36px; }
.value-block { margin-bottom: 28px; }
.value-block h3 { font-size: 19px; margin-bottom: 8px; color: var(--blue); }
.split-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Cards */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin-top: 36px; }
.card {
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.card img { height: 260px; width: 100%; object-fit: cover; }
.card-body { padding: 24px 26px 28px; }
.card-body h3 { font-size: 20px; margin-bottom: 10px; }
.card-body p { margin-bottom: 0; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin-top: 36px; }
.step {
  position: relative;
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  padding-bottom: 26px;
}
.step img { height: 210px; width: 100%; object-fit: cover; }
.step-number {
  position: absolute;
  top: 178px;
  left: 24px;
  background: var(--yellow);
  color: var(--navy-dark);
  font-weight: 800;
  font-size: 14px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}
.step h3 { font-size: 19px; margin: 26px 24px 10px; }
.step p { margin: 0 24px; }
.step-link { display: block; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.step-link.step-link:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(18,30,48,0.14); }
.step-more {
  display: block;
  margin: 14px 24px 24px;
  color: var(--blue);
  font-weight: 700;
  font-size: 14px;
}

/* Video testimonials */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 36px 0 28px;
}
.video-card {
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.video-card video {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: #000;
  display: block;
}
.video-card h3 { font-size: 16px; margin: 16px 20px 18px; color: var(--navy); }

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 36px;
}
.gallery img {
  height: 220px;
  width: 100%;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.3s ease;
}
.gallery img:hover { transform: scale(1.03); }

/* ========== Contact ========== */
.contact-section { background: var(--navy); }
.contact-section .tag { color: var(--yellow); }
.contact-section h2, .contact-section h3 { color: #fff; }
.contact-section p { color: #c7d0dd; }
.contact-section .section-lead a,
.contact-section .form-note a { color: var(--yellow); font-weight: 700; }

.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; margin-top: 36px; }

.map-embed {
  position: relative;
  display: block;
  width: 100%;
  height: 340px;
  margin: 28px 0 48px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  cursor: pointer;
}
.map-cta {
  position: absolute;
  right: 16px;
  bottom: 16px;
  background: var(--yellow);
  color: var(--navy-dark);
  font-weight: 700;
  font-size: 13.5px;
  padding: 9px 16px;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.3);
  transition: transform 0.15s ease;
}
.map-embed:hover .map-cta { transform: translateY(-2px); }
.map-label {
  position: absolute;
  left: 50%;
  top: 44%;
  transform: translate(-50%, -100%);
  background: var(--navy);
  color: #fff;
  padding: 7px 16px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 18px rgba(0,0,0,0.35);
  pointer-events: none;
  white-space: nowrap;
}
.map-label::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--navy);
}

.contact-form {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 32px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  color: #dbe2ec;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.form-field input, .form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-family: inherit;
  font-size: 14.5px;
}
.form-field input::placeholder, .form-field textarea::placeholder { color: #8b96a8; }
.form-field input:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--yellow);
  background: rgba(255,255,255,0.09);
}
.form-note { margin-top: 16px; font-size: 14px; }

.contact-info { display: flex; flex-direction: column; gap: 26px; }
.info-block h3 { font-size: 17px; margin-bottom: 8px; }
.info-block p { margin-bottom: 4px; }
.info-block a:hover { color: var(--yellow); }

/* ========== Footer ========== */
.site-footer { background: var(--navy-dark); padding: 28px 0; }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.footer-logo { width: 28px; height: 28px; object-fit: contain; opacity: 0.85; }
.footer-inner p { margin: 0; color: #93a0b3; font-size: 13.5px; }

/* ========== Detail pages (Procesos) ========== */
.detail-hero {
  position: relative;
  min-height: 300px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.detail-hero-content { position: relative; z-index: 2; padding-bottom: 36px; }
.detail-hero-content h1 { color: #fff; font-size: clamp(28px, 4vw, 42px); margin-bottom: 0; }
.back-link {
  display: inline-block;
  color: #dbe2ec;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 18px;
}
.back-link:hover { color: var(--yellow); }

.detail-content { max-width: 760px; }
.check-list { list-style: none; padding: 0; margin: 0 0 20px; }
.check-list li {
  position: relative;
  padding: 10px 0 10px 30px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--border);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 17px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 36px;
}
.photo-grid img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

/* ========== Scroll reveal ========== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ========== WhatsApp float button ========== */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 58px;
  height: 58px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  z-index: 200;
  transition: transform 0.2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 30px; height: 30px; fill: #fff; }

/* ========== Responsive ========== */
@media (max-width: 900px) {
  .split, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .split-media { order: -1; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .video-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 20px;
    box-shadow: 0 12px 20px rgba(0,0,0,0.2);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .site-nav.open { max-height: 400px; }
  .site-nav a { width: 100%; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .site-nav a.nav-cta { margin-top: 10px; text-align: center; }

  .hero { min-height: 560px; text-align: left; }
  .cards, .steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 64px 0; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery img { height: 150px; }
  .contact-form { padding: 22px; }
}
