/* ═══════════════════════════════════════════
   PALETA (Figma)
   #1A1C29  azul marino profundo
   #3D3F4B  gris oscuro
   #7D8391  gris medio
   #B1B2B6  gris claro
═══════════════════════════════════════════ */
:root {
  --c1: #1A1C29;
  --c2: #3D3F4B;
  --c3: #7D8391;
  --c4: #B1B2B6;
  --white: #ffffff;
  --gray-page: #ffffff;
  --gray-testi: #DFE3E8;
  --card: #E9E9E9;
  --font-head: "Bai Jamjuree", system-ui, sans-serif;
  --font: "Poppins", system-ui, sans-serif;
  --wrap: 1440px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--c1);
  background: var(--gray-page);
}
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 400; }
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ── BOTÓN HERO ── */
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 181px;
  height: 35px;
  padding: 0 1.4rem;
  border: 2px solid var(--white);
  border-radius: 20px;
  color: var(--white);
  font: 700 20px/1 var(--font-head);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: background 0.2s, color 0.2s;
}
.btn-outline:hover { background: var(--white); color: var(--c1); }

/* ══════════════════ HEADER ══════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--white);
}
.header-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  min-height: 118px;
  padding: 0 2.4rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.header-logo {
  width: 83px;
  height: 83px;
  object-fit: contain;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 1.7rem;
  margin-left: auto;
}
.main-nav a {
  text-decoration: none;
  font-family: var(--font);
  font-weight: 500;
  font-size: 20px;
  color: #000;
  padding-bottom: 6px;
  border-bottom: 2px solid transparent;
}
.main-nav a.is-active,
.main-nav a:hover { border-color: var(--c2); }

.header-contact {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.45rem;
  padding-left: 1.4rem;
  border-left: 3px solid var(--c2);
  min-height: 79px;
}
.hc-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 14px;
  color: #000;
}
.hc-icon {
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: var(--c2);
  display: grid;
  place-items: center;
  flex: none;
  overflow: hidden;
}
.hc-icon img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.hc-phones {
  display: flex;
  flex-direction: column;
  font-weight: 800;
  line-height: 14px;
}
.hc-row a {
  text-decoration: none;
  font-weight: 400;
}
.hc-row a:hover { text-decoration: underline; }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 0;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  width: 36px;
  height: 36px;
  justify-content: center;
}
.nav-toggle span { display: block; height: 2px; background: var(--c1); }

/* ══════════════════ HERO ══════════════════ */
.hero {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: var(--c1);
  display: flex;
  align-items: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--wrap);
  width: 100%;
  margin: 0 auto;
  padding: 0 2.4rem 0 24%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.15rem;
}
.hero-logo-img {
  width: min(456px, 100%);
  height: auto;
}
/* H1 del hero — visible pero sutil para no romper el diseño */
.hero-h1 {
  margin: 0 0 .6rem;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 500;
  color: var(--c4);
  letter-spacing: .04em;
  text-transform: uppercase;
  max-width: 480px;
  /* Accesible y visible pero subordinado visualmente al logo */
  opacity: .85;
}
.hero-desc {
  margin: 0;
  max-width: 478px;
  font-family: var(--font-head);
  font-size: 14px;
  line-height: 1.45;
  color: var(--white);
  text-align: justify;
}

/* ══════════════════ ACERCA DE ══════════════════ */
.acerca {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 5.5rem 2.4rem 5rem;
  display: grid;
  grid-template-columns: minmax(280px, 473px) 1fr;
  gap: 3.4rem;
  align-items: center;
}
.acerca-foto img {
  width: 100%;
  height: 315px;
  object-fit: cover;
}
.acerca-texto h2 {
  margin: 0 0 1.1rem;
  font-size: 54px;
  line-height: 1.1;
  color: var(--c2);
}
.acerca-texto p {
  margin: 0 0 1rem;
  max-width: 462px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--c1);
  text-align: justify;
}

