/* ============ VARIABLES ============ */
:root {
  --blue: #0D4C87;
  --blue-light: #1571B8;
  --orange: #F4791E;
  --orange-light: #FF8F3D;
  --bg: #F7F9FB;
  --text: #22262A;
  --text-soft: #5B6470;
  --white: #FFFFFF;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(13, 76, 135, 0.10);
  --font-title: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-title);
  color: var(--blue);
  line-height: 1.25;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 80px 0; }
.section--tint { background: var(--bg); }

.section__head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section__eyebrow {
  display: inline-block;
  color: var(--orange);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section__head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 12px; }
.section__head p { color: var(--text-soft); }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn--cta { background: var(--orange); color: var(--white); }
.btn--cta:hover { background: var(--orange-light); transform: translateY(-2px); box-shadow: 0 8px 18px rgba(244,121,30,0.35); }
.btn--outline { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn--outline:hover { background: var(--blue); color: var(--white); transform: translateY(-2px); }
.btn--lg { padding: 15px 30px; font-size: 1rem; }
.btn--sm { padding: 9px 18px; font-size: 0.85rem; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin-bottom: 20px;
  text-transform: uppercase;
}
.tag::before {
  content: '';
  display: block;
  width: 38px;
  height: 3px;
  background: var(--orange);
  border-radius: 2px;
}

/* ============ HEADER ============ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 14px rgba(13,76,135,0.06);
  transition: box-shadow .2s ease, background .2s ease;
}
.header.is-scrolled { background: rgba(255,255,255,0.92); box-shadow: 0 4px 20px rgba(13,76,135,0.16); }
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 20px;
}
.header__logo img { height: 62px; width: auto; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav__link {
  position: relative;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  padding-bottom: 4px;
  transition: color .2s;
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .3s ease;
}
.nav__link:hover { color: var(--orange); }
.nav__link:hover::after { transform: scaleX(1); }
.header__cta { flex-shrink: 0; }

.header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px; height: 34px;
  background: none; border: none; cursor: pointer;
}
.header__burger span {
  display: block; height: 3px; width: 100%;
  background: var(--blue); border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: -6% -2%; z-index: 0;
  will-change: transform;
}
.hero__bg img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 20%;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.hero__bg img.is-active { opacity: 1; }
.hero__bg img:nth-child(1) { object-position: center 35%; }
.hero__bg img:nth-child(2) { object-position: 32% 40%; }
.hero__bg img:nth-child(3) { object-position: 60% 45%; }
.hero__bg img:nth-child(4) { object-position: 78% 55%; }
.hero__bg img:nth-child(5) { object-position: 65% 40%; }
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(13,76,135,0.94) 0%, rgba(13,76,135,0.82) 30%, rgba(13,76,135,0.55) 55%, rgba(13,76,135,0.25) 100%);
}
.hero__content { position: relative; z-index: 1; max-width: 920px; margin: 0; padding: 120px 20px 60px clamp(20px, 6vw, 80px); }
.hero h1 { color: var(--white); font-size: clamp(2.4rem, 6.2vw, 4.4rem); margin-bottom: 18px; }
.hero__subtitle { font-size: 1.1rem; opacity: 0.95; margin-bottom: 32px; max-width: 640px; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero .btn--outline { border-color: var(--white); color: var(--white); }
.hero .btn--outline:hover { background: var(--white); color: var(--blue); }

/* ============ VIDEO BANNER ============ */
.video-banner {
  position: relative;
  height: 68vh;
  min-height: 460px;
  max-height: 680px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-banner__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.video-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(13,76,135,0.88) 0%, rgba(21,113,184,0.68) 55%, rgba(13,76,135,0.82) 100%);
}
.video-banner__content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--white);
  padding: 0 24px;
  max-width: 620px;
}
.video-banner__logo {
  width: 130px;
  margin: 0 auto 26px;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,0.35));
}
.video-banner__content h2 { color: var(--white); font-size: clamp(1.5rem, 3.2vw, 2.1rem); margin-bottom: 12px; }
.video-banner__content p { opacity: 0.92; font-size: 1.02rem; }

@media (max-width: 768px) {
  .video-banner { height: 60vh; min-height: 380px; }
  .video-banner__logo { width: 100px; }
}

/* ============ NOSOTROS ============ */
.about { display: grid; grid-template-columns: 1fr auto; gap: 56px; align-items: center; }
.about__text p { color: var(--text-soft); margin-bottom: 16px; }

.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 32px;
}
.mv-card {
  padding: 28px 26px;
  background: rgba(244,121,30,0.06);
  border: 1px solid rgba(244,121,30,0.35);
  border-radius: var(--radius);
}
.mv-card__num {
  display: block;
  font-family: var(--font-title);
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 10px;
}
.mv-card h3 {
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue);
  margin: 0 0 10px;
}
.mv-card p { color: var(--text-soft); font-size: 0.92rem; line-height: 1.6; }

