/* ══════════════════════════════════════
   RESET & BASE
══════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  { font-family: 'Barlow', sans-serif; color: #e8e8e8; background: #1a1a1a; }
img   { max-width: 100%; display: block; }
a     { text-decoration: none; color: inherit; }

/* Offset para scroll con navbar fija */
#compromiso,
#cobertura,
#contacto {
  scroll-margin-top: 64px;
}

/* ══════════════════════════════════════
   NAVBAR
══════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(22,22,22,0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.4s, box-shadow 0.4s;
}

.navbar.scrolled {
  background: rgba(22,22,22,0.97);
  box-shadow: 0 2px 24px rgba(0,0,0,0.6);
}

.navbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
  height: 72px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-left a {
  color: rgba(255,255,255,0.55);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-left a:hover { color: #F5A800; }

.nav-logo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav-logo img {
  height: 40px;
  width: auto;
  object-fit: contain;
  opacity: 0.92;
  transition: opacity 0.2s;
}

.nav-logo img:hover { opacity: 0.65; }

.nav-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(255,255,255,0.55);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-cta:hover { color: #F5A800; }

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  gap: 5px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: rgba(255,255,255,0.8);
  transition: all 0.3s;
}

.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px); }

/* Mobile drawer */
.nav-drawer {
  position: fixed;
  top: 72px; left: 0; right: 0;
  background: rgba(22,22,22,0.98);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  z-index: 99;
}

.nav-drawer.open { max-height: 280px; }

.nav-drawer a {
  display: block;
  color: rgba(255,255,255,0.65);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  padding: 18px 32px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: color 0.2s;
}

.nav-drawer a:hover { color: #F5A800; }

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("media/hero-banner.webp");
  background-size: cover;
  background-position: center 30%;
  transform: scale(1.04);
  transition: transform 9s ease-out;
}

.hero-bg.loaded { transform: scale(1); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.38) 60%, rgba(0,0,0,0.18) 100%),
    linear-gradient(to top,   rgba(0,0,0,0.55) 0%, transparent 40%);
}

/* Botón Servicio Urgente */
@keyframes ctaFadeIn {
  from { opacity: 0; top: 78px; }
  to   { opacity: 1; top: 90px; }
}

@keyframes ctaPulse {
  0%   { transform: scale(1);    opacity: 0.7; }
  100% { transform: scale(1.22); opacity: 0; }
}

.hero-cta {
  position: fixed;
  top: 90px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #F5A800;
  color: #0a0a0a;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 13px 36px;
  border-radius: 3px;
  white-space: nowrap;
  box-shadow: 0 6px 28px rgba(245,168,0,0.38);
  animation: ctaFadeIn 0.5s cubic-bezier(0.16,1,0.3,1) 0.1s both;
  transition: background 0.2s, box-shadow 0.2s;
}

.hero-cta::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 5px;
  border: 2px solid rgba(245,168,0,0.55);
  animation: ctaPulse 2.2s ease-out infinite;
}

.hero-cta:hover {
  background: #e09500;
  box-shadow: 0 8px 36px rgba(245,168,0,0.5);
}

/* Hero content layout */
.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  padding: 110px 28px 60px;
  display: flex;
  flex-direction: column;
  gap: 36px;
  text-align: center;
}

.hero-years {
  display: inline-block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #F5A800;
  background: rgba(245, 168, 0, 0.12);
  border: 1px solid rgba(245, 168, 0, 0.35);
  border-radius: 3px;
  padding: 4px 10px;
  margin-top: 0;
  margin-bottom: 8px;
}

.hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 400;
  color: #fff;
  line-height: 1.0;
  letter-spacing: 4px;
}

.hero h1 span { display: block; }

.hero h1 span:nth-child(1),
.hero h1 span:nth-child(3) {
  font-size: 20px;
  opacity: 0.75;
}

.hero h1 span:nth-child(2) {
  font-size: 44px;
  letter-spacing: 3px;
}

.hero-image {
  display: grid;
}

