/* ========================================
   CSS Custom Properties
   ======================================== */
:root {
  --color-primary: #1a56a8;
  --color-primary-dark: #0e3a73;
  --color-primary-light: #e8f0fe;
  --color-accent: #25d366;
  --color-text: #1a1a2e;
  --color-text-light: #555;
  --color-bg: #ffffff;
  --color-bg-alt: #f5f7fa;
  --color-bg-dark: #0e2a4a;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 8px;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 4px 24px rgba(0, 0, 0, 0.12);
}

/* ========================================
   Reset / Base
   ======================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
}

body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ========================================
   Layout
   ======================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.section-title--left {
  text-align: left;
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-light);
  margin-bottom: 2rem;
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
}

/* ========================================
   NAV
   ======================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: box-shadow 0.3s ease;
}

.nav.scrolled {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--color-primary);
  letter-spacing: 0.02em;
}

.nav__logo-icon {
  display: flex;
  color: var(--color-primary);
}

.nav__toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav__toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav__toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav__menu {
  position: fixed;
  top: 64px;
  left: 0;
  width: 100%;
  background: #fff;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.nav__menu.open {
  max-height: 320px;
  padding: 16px 0;
}

.nav__link {
  display: block;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text);
  transition: color 0.2s ease, background 0.2s ease;
}

.nav__link:hover,
.nav__link.active {
  color: var(--color-primary);
  background: var(--color-primary-light);
}

/* ========================================
   HERO
   ======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.5) 40%,
    rgba(0, 0, 0, 0.15) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-bottom: 3rem;
  padding-top: 80px;
  color: #fff;
}

.hero__brand {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  opacity: 0.8;
  margin-bottom: 0.5rem;
}

.hero__title {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.hero__subtitle {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-weight: 400;
  opacity: 0.9;
  margin-bottom: 0.75rem;
}

.hero__text {
  font-size: clamp(0.9rem, 2.5vw, 1.05rem);
  opacity: 0.75;
  max-width: 500px;
  margin-bottom: 1.5rem;
}

.hero__cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-family);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  min-height: 48px;
  border: none;
  text-align: center;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--whatsapp {
  background: var(--color-accent);
  color: #fff;
}

.btn--whatsapp:hover {
  background: #1fb855;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
}

.btn--outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

.btn--call {
  background: var(--color-primary);
  color: #fff;
}

.btn--call:hover {
  background: var(--color-primary-dark);
}

.btn--sms {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn--sms:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

/* ========================================
   VIDEO SECTION
   ======================================== */
.video-section {
  padding: 3rem 0;
  background: var(--color-bg-dark);
}

.video-section .section-title {
  color: #fff;
  margin-bottom: 1.5rem;
}

.video-wrapper {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.video-wrapper video {
  display: block;
  width: 100%;
  height: auto;
  background: #000;
}

/* ========================================
   VALUE PROPS
   ======================================== */
.value-props {
  padding: 3.5rem 0;
  background: var(--color-bg-alt);
}

.value-props .section-title {
  margin-bottom: 2rem;
}

.value-props__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.value-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.25rem 0.75rem;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.value-card svg {
  margin-bottom: 0.75rem;
  flex-shrink: 0;
}

.value-card p {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
}

/* ========================================
   SERVICES
   ======================================== */
.services {
  padding: 3.5rem 0;
}

.services .section-title {
  margin-bottom: 0.25rem;
}

.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.service-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.service-card__img-wrap {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.service-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.service-card:hover .service-card__img-wrap img {
  transform: scale(1.03);
}

.service-card__body {
  padding: 1.25rem;
}

.service-card__body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--color-primary-dark);
}

.service-card__body p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.5;
}

.service-card--icon .service-card__icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
  background: var(--color-primary-light);
}

/* ========================================
   HOW IT WORKS
   ======================================== */
.how-it-works {
  padding: 3.5rem 0;
  background: var(--color-bg-alt);
}

.how-it-works .section-title {
  margin-bottom: 2rem;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
  padding-left: 2rem;
}

.steps::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-primary-light);
}

.step {
  position: relative;
  text-align: left;
}

.step__number {
  position: absolute;
  left: -2rem;
  top: 0;
  width: 36px;
  height: 36px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  z-index: 1;
}

.step svg {
  margin-bottom: 0.5rem;
  margin-left: 1rem;
}

.step h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  margin-left: 1rem;
}

.step p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-left: 1rem;
}

/* ========================================
   ABOUT
   ======================================== */
.about {
  padding: 3.5rem 0;
}

.about__inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.about__images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.about__img-main,
.about__img-secondary {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius);
}

.about__text .section-title {
  margin-bottom: 1rem;
}