/* ============ POR QUÉ ELEGIRNOS ============ */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.benefit-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 26px;
  box-shadow: var(--shadow);
  transition: transform .25s ease;
}
.benefit-card:hover { transform: translateY(-6px); }
.benefit-card__icon {
  width: 58px; height: 58px;
  border-radius: 14px;
  background: var(--blue);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.benefit-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.benefit-card p { color: var(--text-soft); font-size: 0.94rem; }

/* ============ STATS ============ */
.stats { background: var(--blue); padding: 50px 0; }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  text-align: center;
  color: var(--white);
}
.stat__num { font-family: var(--font-title); font-size: 2.4rem; font-weight: 700; color: var(--white); }
.stat__plus { font-family: var(--font-title); font-size: 2.4rem; font-weight: 700; color: var(--orange); }
.stat__text { font-family: var(--font-title); font-size: 1.5rem; font-weight: 700; color: var(--orange); display: block; }
.stat p { opacity: 0.9; font-size: 0.92rem; margin-top: 6px; }
.stat p em { opacity: 0.7; font-size: 0.8rem; font-style: italic; }

/* ============ SERVICIOS ============ */
.services-panels {
  display: flex;
  height: 560px;
  gap: 6px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.service-panel {
  position: relative;
  flex: 1;
  min-width: 60px;
  overflow: hidden;
  cursor: pointer;
  transition: flex 0.6s cubic-bezier(.22,.61,.36,1);
}
.service-panel:hover { flex: 3.2; }
.service-panel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: grayscale(100%) brightness(0.6);
  transition: filter .6s ease, transform .6s ease;
}
.service-panel--jardin img { object-position: 68% 80%; }
.service-panel:hover img { filter: grayscale(0%) brightness(0.62); transform: scale(1.06); }

.service-panel__placeholder-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, var(--blue) 0%, var(--blue-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-panel__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 26px 18px;
  background: linear-gradient(180deg, transparent 35%, rgba(10,30,50,0.88) 100%);
}
.service-panel__content { color: var(--white); max-width: 320px; overflow: hidden; }
.service-panel__content h3 {
  display: flex;
  align-items: flex-end;
  min-height: 2.2em;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0;
  white-space: normal;
  transition: margin .4s ease, font-size .4s ease;
}
.service-panel:hover .service-panel__content h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}
.service-panel__content p,
.service-panel__content ul,
.service-panel__content .btn {
  white-space: normal;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity .35s ease, max-height .5s ease;
}
.service-panel__content p { font-size: 0.88rem; margin-bottom: 0; }
.service-panel__content ul { list-style: disc; padding-left: 18px; font-size: 0.84rem; line-height: 1.6; margin: 0; }
.service-panel__content li { opacity: 0.95; }
.service-panel:hover .service-panel__content p { opacity: 1; max-height: 60px; margin-bottom: 10px; }
.service-panel:hover .service-panel__content ul { opacity: 1; max-height: 120px; margin-bottom: 16px; }
.service-panel:hover .service-panel__content .btn { opacity: 1; max-height: 60px; }
.service-panel__content .btn--outline { border-color: var(--white); color: var(--white); }
.service-panel__content .btn--outline:hover { background: var(--white); color: var(--blue); }

/* ============ COMO TRABAJAMOS ============ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.step {
  text-align: center;
  padding: 30px 20px;
  position: relative;
}
.step__num {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 18px;
}
.step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.step p { color: var(--text-soft); font-size: 0.93rem; }

/* ============ COLLAGE NOSOTROS ============ */
.about__collage {
  display: grid;
  grid-template-columns: repeat(3, 150px);
  grid-auto-rows: 150px;
  gap: 12px;
}
.about__collage-item { overflow: hidden; border-radius: var(--radius); }
.about__collage-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.about__collage-item:hover img { transform: scale(1.08); }

/* ============ COBERTURA ============ */
.coverage-provinces {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 60px;
}
.coverage-provinces__text h3 { font-size: 1.5rem; margin-bottom: 10px; }
.coverage-provinces__text p { color: var(--text-soft); margin-bottom: 18px; }
.coverage-provinces__map { display: flex; justify-content: center; }
.coverage-provinces__map img { width: auto; height: auto; max-width: 100%; max-height: 560px; }

.coverage { display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px; align-items: stretch; }
.coverage__map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-height: 360px; }
.coverage__info {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px;
}
.coverage__info h3 { font-size: 1.05rem; margin-bottom: 6px; margin-top: 20px; }
.coverage__info h3:first-child { margin-top: 0; }
.coverage__info p { color: var(--text-soft); margin-bottom: 10px; }
.coverage__schedule { font-weight: 600; color: var(--text); }
.coverage__info a { color: var(--blue-light); font-weight: 600; }
.coverage__info .btn { margin-top: 12px; }
.coverage__provinces {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
}
.coverage__provinces li {
  background: rgba(13,76,135,0.08);
  color: var(--blue);
  font-size: 0.84rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
}

/* ============ CONTACTO ============ */
.contact { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; }
.contact__form {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-row label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 6px; color: var(--text); }
.form-row input, .form-row select, .form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #E1E6EB;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color .2s;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--blue-light);
}
.form-row--half { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact__form .btn { margin-top: 6px; }

.contact__side h3 { font-size: 1.05rem; margin: 24px 0 10px; }
.contact__side h3:first-child { margin-top: 0; }
.contact__list li { list-style: none; margin-bottom: 8px; font-weight: 600; }
.contact__list a { color: var(--blue-light); }
.socials { display: flex; gap: 12px; }
.socials a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, transform .2s;
}
.socials a:hover { background: var(--orange); transform: translateY(-3px); }