.hero-slide {
  grid-area: 1 / 1;
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.hero-slide.active {
  opacity: 1;
}

/* ══════════════════════════════════════
   CONTENEDOR INTERIOR (max-width)
══════════════════════════════════════ */
.seccion-inner {
  max-width: 1280px;
  margin: 0 auto;
}

/* ══════════════════════════════════════
   SECCIÓN — TRABAJO EFICAZ
══════════════════════════════════════ */
.seccion-intro {
  padding: 90px 28px 60px;
  background: #242424;
  text-align: left;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.seccion-intro-prelabel {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 8px;
}

.seccion-intro h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(36px, 5vw, 64px);
  letter-spacing: 5px;
  color: #fff;
  line-height: 0.95;
  margin-bottom: 14px;
}

.seccion-intro h2 em {
  color: #F5A800;
  font-style: normal;
}

.seccion-intro-desc {
  font-size: clamp(15px, 1.2vw, 15px);
  color: #fff;
  line-height: 1.65;
  font-weight: 400;
  margin-bottom: 0;
}

/* ══════════════════════════════════════
   SECCIÓN — TARJETAS
══════════════════════════════════════ */
.seccion-cards {
  background: #242424;
  padding: 0 28px 90px;
}

/* Wrapper + carrusel (siempre activo) */
.cards-wrapper {
  position: relative;
}

.cards-viewport {
  overflow: hidden;
}

.cards-track {
  display: flex;
  gap: 0;
  transition: transform 0.42s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Tarjeta */
.card {
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  cursor: default;
  flex: 0 0 100%;
}

/* Botones carrusel — siempre visibles */
.carousel-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 36px;
  height: 36px;
  background: rgba(0,0,0,0.55);
  border-radius: 50%;
  border: none;
  color: #ffffff;
  cursor: pointer;
  transition: color 0.2s;
  padding: 0;
  flex-shrink: 0;
}

.carousel-btn:hover { color: #F5A800; }
#prevBtn { left: 10px; }
#nextBtn { right: 10px; }

.card-img-wrap {
  position: relative;
  height: 320px;
  overflow: hidden;
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.card:hover .card-img-wrap img { transform: scale(1.06); }

.card-label {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0,0,0,0.68);
  backdrop-filter: blur(6px);
  color: rgba(255,255,255,0.88);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 9px;
  border-radius: 3px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.card:hover .card-label {
  background: rgba(245,168,0,0.92);
  color: #0a0a0a;
}


/* Texto inferior */
.seccion-empresa {
  margin-top: 48px;
  color: #fff;
  font-size: 15px;
  line-height: 1.85;
  max-width: 760px;
}

/* ══════════════════════════════════════
   DESKTOP
══════════════════════════════════════ */
@media (min-width: 768px) {
  .nav-cta   { display: flex; }
  .hamburger { display: none; }

  .hero-content {
    flex-direction: row;
    align-items: center;
    text-align: left;
    padding: 0 72px;
    min-height: 100svh;
    gap: 64px;
  }

  .hero-text { flex: 1; }

  .hero-image { flex: 0 0 44%; }

  .hero-slide {
    height: auto;
    object-fit: unset;
    border-radius: 10px;
  }

  .hero h1 span:nth-child(1),
  .hero h1 span:nth-child(3) { font-size: clamp(28px, 4vw, 52px); }

  .hero h1 span:nth-child(2) { font-size: clamp(56px, 9.5vw, 130px); letter-spacing: 6px; }

  .seccion-intro { padding: 120px 72px 80px; }
  .seccion-cards  { padding: 0 72px 120px; }

  .seccion-intro .seccion-inner {
    display: block;
  }

  .seccion-intro-desc {
    margin-top: 24px;
  }

  .seccion-intro-desc { font-size: clamp(15px, 1.2vw, 15px); }
}

/* ══════════════════════════════════════
   CARRUSEL MÓVIL
══════════════════════════════════════ */
@media (max-width: 767px) {

  .card-img-wrap { height: auto; aspect-ratio: 8 / 9; }

  .seccion-cards {
    padding-left: 0;
    padding-right: 0;
  }

  .seccion-empresa {
    padding-left: 28px;
    padding-right: 28px;
    font-size: 15px;
  }

  /* Hero: quitar padding lateral del contenedor, devolvérselo solo al texto */
  .hero-content {
    padding-left: 0;
    padding-right: 0;
    padding-top: 0;
    padding-bottom: 28px;
    gap: 20px;
  }

  .hero-text {
    padding-left: 28px;
    padding-right: 28px;
    padding-top: 190px;
  }

  .hero-image {
    display: grid;
    justify-items: center;
  }

  .hero-slide {
    width: 85%;
    height: auto;
    border-radius: 8px;
    border: none;
  }


  /* Cards: quitar padding lateral de la sección, devolvérselo solo al texto */
  .seccion-cards {
    padding-left: 0;
    padding-right: 0;
  }

  .seccion-empresa {
    padding-left: 28px;
    padding-right: 28px;
  }

}

/* ══════════════════════════════════════
   SPLIT LAYOUT (Trabajo Eficaz + Foto)
══════════════════════════════════════ */
.split-layout {
  display: block;
}

.split-right {
  line-height: 0;
}

.split-right-inner {
  position: relative;
  display: inline-block;
  width: 100%;
}

.split-right-img {
  width: 100%;
  height: 100svh;
  object-fit: cover;
  display: block;
}

.split-right-label {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 180px;
  pointer-events: none;
  display: block;
}

@media (min-width: 768px) {
  .split-layout {
    display: grid;
    grid-template-columns: 5fr 2fr;
    align-items: stretch;
  }

  .split-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 36px;
    padding-bottom: 36px;
    background: #242424;
  }

  .split-right-img {
    width: 100%;
    height: auto;
    display: block;
  }

  .split-left .seccion-intro {
    padding-top: 0;
    padding-bottom: 20px;
    border-top: none;
  }

  .split-left .seccion-cards {
    padding-top: 0;
    padding-bottom: 0;
  }

  .split-left .card-img-wrap {
    height: auto;
    aspect-ratio: 8 / 9;
  }

  .split-left .cards-wrapper {
    width: 94%;
  }

  .split-left .cards-track {
    gap: 10px;
  }

  .split-left .card {
    flex: 0 0 calc(40% - 4px);
  }

  .split-left .seccion-empresa {
    margin-top: 16px;
    margin-bottom: 0;
    padding-left: 0;
    padding-right: 0;
  }
}

/* ══════════════════════════════════════
   SECCIÓN — CTA BANNER
══════════════════════════════════════ */
.seccion-cta {
  background: #F5A800;
  padding: 60px 28px;
}

.seccion-cta .seccion-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  row-gap: 8px;
  column-gap: 40px;
}

.cta-titulo {
  width: 100%;
}

.cta-br { display: none; }

@media (min-width: 768px) {
  .cta-br { display: block; }
}

.cta-titulo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(28px, 3.5vw, 42px);
  color: #0a0a0a;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.cta-texto {
  font-family: 'Barlow', sans-serif;
  font-size: clamp(15px, 1.6vw, 18px);
  color: #0a0a0a;
  line-height: 1.6;
  max-width: 600px;
}