.about__text p {
  color: var(--color-text-light);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.about__text p:last-child {
  margin-bottom: 0;
}

/* ========================================
   COVERAGE
   ======================================== */
.coverage {
  padding: 3.5rem 0;
  background: var(--color-primary-light);
}

.coverage .section-title {
  margin-bottom: 0.25rem;
}

.coverage__pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.pill {
  display: inline-block;
  padding: 10px 20px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
}

.pill--outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

/* ========================================
   CONTACT / FOOTER
   ======================================== */
.contact {
  padding: 3.5rem 0 2rem;
  background: var(--color-bg-dark);
  color: #fff;
  text-align: center;
}

.contact h2 {
  font-size: clamp(1.3rem, 4vw, 2rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.contact__subtitle {
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  opacity: 0.8;
  margin-bottom: 2rem;
}

.contact__buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  margin-bottom: 1.5rem;
}

.contact__buttons .btn {
  width: 100%;
  max-width: 300px;
}

.contact__phone {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 2rem;
}

.contact__copy {
  font-size: 0.8rem;
  opacity: 0.5;
}

/* ========================================
   WHATSAPP FLOTANTE
   ======================================== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  z-index: 9999;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: whatsapp-pulse 2s ease-in-out 3;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

@keyframes whatsapp-pulse {
  0%, 100% { box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 4px 28px rgba(37, 211, 102, 0.7); }
}

/* ========================================
   SKIP LINK (Accessibility)
   ======================================== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: #fff;
  padding: 12px 24px;
  border-radius: 0 0 var(--radius) var(--radius);
  z-index: 10000;
  font-weight: 600;
  font-size: 0.9rem;
  transition: top 0.2s ease;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
}

/* ========================================
   FAQ
   ======================================== */
.faq {
  padding: 3.5rem 0;
}

.faq .section-title {
  margin-bottom: 0.25rem;
}

.faq__list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq__item {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.faq__item[open] {
  border-color: var(--color-primary-light);
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question::marker {
  display: none;
  content: '';
}

.faq__icon {
  flex-shrink: 0;
  transition: transform 0.3s ease;
  color: var(--color-primary);
}

.faq__item[open] .faq__icon {
  transform: rotate(180deg);
}

.faq__answer {
  padding: 0 1.25rem 1.25rem;
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

.faq__answer p {
  margin-bottom: 0.75rem;
}

.faq__answer p:last-child {
  margin-bottom: 0;
}

.faq__answer ul,
.faq__answer ol {
  margin: 0.5rem 0 0.75rem 1.25rem;
  list-style: disc;
}

.faq__answer ol {
  list-style: decimal;
}

.faq__answer li {
  margin-bottom: 0.4rem;
  list-style: inherit;
}

.faq__answer a {
  color: var(--color-primary);
  text-decoration: underline;
}

.faq__answer-en {
  font-size: 0.85rem;
  color: var(--color-text-light);
  opacity: 0.75;
  border-top: 1px solid var(--color-primary-light);
  padding-top: 0.5rem;
  margin-top: 0.75rem;
}

/* ========================================
   ABOUT ENGLISH
   ======================================== */
.about__english {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-primary-light);
  font-size: 0.9rem;
  color: var(--color-text-light);
}

/* ========================================
   SERVICE CARD ICON VARIANT
   ======================================== */
.service-card__icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: var(--color-primary-light);
}

/* ========================================
   CONTACT ADDRESS
   ======================================== */
.contact__address {
  font-style: normal;
}

.contact__address a {
  color: inherit;
  text-decoration: none;
}

/* ========================================
   CONTENT VISIBILITY (Performance)
   ======================================== */
.services,
.how-it-works,
.about,
.coverage,
.faq {
  content-visibility: auto;
  contain-intrinsic-size: auto 500px;
}

/* ========================================
   FADE-IN ANIMATIONS
   ======================================== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   RESPONSIVE: Tablet (768px+)
   ======================================== */
@media (min-width: 768px) {
  .nav__toggle {
    display: none;
  }

  .nav__menu {
    position: static;
    max-height: none;
    overflow: visible;
    display: flex;
    gap: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
  }

  .nav__link {
    padding: 8px 16px;
    font-size: 0.9rem;
    border-radius: var(--radius);
  }

  .nav__link:hover,
  .nav__link.active {
    background: var(--color-primary-light);
  }

  .hero__content {
    padding-bottom: 4rem;
  }

  .hero__cta {
    flex-direction: row;
  }

  .value-props__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }

  .services__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .steps {
    flex-direction: row;
    padding-left: 0;
    gap: 1rem;
  }

  .steps::before {
    display: none;
  }

  .step {
    flex: 1;
    text-align: center;
    padding-top: 3rem;
  }

  .step__number {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
  }

  .step svg {
    margin-left: 0;
  }

  .step h3,
  .step p {
    margin-left: 0;
  }

  .about__inner {
    flex-direction: row;
    align-items: center;
  }

  .about__images {
    flex: 1;
    min-width: 0;
  }

  .about__img-main,
  .about__img-secondary {
    height: 220px;
  }

  .about__text {
    flex: 1;
    min-width: 0;
  }

  .contact__buttons {
    flex-direction: row;
    justify-content: center;
  }

  .contact__buttons .btn {
    width: auto;
  }
}

/* ========================================
   RESPONSIVE: Desktop (1024px+)
   ======================================== */
@media (min-width: 1024px) {
  .nav__logo {
    font-size: 0.9rem;
  }

  .hero__content {
    padding-bottom: 5rem;
  }

  .services__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .value-card {
    padding: 1.5rem 1rem;
  }

  .value-card p {
    font-size: 0.9rem;
  }

  .about__img-main,
  .about__img-secondary {
    height: 280px;
  }

  .about__images {
    grid-template-columns: 1.2fr 0.8fr;
  }
}
