@font-face {
  font-family: "Zen Dots";
  src: url("ZenDots-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ===== Tokens ===== */
:root {
  --navy: #1b3a5c;
  --navy-dark: #0f2a44;
  --navy-deep: #14304e;
  --red: #e2574c;
  --red-dark: #c9433a;
  --gray-bg: #f4f6f9;
  --gray-card: #e9ebee;
  --text-muted: #6b7280;
  --white: #ffffff;
  --radius: 6px;
  --container: 1240px;
  --font-display: "Zen Dots", sans-serif;
  --font-body: "Manrope", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; }

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

/* image fallback while real photos aren't dropped in yet */
.img-fallback {
  position: relative;
  background: linear-gradient(135deg, #dfe4ea, #c9d0d8);
  border-radius: var(--radius);
  min-height: 260px;
}
.img-fallback img { visibility: hidden; }
.img-fallback::after {
  content: "Imagen pendiente";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* ===== Eyebrow label ===== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0 0 14px;
}
.eyebrow::before {
  content: "";
  width: 4px;
  height: 16px;
  background: var(--red);
  flex-shrink: 0;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.btn-primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 10px 24px -10px rgba(226,87,76,.65);
}
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-block { width: 100%; }

/* ===== Top bar + header ===== */
.topbar { height: 10px; background: var(--navy-dark); }

.site-header {
  padding: 22px 0;
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(27,58,92,.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-img { height: 48px; width: auto; }
.logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: .06em;
  color: var(--navy);
}
.logo-text.small { font-size: 18px; }
.logo-dot { color: var(--red); }

.main-nav { display: flex; align-items: center; gap: 40px; }
.main-nav a {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--navy);
  position: relative;
  padding-bottom: 4px;
}
.main-nav a.active,
.main-nav a:hover { color: var(--red); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 60;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--navy);
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero { padding: 72px 0 96px; }
.hero-grid {
  display: grid;
  grid-template-columns: .9fr 1.35fr;
  align-items: center;
  gap: 48px;
}
.hero-title {
  font-size: clamp(42px, 5.2vw, 68px);
  line-height: 1.03;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--navy);
  margin-bottom: 22px;
}
.hero-desc {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.7;
  max-width: 420px;
  margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 16px; margin-bottom: 30px; flex-wrap: wrap; }
.hero-stat { font-size: 14px; color: var(--navy); margin-bottom: 2px; }
.hero-stat strong { color: var(--red); font-family: var(--font-display); font-size: 16px; }
.hero-stat-label { font-size: 13px; color: var(--text-muted); }

.hero-media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}
.hero-media.img-fallback { aspect-ratio: 4 / 3; }

/* ===== Services + Contact ===== */
.services-contact {
  position: relative;
  background: var(--gray-bg);
  padding: 90px 0 0px;
  overflow: hidden;
}
.pattern-bg {
  position: absolute;
  inset: 0;
  opacity: .9;
  background-image: url("img/textura-web.png");
  background-size: 340px auto;
  background-repeat: repeat;
  pointer-events: none;
}
.services-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  margin-bottom: 60px;
}

.services-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-content: start;
}
.service-card {
  background: var(--navy);
  color: var(--white);
  padding: 28px 24px;
  border-radius: var(--radius);
  min-height: 168px;
}
.service-card h3 {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 14px;
}
.service-card p {
  font-size: 12.5px;
  line-height: 1.6;
  color: rgba(255,255,255,.6);
}
.services-footnote {
  grid-column: 1 / -1;
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  padding-top: 6px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.services-info h2 {
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.15;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 18px;
}
.section-desc {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
  max-width: 460px;
  margin-bottom: 30px;
}

.quote-form {
  background: transparent;
}
.form-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 16px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.quote-form input,
.quote-form textarea {
  width: 100%;
  border: 1px solid #d3d9e0;
  background: var(--white);
  border-radius: var(--radius);
  padding: 15px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--navy);
  resize: vertical;
}
.quote-form textarea { margin-bottom: 20px; }
.quote-form input::placeholder,
.quote-form textarea::placeholder { color: #9aa4b2; }
.quote-form input:focus,
.quote-form textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(226,87,76,.15);
}