/* ══════════════════ SERVICIOS ══════════════════ */
.servicios {
  position: relative;
  background: var(--c1);
  padding: 3.4rem 2.4rem 4.2rem;
  text-align: center;
  overflow: hidden;
}
.servicios-wave {
  position: absolute;
  inset: 0;
  opacity: 0.15;
  pointer-events: none;
}
.servicios-wave img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.servicios-inner { position: relative; z-index: 1; }
.servicios h2 {
  margin: 0 0 2.4rem;
  color: var(--white);
  font-size: 54px;
}
.servicios-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 310px));
  justify-content: center;
  gap: 1.2rem;
  max-width: 1320px;
  margin: 0 auto;
}
.srv-card {
  background: var(--card);
  border-radius: 24px;
  min-height: 366px;
  padding: 1.6rem 1.3rem 1.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.srv-icon {
  width: 120px;
  height: 120px;
  display: grid;
  place-items: center;
  margin-bottom: 1.4rem;
}
.srv-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.srv-card h3 {
  margin: 0 0 0.7rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 20px;
  color: #000;
}
.srv-card p {
  margin: 0;
  max-width: 268px;
  font-family: var(--font-head);
  font-weight: 300;
  font-size: 16px;
  line-height: 18px;
  color: #000;
}

/* ══════════════════ VIDEO ══════════════════ */
.video-sec {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 5rem 2.4rem;
  display: grid;
  grid-template-columns: 302px 1fr;
  gap: 4.5rem;
  align-items: center;
  justify-content: center;
}
.video-wrap { display: flex; justify-content: center; }
.video-slot {
  position: relative;
  width: 302px;
  height: 537px;
  overflow: hidden;
  background: var(--c1);
}
.vid-player,
.vid-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.vid-player { min-height: 537px; }
.vid-poster {
  position: absolute;
  inset: 0;
}
.play-btn {
  position: absolute;
  left: 50%;
  top: 52%;
  width: 86px;
  height: 86px;
  padding: 0;
  transform: translate(-50%, -50%);
  border: 0;
  background: transparent;
  cursor: pointer;
}
.play-btn svg { width: 100%; height: 100%; }
.video-slot.is-playing .vid-poster { display: none; }
.unmute-btn {
  position: absolute;
  left: 50%;
  bottom: 3.6rem;
  transform: translateX(-50%);
  z-index: 2;
  border: 0;
  border-radius: 20px;
  padding: 0.45rem 0.9rem;
  background: rgba(26, 28, 41, 0.82);
  color: #fff;
  font: 600 0.78rem var(--font-head);
  cursor: pointer;
}
.unmute-btn[hidden] { display: none; }
.vid-controls {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  align-items: center;
  gap: 0.4rem;
  padding: 1.35rem 0.6rem 0.55rem;
  background: linear-gradient(transparent, rgba(26, 28, 41, 0.92) 42%);
}
.video-slot.has-video.is-playing .vid-controls { display: flex; }
.vid-toggle {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.vid-toggle svg { width: 18px; height: 18px; display: block; margin: 0 auto; }
.vid-toggle .icon-play { display: none; }
.vid-toggle.is-paused .icon-pause { display: none; }
.vid-toggle.is-paused .icon-play { display: block; }
.vid-seek {
  flex: 1;
  min-width: 0;
  height: 22px;
  margin: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  touch-action: none;
  --pct: 0%;
}
.vid-seek,
.vid-seek::-webkit-slider-runnable-track,
.vid-seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
}
.vid-seek::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 99px;
  background: linear-gradient(to right, #fff var(--pct), rgba(255, 255, 255, 0.38) var(--pct));
}
.vid-seek::-webkit-slider-thumb {
  width: 14px;
  height: 14px;
  margin-top: -5px;
  border: 0;
  border-radius: 50%;
  background: #fff;
}
.vid-seek::-moz-range-track {
  height: 4px;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.38);
}
.vid-seek::-moz-range-progress {
  height: 4px;
  border-radius: 99px;
  background: #fff;
}
.vid-seek::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 0;
  border-radius: 50%;
  background: #fff;
}
.vid-time {
  flex: 0 0 auto;
  min-width: 4.7rem;
  color: #fff;
  font: 600 0.68rem var(--font-head);
  letter-spacing: 0.02em;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.vid-hint {
  position: absolute;
  left: 50%;
  bottom: 1.2rem;
  transform: translateX(-50%);
  margin: 0;
  width: 90%;
  text-align: center;
  font-size: 0.72rem;
  line-height: 1.4;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}
.video-slot.has-video .vid-hint { display: none; }
.video-texto h2 {
  margin: 0 0 1.6rem;
  font-size: 54px;
  line-height: 1.15;
  color: var(--c1);
}
.video-texto ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.video-texto li {
  position: relative;
  padding-left: 1.6rem;
  font-weight: 300;
  font-size: 24px;
  line-height: 60px;
  color: #000;
}
.video-texto li::before {
  content: "●";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 16px;
  color: var(--c1);
}

/* ══════════════════ TESTIMONIOS ══════════════════ */
.testimonios {
  background: var(--gray-testi);
  padding: 2.6rem 2.4rem 3.4rem;
  text-align: center;
}
.testimonios h2 {
  margin: 0 0 1.8rem;
  font-size: 54px;
  color: var(--c1);
}
.carousel-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 1500px;
  margin: 0 auto;
}
.car-track-wrap { flex: 1; overflow: hidden; }
.car-track {
  display: flex;
  gap: 13px;
  transition: transform 0.4s ease;
}
.testi-card {
  flex: 0 0 calc(33.333% - 9px);
  min-height: 223px;
  background: var(--white);
  border-radius: 8px;
  padding: 2rem 2.2rem;
  text-align: left;
  box-shadow: 0 8px 24px rgba(26, 28, 41, 0.06);
}
.testi-card h3 {
  margin: 0 0 1rem;
  font-family: var(--font);
  font-weight: 600;
  font-size: 24px;
  color: #000;
}
.testi-card p {
  margin: 0;
  font-size: 11px;
  line-height: 1.5;
  color: #000;
  text-align: justify;
}
.car-btn {
  width: 57px;
  height: 58px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex: none;
}
.car-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.car-btn-next img { transform: rotate(180deg); }