/* ============ FAQ ============ */
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 4px 24px;
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 30px 18px 0;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1rem;
  color: var(--blue);
  position: relative;
  display: flex;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '';
  position: absolute;
  right: 6px;
  top: 50%;
  width: 11px;
  height: 11px;
  border-right: 3px solid var(--orange);
  border-bottom: 3px solid var(--orange);
  transform: translateY(-65%) rotate(45deg);
  transition: transform .25s ease;
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: translateY(-35%) rotate(225deg); }
.faq-item p { color: var(--text-soft); font-size: 0.94rem; padding-bottom: 20px; padding-right: 40px; }

/* ============ FOOTER ============ */
.footer { background: #0A3A66; color: rgba(255,255,255,0.85); padding: 56px 0 0; }
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer__brand img {
  height: 84px;
  margin-bottom: 14px;
}
.footer__brand p { font-size: 0.88rem; opacity: 0.8; max-width: 280px; }
.footer h4 { color: var(--white); font-size: 1rem; margin-bottom: 14px; }
.footer p { font-size: 0.9rem; margin-bottom: 8px; }
.footer a:hover { color: var(--orange-light); }
.footer .socials a { background: rgba(255,255,255,0.1); }
.footer .socials a:hover { background: var(--orange); }
.footer__bottom { text-align: center; padding: 20px 0; font-size: 0.82rem; opacity: 0.7; }

/* ============ WHATSAPP FLOTANTE ============ */
.whatsapp-float {
  position: fixed;
  bottom: 22px; right: 22px;
  width: 60px; height: 60px;
  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: 998;
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 8px 20px rgba(0,0,0,0.25), 0 0 0 0 rgba(37,211,102,0.5); }
  70% { box-shadow: 0 8px 20px rgba(0,0,0,0.25), 0 0 0 14px rgba(37,211,102,0); }
  100% { box-shadow: 0 8px 20px rgba(0,0,0,0.25), 0 0 0 0 rgba(37,211,102,0); }
}

/* ============ ANIMACIONES SCROLL ============ */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
  transition-delay: var(--delay, 0s);
}
.fade-up.is-visible { opacity: 1; transform: translateY(0); }

/* Reveal escalonado dentro de grillas (tarjetas/imágenes aparecen en secuencia) */
.cards-3 > .fade-up:nth-child(1) { --delay: 0s; }
.cards-3 > .fade-up:nth-child(2) { --delay: .12s; }
.cards-3 > .fade-up:nth-child(3) { --delay: .24s; }

.steps > .fade-up:nth-child(1) { --delay: 0s; }
.steps > .fade-up:nth-child(2) { --delay: .15s; }
.steps > .fade-up:nth-child(3) { --delay: .3s; }

/* Reveal de imágenes: aparecen con un leve zoom-out al entrar en pantalla */
.about__collage-item img {
  transform: scale(1.15);
  opacity: 0;
  transition: transform 1s ease, opacity .9s ease;
}
.about__collage.is-visible .about__collage-item img { transform: scale(1); opacity: 1; }

/* ============ RESPONSIVE ============ */
@media (max-width: 992px) {
  .about, .contact, .coverage { grid-template-columns: 1fr; }
  .about__collage { order: -1; }
  .cards-3, .steps { grid-template-columns: repeat(2, 1fr); }
  .stats__grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav { position: fixed; top: 70px; left: 0; right: 0; background: var(--white); flex-direction: column; align-items: flex-start; padding: 20px 24px; gap: 16px; box-shadow: 0 12px 20px rgba(0,0,0,0.08); transform: translateY(-120%); opacity: 0; transition: transform .3s ease, opacity .3s ease; pointer-events: none; }
  .nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .header__cta { display: none; }
  .header__burger { display: flex; }
  .header__burger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .header__burger.is-open span:nth-child(2) { opacity: 0; }
  .header__burger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .cards-3, .steps, .footer__inner { grid-template-columns: 1fr; }
  .about__collage { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 90px; width: 100%; margin: 0 auto; }
  .coverage-provinces { grid-template-columns: 1fr; text-align: center; }
  .coverage-provinces__text ul { justify-content: center; }

  .services-panels { flex-direction: column; height: auto; }
  .service-panel { flex: none; height: 240px; }
  .service-panel:hover { flex: none; }
  .service-panel__content { max-width: 100%; }
  .service-panel__content p,
  .service-panel__content ul,
  .service-panel__content .btn {
    opacity: 1;
    max-height: none;
    margin-bottom: 10px;
  }
  .service-panel__content h3 { margin-bottom: 10px; }
  .mv-grid { grid-template-columns: 1fr; gap: 20px; }
  .form-row--half { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: 1fr; gap: 20px; }
  .section { padding: 60px 0; }
  .hero { min-height: 100vh; }
  .hero__content { padding-top: 110px; }
}