.van-banner {
  position: relative;
  max-width: 1000px;
}
.van-banner img {
  border-radius: var(--radius);
  will-change: transform, opacity;
}
.van-banner.img-fallback,
.van-banner .img-fallback { aspect-ratio: 16 / 7; }

/* ===== Difference section ===== */
.difference { padding: 100px 0; }
.difference-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 36px;
}
.difference-head h2 {
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 800;
}
.stat-row { display: flex; gap: 36px; }
.stat-row span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(22px, 2.4vw, 30px);
  color: var(--red);
}

.difference-panel {
  display: grid;
  grid-template-columns: .85fr 1.4fr;
  border-radius: var(--radius);
  overflow: hidden;
}
.panel-rating {
  background: var(--navy);
  color: var(--white);
  padding: 40px;
}
.panel-rating h3 {
  font-family: var(--font-body);
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 16px;
}
.panel-rating p {
  font-size: 12.5px;
  line-height: 1.65;
  color: rgba(255,255,255,.62);
  margin-bottom: 34px;
}
.rating { display: flex; align-items: baseline; gap: 14px; }
.rating-number {
  font-family: var(--font-display);
  font-size: 46px;
  font-weight: 800;
}
.rating-meta { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; }
.stars { color: #f5b942; letter-spacing: 2px; }

.panel-features {
  background: var(--gray-card);
  padding: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.panel-features h4 {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--navy);
}
.panel-features p {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ===== Testimonials ===== */
.testimonials { padding: 90px 0 120px; }
.testimonials h2 {
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 800;
  margin-bottom: 18px;
}
.testimonials > .container > .section-desc {
  margin-bottom: 44px;
  max-width: 620px;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr .85fr;
  gap: 40px;
  align-items: stretch;
}
.testimonials-left { display: flex; flex-direction: column; gap: 24px; }
.testimonial-card {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  flex: 1;
}
.testimonial p {
  font-size: 12.5px;
  line-height: 1.7;
  color: rgba(255,255,255,.65);
  margin-bottom: 22px;
}
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  flex-shrink: 0;
}
.testimonial-author strong {
  display: block;
  color: var(--white);
  font-size: 13.5px;
}
.testimonial-author small { color: rgba(255,255,255,.55); font-size: 11.5px; }
.testimonials-left > .btn { align-self: flex-start; }

.testimonials-media img { border-radius: var(--radius); height: 100%; object-fit: cover; }
.testimonials-media.img-fallback,
.testimonials-media .img-fallback { min-height: 100%; }

/* ===== Footer ===== */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,.55);
  padding: 28px 0;
}
.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.site-footer .logo-text { color: var(--white); }
.site-footer p { font-size: 12.5px; }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .main-nav {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: var(--white);
    padding: 12px 32px 24px;
    border-bottom: 1px solid rgba(27,58,92,.08);
    box-shadow: 0 16px 24px -16px rgba(15,42,68,.18);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform .25s ease, opacity .25s ease, visibility .25s;
  }
  .main-nav a { padding: 10px 0; width: 100%; }
  .site-header.nav-open .main-nav {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .nav-toggle { display: flex; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .services-grid { grid-template-columns: 1fr; gap: 48px; }
  .difference-panel { grid-template-columns: 1fr; }
  .panel-features { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .testimonial-card { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .container { padding: 0 20px; }
  .hero { padding: 48px 0 64px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .form-row { grid-template-columns: 1fr; }
  .services-cards { grid-template-columns: 1fr; }
  .difference-head { flex-direction: column; align-items: flex-start; }
  .stat-row { gap: 24px; }
  .site-footer .container { flex-direction: column; text-align: center; }
}