/* ══════════════════ CONTACTO ══════════════════ */
.contacto {
  background: var(--c1);
  padding: 2.2rem 2.4rem 3.4rem;
}
.contacto-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 6px 1fr;
  gap: 3.2rem;
  align-items: start;
}
.contacto-form-col h2 {
  margin: 0 0 1.2rem;
  color: var(--white);
  font-size: 64px;
  line-height: 1;
}
.contacto-form {
  display: grid;
  gap: 15px;
  max-width: 480px;
}
.contacto-form input,
.contacto-form textarea {
  width: 100%;
  background: var(--c3);
  border: 0;
  padding: 0.9rem 1.1rem;
  font: 400 24px/1.2 var(--font-head);
  color: var(--white);
}
.contacto-form input { height: 61px; }
.contacto-form textarea { height: 133px; resize: vertical; }
.contacto-form input::placeholder,
.contacto-form textarea::placeholder { color: var(--white); opacity: 1; }
.contacto-form button {
  width: 220px;
  height: 56px;
  margin: 0.4rem auto 0;
  background: var(--c4);
  color: #333436;
  border: 0;
  font: 700 24px/1 var(--font-head);
  cursor: pointer;
}
.contacto-form button:hover { filter: brightness(1.05); }
.form-status { margin: 0; font-size: 0.9rem; color: #7ee8a2; }

.contacto-sep {
  width: 6px;
  align-self: stretch;
  min-height: 400px;
  background: var(--white);
  margin-top: 2.4rem;
}
.contacto-info-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 2.8rem;
}
.logo-contacto {
  width: min(622px, 100%);
  height: auto;
  margin-bottom: 2.4rem;
}
.foot-datos {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.4rem 1.8rem;
}
.foot-datos li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--white);
  font-family: var(--font-head);
  font-size: 20px;
  line-height: 1.2;
}
.foot-datos a { text-decoration: none; }
.foot-datos a:hover { text-decoration: underline; }
.info-icon {
  width: 51px;
  height: 51px;
  border-radius: 50%;
  background: var(--c3);
  display: grid;
  place-items: center;
  flex: none;
}
.info-icon img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