.cta-texto strong {
  font-weight: 700;
}

.cta-botones {
  display: flex;
  gap: 14px;
  flex-shrink: 0;
}

.cta-btn {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 3px;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.cta-btn--filled {
  background: #0a0a0a;
  color: #F5A800;
  border: 2px solid #0a0a0a;
}

.cta-btn--filled:hover {
  background: #222;
  border-color: #222;
}

.cta-btn--outline {
  background: transparent;
  color: #0a0a0a;
  border: 2px solid #0a0a0a;
}

.cta-btn--outline:hover {
  background: rgba(0,0,0,0.1);
}

@media (max-width: 767px) {
  .seccion-cta .seccion-inner {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .cta-texto {
    text-align: justify;
  }


  .cta-botones {
    flex-direction: column;
    width: 100%;
  }

  .cta-btn {
    text-align: center;
  }
}

/* ══════════════════════════════════════
   SECCIÓN — FORMULARIO
══════════════════════════════════════ */
.seccion-contacto {
  background: #1a1a1a;
  padding: 100px 28px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.contacto-header {
  text-align: center;
  margin-bottom: 60px;
}

.contacto-titulo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(42px, 6vw, 80px);
  letter-spacing: 6px;
  color: #fff;
  line-height: 1;
  margin-bottom: 24px;
}

.contacto-divider {
  width: 120px;
  height: 4px;
  background: #F5A800;
  margin: 0 auto 28px;
}

.contacto-desc {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(13px, 1.4vw, 16px);
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

.contacto-form {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
}

.form-group input,
.form-group textarea {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  padding: 14px 18px;
  color: #e8e8e8;
  font-family: 'Barlow', sans-serif;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
  resize: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255,255,255,0.2);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #F5A800;
}

.form-btn {
  align-self: flex-start;
  background: #F5A800;
  color: #0a0a0a;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 15px 40px;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.2s;
}

.form-btn:hover { background: #e09500; }
.form-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.form-status {
  font-size: 14px;
  padding: 10px 14px;
  border-radius: 4px;
  display: none;
}
.form-status.success {
  display: block;
  background: rgba(80, 200, 100, 0.12);
  color: #6fcf8a;
  border: 1px solid rgba(80, 200, 100, 0.25);
}
.form-status.error {
  display: block;
  background: rgba(220, 80, 80, 0.12);
  color: #e07070;
  border: 1px solid rgba(220, 80, 80, 0.25);
}

@media (max-width: 767px) {
  .seccion-contacto { padding: 72px 28px; }
  .form-row { grid-template-columns: 1fr; }
  .form-btn { align-self: stretch; text-align: center; }
}

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
.footer {
  background: #111;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 28px 48px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
}

.footer-brand img {
  height: 36px;
  width: auto;
  opacity: 0.8;
  margin-bottom: 18px;
}

.footer-brand p {
  font-size: 14px;
  color: #fff;
  line-height: 1.8;
}

.footer-heading {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #F5A800;
  margin-bottom: 18px;
}

.footer-links,
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a,
.footer-contact a,
.footer-contact p {
  font-size: 14px;
  color: #fff;
  transition: color 0.2s;
  line-height: 1;
}

.footer-links a:hover,
.footer-contact a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  text-align: center;
  padding: 20px 28px;
}

.footer-bottom p {
  font-size: 12px;
  color: #fff;
  letter-spacing: 0.5px;
}

.footer-bottom a {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-bottom a:hover { color: #F5A800; }

@media (max-width: 767px) {
  .footer-inner {
    flex-direction: column;
    gap: 36px;
    padding: 52px 28px 36px;
  }

  .footer-brand p {
    font-size: 16px;
  }

  .footer-heading {
    font-size: 13px;
  }

  .footer-links a,
  .footer-contact a,
  .footer-contact p {
    font-size: 16px;
  }

  .footer-bottom p {
    font-size: 14px;
  }
}

@keyframes ctaFadeInMobile {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Navbar móvil ── */
@media (max-width: 767px) {
  .hero-cta {
    top: 120px;
    animation: ctaFadeInMobile 0.5s cubic-bezier(0.16,1,0.3,1) 0.1s both;
  }

  .navbar-inner {
    display: block;
    padding: 0;
    height: auto;
    position: relative;
  }

  .nav-cta { display: none; }

  .nav-logo {
    display: block;
    width: 100%;
  }

  .nav-logo img {
    width: 100%;
    height: auto;
    display: block;
  }

  .nav-right {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    gap: 0;
  }
}

@media (max-width: 1023px) {
  .nav-left { display: none; }
}

/* ══════════════════════════════════════
   WHATSAPP FLOTANTE
══════════════════════════════════════ */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 99;
  width: 56px;
  height: 56px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  transition: background 0.2s, transform 0.2s;
}

.whatsapp-float:hover {
  background: #1ebe5d;
  transform: scale(1.08);
}

/* Hero CTA: siempre visible */
.hero-cta { display: inline-flex; }