/* ══════════════════ FOOTER ══════════════════ */
.site-footer {
  background: var(--white);
  min-height: 50px;
  padding: 0.7rem 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  color: #333436;
  font-family: var(--font-head);
  font-size: 20px;
}
.site-footer p { margin: 0; }
.site-footer strong { font-weight: 700; }
.site-footer nav { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.site-footer nav a {
  color: #333436;
  text-decoration: none;
  font-weight: 500;
}
.site-footer nav a:hover { text-decoration: underline; }

/* ══════════════════ FLOTANTES ══════════════════ */
.wa-float {
  position: fixed;
  right: 1.4rem;
  bottom: 7.2rem;
  z-index: 50;
  width: 74px;
  height: 74px;
}
.wa-float img { width: 100%; height: 100%; object-fit: contain; }
.scroll-top {
  position: fixed;
  right: 1.15rem;
  bottom: 1.15rem;
  z-index: 50;
  width: 85px;
  height: 86px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.scroll-top img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: rotate(90deg);
}
.scroll-top.visible { opacity: 1; pointer-events: auto; }

/* ══════════════════ RESPONSIVE ══════════════════ */
@media (max-width: 1100px) {
  .header-inner { gap: 1rem; padding: 0 1.2rem; }
  .main-nav { gap: 1rem; }
  .main-nav a { font-size: 16px; }
  .hero-content { padding-left: 8%; }
  .acerca { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .acerca-texto h2,
  .servicios h2,
  .video-texto h2,
  .testimonios h2 { font-size: 40px; }
  .contacto-form-col h2 { font-size: 48px; }
  .video-sec { grid-template-columns: 260px 1fr; gap: 2rem; }
  .video-slot { width: 260px; height: 460px; }
  .vid-player { min-height: 460px; }
  .video-texto li { font-size: 18px; line-height: 42px; }
  .servicios-grid { grid-template-columns: repeat(2, minmax(0, 310px)); }
}

@media (max-width: 820px) {
  .header-inner { min-height: 72px; }
  .header-logo { width: 54px; height: 54px; }
  .main-nav {
    display: none;
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    background: var(--white);
    padding: 1rem 1.4rem 1.4rem;
    border-bottom: 1px solid #ddd;
    margin: 0;
  }
  .site-header.is-open .main-nav { display: flex; }
  .header-contact { display: none; }
  .nav-toggle { display: flex; }
  .hero { height: 420px; }
  .hero-content { padding: 2rem 1.4rem; }
  .hero-desc { font-size: 13px; }
  .acerca,
  .video-sec,
  .contacto-inner { grid-template-columns: 1fr; }
  .acerca { padding: 3rem 1.2rem; }
  .acerca-foto img { height: auto; }
  .contacto-sep { display: none; }
  .contacto-form { max-width: 100%; }
  .contacto-form input,
  .contacto-form textarea { font-size: 18px; }
  .site-footer { font-size: 14px; padding: 0.8rem 1.2rem; }
  .testi-card { flex: 0 0 100%; }
  .video-sec { padding: 3rem 1.2rem; justify-items: center; }
  .video-slot { width: min(302px, 100%); height: 480px; }
  .foot-datos { flex-direction: column; align-items: flex-start; }
  .wa-float { width: 58px; height: 58px; bottom: 5.6rem; }
  .scroll-top { width: 64px; height: 64px; }
}

@media (max-width: 480px) {
  .servicios-grid { grid-template-columns: 1fr; }
  .srv-card { min-height: 0; }
  .acerca-texto h2,
  .servicios h2,
  .video-texto h2,
  .testimonios h2 { font-size: 32px; }
  .contacto-form-col h2 { font-size: 40px; }
}
