/* ==========================================================================
   FD CLEAN S.R.L. — sections.css
   Estilos por sección del home
   ========================================================================== */

/* --------------------------------------------------------------------------
   2. HERO — video protagonista
   -------------------------------------------------------------------------- */

.hero-video-section {
  padding: 96px 32px 24px 32px;
  background: var(--fd-white);
  position: relative;
}

.hero-video-container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
}

.hero-video-wrapper {
  position: relative;
  width: 100%;
  height: calc(100vh - 220px);
  min-height: 540px;
  max-height: 820px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(10, 37, 64, 0.18);
  background: var(--fd-blue-deep);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(10, 37, 64, 0) 0%,
    rgba(10, 37, 64, 0) 40%,
    rgba(10, 37, 64, 0.55) 75%,
    rgba(10, 37, 64, 0.85) 100%
  );
}

.hero-video-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 56px 64px 56px;
  color: var(--fd-white);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 900px;
}

.hero-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 60px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--fd-white);
  margin: 0 0 32px 0;
}

.hero-accent {
  color: var(--fd-celeste-pastel);
  font-style: italic;
  font-weight: 500;
}

.hero-subtitle {
  font-size: 18px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
  max-width: 620px;
  margin: 0 0 36px 0;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  background: var(--fd-white);
  color: var(--fd-blue-deep);
  border-radius: 100px;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  background: transparent;
  color: var(--fd-white);
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  border-radius: 100px;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--fd-white);
}

@media (max-width: 1024px) {
  .hero-video-section {
    padding: 80px 20px 16px 20px;
  }
  .hero-video-wrapper {
    height: calc(100vh - 180px);
    min-height: 480px;
    border-radius: 16px;
  }
  .hero-video-content {
    padding: 40px 40px 40px;
  }
  .hero-title {
    font-size: 42px;
    margin-bottom: 28px;
  }
}

@media (max-width: 640px) {
  .hero-video-section {
    padding: 60px 12px 12px 12px;
  }
  .hero-video-wrapper {
    height: calc(100vh - 140px);
    min-height: 480px;
    max-height: 720px;
    border-radius: 14px;
  }
  .hero-video-content {
    padding: 28px 24px 28px;
    max-width: 100%;
  }
  .hero-title {
    font-size: 28px;
    line-height: 1.05;
    margin-bottom: 20px;
  }
  .hero-actions {
    width: 100%;
    flex-direction: column;
    gap: 10px;
  }
  .btn-hero-primary,
  .btn-hero-secondary {
    width: 100%;
    padding: 14px 24px;
    font-size: 14px;
  }
}

/* --------------------------------------------------------------------------
   3. GRID SERVICIOS INTRO
   -------------------------------------------------------------------------- */

.services-intro__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gap);
}

.services-intro__lead {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
  padding-right: 24px;
}

.services-intro__lead .h2-section {
  font-size: 48px;
  color: var(--fd-blue-deep);
}

.services-intro__lead p {
  color: var(--fd-gray-med);
}

.services-intro__lead .btn {
  margin-top: 8px;
}

/* --------------------------------------------------------------------------
   4. SERVICIOS DETALLADOS
   -------------------------------------------------------------------------- */

.services-detail__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px var(--grid-gap);
}

/* --------------------------------------------------------------------------
   5. STRIP DE LOGOS (justo debajo del hero)
   -------------------------------------------------------------------------- */

.hero-clients-strip {
  padding: 40px 0 56px;
  background: var(--fd-white);
  overflow: hidden;
}

.clients-strip-label {
  text-align: center;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fd-gray-med);
  margin: 0 0 32px 0;
}

.hero-clients-strip .clients-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
}

.hero-clients-strip .clients-track {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 72px;
  width: max-content;
  animation: hero-strip-scroll 45s linear infinite;
}

.hero-clients-strip .clients-carousel:hover .clients-track {
  animation-play-state: paused;
}

.hero-clients-strip .client-logo {
  flex: 0 0 auto;
  width: 140px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: grayscale(1);
  opacity: 0.55;
  transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

.hero-clients-strip .client-logo:hover {
  filter: grayscale(0);
  opacity: 1;
  transform: scale(1.08);
}

.hero-clients-strip .client-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Fix específicos por logo con padding transparente extra */
.hero-clients-strip .client-logo.logo-fix-kongo img { transform: scale(1.4); }
.hero-clients-strip .client-logo.logo-fix-la-alameda img { transform: scale(1.05); }
.hero-clients-strip .client-logo.logo-fix-di-tella img { transform: scale(1.1); }
.hero-clients-strip .client-logo.logo-fix-tostado img { transform: scale(2.2); }
.hero-clients-strip .client-logo.logo-fix-dexter img { transform: scale(1.7); }

/* Logos blancos (RGB ~255): sobre el fondo blanco del strip son invisibles.
   Los invertimos para que se lean. Si algún día llegan en versión oscura,
   borrar esta regla y quitar la clase logo-white del HTML. */
.hero-clients-strip .client-logo.logo-white img { filter: invert(1); }

@keyframes hero-strip-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (max-width: 768px) {
  .hero-clients-strip {
    padding: 32px 0 40px;
  }
  .clients-strip-label {
    font-size: 11px;
    margin-bottom: 24px;
  }
  .hero-clients-strip .clients-track {
    gap: 48px;
  }
  .hero-clients-strip .client-logo {
    width: 110px;
    height: 42px;
  }
}

/* --------------------------------------------------------------------------
   6. CTA BANNER STATEMENT
   -------------------------------------------------------------------------- */

.cta-banner__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
}

.cta-banner__title {
  margin-bottom: 24px;
}

.cta-banner__body {
  max-width: 520px;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 40px;
}

.cta-banner__media {
  border-radius: var(--r-image);
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: rgba(255, 255, 255, 0.08);
}

.cta-banner__media img {
  width: 100%;
  height: 100%;
}

/* --------------------------------------------------------------------------
   7. PROCESO 3 PASOS
   -------------------------------------------------------------------------- */

.process__step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
}

.process__step + .process__step {
  margin-top: 120px;
}

/* Paso par: imagen a la derecha (orden invertido) */
.process__step:nth-child(even) .process__media {
  order: 2;
}

.process__media {
  border-radius: var(--r-image);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--fd-bg-soft);
}

.process__media img {
  width: 100%;
  height: 100%;
}

.process__number {
  font-size: 120px;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--fd-blue-electric);
  margin-bottom: 24px;
}

.process__title {
  font-size: 40px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--fd-blue-deep);
  margin-bottom: 20px;
}

.process__body {
  max-width: 460px;
  color: var(--fd-gray-med);
  margin-bottom: 28px;
}

/* --------------------------------------------------------------------------
   8. TESTIMONIOS
   -------------------------------------------------------------------------- */

.testimonials__marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.testimonials__track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.testimonials__track .marquee__group {
  display: flex;
  flex: none;
  align-items: stretch;
  gap: var(--grid-gap);
  padding-right: var(--grid-gap);
}

.testimonials__track .card-testimonial,
.testimonials__track .testimonial-card {
  flex: none;
  width: 380px;
}

/* CTA "Ver todas las reseñas en Google" debajo del carrusel */
.testimonials-cta {
  display: flex;
  justify-content: center;
  margin-top: 56px;
}

.testimonials-cta .btn {
  gap: 10px;
}

/* --------------------------------------------------------------------------
   9. GARANTÍAS Y DIFERENCIALES
   -------------------------------------------------------------------------- */

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

.warranty-section .section-header.center {
  max-width: 780px;
  margin: 0 auto 48px;
}

.warranty-section .section-header.center h2 {
  font-size: 44px;
  line-height: 1.05;
}

.warranty-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.warranty-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px;
  background: var(--fd-white);
  border-radius: 16px;
  border: 1px solid var(--fd-gray-line);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.warranty-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(10, 37, 64, 0.08);
  border-color: transparent;
}

.warranty-item-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #E8F4FA 0%, #B8DCEB 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s ease;
}

.warranty-item:hover .warranty-item-icon {
  transform: rotate(-6deg) scale(1.05);
}

.warranty-item-icon i {
  font-size: 26px;
  color: var(--fd-blue-electric);
}

.warranty-item-text h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--fd-blue-deep);
  margin: 0 0 6px 0;
  line-height: 1.25;
}

.warranty-item-text p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--fd-gray-med);
  margin: 0;
}

@media (max-width: 768px) {
  .warranty-section { padding: 56px 0; }
  .warranty-section .section-header.center h2 { font-size: 28px; }
  .warranty-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .warranty-item {
    flex-direction: column;
    padding: 16px;
    gap: 12px;
  }
  .warranty-item-icon {
    width: 40px;
    height: 40px;
  }
  .warranty-item-icon i {
    font-size: 22px;
  }
  .warranty-item-text h3 {
    font-size: 15px;
  }
  .warranty-item-text p {
    font-size: 13px;
  }
}

/* --------------------------------------------------------------------------
   10. HISTORIA PREVIEW
   -------------------------------------------------------------------------- */

.history__grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  align-items: center;
  gap: 80px;
}

.history__media {
  border-radius: var(--r-image);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--fd-bg-soft);
}

.history__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.history__content .eyebrow {
  margin-bottom: 20px;
}

.history__content .h2-section {
  font-size: 56px;
  color: var(--fd-blue-deep);
  margin-bottom: 32px;
}

.history__quote {
  font-size: 28px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--fd-blue-deep);
  padding-left: 28px;
  border-left: 3px solid var(--fd-celeste-pastel);
  margin-bottom: 32px;
}

.history__content p {
  color: var(--fd-gray-med);
}

.history__content p + p {
  margin-top: 18px;
}

.history__content .link-arrow {
  margin-top: 32px;
}

/* --------------------------------------------------------------------------
   11. FAQ + CONTACTO
   -------------------------------------------------------------------------- */

.faq__grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  align-items: start;
  gap: 80px;
}

.faq__list {
  border-top: 1px solid var(--fd-gray-line);
}

.faq__item {
  border-bottom: 1px solid var(--fd-gray-line);
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 26px 0;
  text-align: left;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.35;
  color: var(--fd-blue-deep);
  transition: color var(--dur) var(--ease-out);
}

.faq__question:hover {
  color: var(--fd-blue-electric);
}

.faq__icon {
  position: relative;
  flex: none;
  width: 22px;
  height: 22px;
}

.faq__icon::before,
.faq__icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform var(--dur) var(--ease-out), opacity var(--dur) var(--ease-out);
}

.faq__icon::before {
  width: 16px;
  height: 1.5px;
}

.faq__icon::after {
  width: 1.5px;
  height: 16px;
}

.faq__item.is-open .faq__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.faq__item.is-open .faq__question {
  color: var(--fd-blue-electric);
}

.faq__answer {
  overflow: hidden;
  height: 0;
}

.faq__answer p {
  padding-bottom: 26px;
  max-width: 620px;
  color: var(--fd-gray-med);
}

/* Bloque de contacto */
.contact-block {
  position: sticky;
  top: 104px;
  padding: 48px;
  background: var(--fd-bg-soft);
  border-radius: var(--r-card);
}

.contact-block h3 {
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--fd-blue-deep);
  margin-bottom: 14px;
}

.contact-block > p {
  color: var(--fd-gray-med);
  margin-bottom: 36px;
}

.contact-block__list {
  margin-bottom: 36px;
}

.contact-block__list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-block: 16px;
  border-top: 1px solid var(--fd-gray-line);
}

.contact-block__list li:last-child {
  border-bottom: 1px solid var(--fd-gray-line);
}

.contact-block__list i {
  font-size: 22px;
  color: var(--fd-blue-electric);
  line-height: 1.4;
}

.contact-block__label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fd-gray-med);
  margin-bottom: 2px;
}

.contact-block__value {
  color: var(--fd-blue-deep);
  font-weight: 500;
  transition: color var(--dur) var(--ease-out);
}

a.contact-block__value:hover {
  color: var(--fd-blue-electric);
}

.contact-block .btn {
  width: 100%;
}

/* --------------------------------------------------------------------------
   Páginas internas — hero simple (servicios.html / nosotros.html)
   -------------------------------------------------------------------------- */

.page-hero {
  background: var(--fd-blue-electric);
  color: var(--fd-white);
  padding-top: 200px;
  padding-bottom: 120px;
}

.page-hero .eyebrow {
  margin-bottom: 24px;
}

.page-hero h1 {
  font-size: 96px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 28px;
  max-width: 14ch;
}

.page-hero p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.88);
}

.page-placeholder {
  padding-block: 120px;
  text-align: center;
}

.page-placeholder p {
  color: var(--fd-gray-med);
}

/* --------------------------------------------------------------------------
   Página servicios — layout con nav lateral sticky
   -------------------------------------------------------------------------- */

.services-page {
  padding-block: 96px 120px;
}

.services-page__layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 72px;
  align-items: start;
}

/* Nav lateral (desktop) */
.services-nav {
  position: sticky;
  top: 104px;
}

.services-nav__title {
  margin-bottom: 20px;
}

.services-nav__list li + li {
  margin-top: 2px;
}

.services-nav__list a {
  display: block;
  padding: 12px 0 12px 20px;
  border-left: 2px solid var(--fd-gray-line);
  color: var(--fd-gray-med);
  font-weight: 500;
  transition: color var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out);
}

.services-nav__list a:hover {
  color: var(--fd-blue-deep);
}

.services-nav__list a.is-active {
  color: var(--fd-blue-electric);
  border-left-color: var(--fd-blue-electric);
}

/* Dropdown mobile — oculto en desktop */
.services-select {
  display: none;
}

/* Secciones por categoría */
.service-category {
  scroll-margin-top: 96px;
}

.service-category + .service-category {
  margin-top: 96px;
  padding-top: 96px;
  border-top: 1px solid var(--fd-gray-line);
}

.service-category__eyebrow {
  margin-bottom: 18px;
}

.service-category__title {
  font-size: 40px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--fd-blue-deep);
  margin-bottom: 20px;
  max-width: 20ch;
}

.service-category__intro {
  max-width: 640px;
  color: var(--fd-gray-med);
  margin-bottom: 48px;
}

/* Card de servicio completa (imagen + texto) */
.service-full + .service-full {
  margin-top: 48px;
}

.service-full {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 48px;
  align-items: start;
  padding: 32px;
  background: var(--fd-white);
  border: 1px solid var(--fd-gray-line);
  border-radius: var(--r-card);
}

.service-full__media {
  position: sticky;
  top: 104px;
  border-radius: var(--r-image);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--fd-bg-soft);
}

.service-full__media img {
  width: 100%;
  height: 100%;
}

.service-full__content .tag-filled {
  margin-bottom: 18px;
}

.service-full__title {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--fd-blue-deep);
  margin-bottom: 20px;
}

.service-full__body p {
  color: var(--fd-gray-med);
}

.service-full__body p + p {
  margin-top: 16px;
}

.service-full__body ul {
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.service-full__body li {
  position: relative;
  padding-left: 28px;
  color: var(--fd-gray-med);
}

.service-full__body li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--fd-celeste-pastel);
  transform: rotate(45deg);
}

.service-full__body li strong {
  color: var(--fd-blue-deep);
  font-weight: 500;
}

.service-full__cta {
  margin-top: 28px;
}

@media (max-width: 1024px) {
  .services-page__layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* En tablet/mobile el nav lateral se reemplaza por el dropdown */
  .services-nav {
    display: none;
  }

  .services-select {
    display: block;
    position: sticky;
    top: 88px;
    z-index: 40;
  }

  .services-select select {
    width: 100%;
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 500;
    color: var(--fd-blue-deep);
    background: var(--fd-white);
    border: 1.5px solid var(--fd-gray-line);
    border-radius: var(--r-pill);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%232554F0' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    box-shadow: var(--shadow-card);
    cursor: pointer;
  }

  .service-full {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .service-full__media {
    position: static;
  }
}

@media (max-width: 768px) {
  .services-page {
    padding-block: 56px 72px;
  }

  .service-category + .service-category {
    margin-top: 64px;
    padding-top: 64px;
  }

  .service-category__title {
    font-size: 30px;
  }

  .service-full {
    padding: 20px;
  }

  .service-full__title {
    font-size: 24px;
  }
}

/* --------------------------------------------------------------------------
   Mobile
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .services-intro__grid,
  .services-detail__grid,
  .guarantees__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-intro__lead {
    grid-column: 1 / -1;
    padding-right: 0;
  }
}

@media (max-width: 768px) {
  /* Hero */
  .hero {
    padding-top: 120px;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-bottom: 56px;
  }

  .hero__media {
    aspect-ratio: 4 / 3;
    border-radius: 20px;
  }

  .hero__actions .btn {
    flex: 1;
    min-width: 160px;
  }

  .hero__stats {
    grid-template-columns: 1fr;
    padding-block: 0;
  }

  .hero__stat {
    padding: 28px 0;
    border-left: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  }

  .hero__stat:last-child {
    border-bottom: none;
    padding-bottom: 48px;
  }

  .hero__stat-value {
    font-size: 44px;
    margin-bottom: 6px;
  }

  /* Grids a una columna */
  .services-intro__grid,
  .services-detail__grid,
  .guarantees__grid {
    grid-template-columns: 1fr;
  }

  .services-intro__lead .h2-section {
    font-size: 36px;
  }

  .services-detail__grid {
    gap: 40px;
  }

  /* CTA banner */
  .cta-banner__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Proceso */
  .process__step,
  .process__step:nth-child(even) .process__media {
    grid-template-columns: 1fr;
    gap: 32px;
    order: 0;
  }

  .process__step + .process__step {
    margin-top: 72px;
  }

  .process__number {
    font-size: 72px;
    margin-bottom: 16px;
  }

  .process__title {
    font-size: 30px;
  }

  /* Testimonios */
  .testimonials__track .card-testimonial {
    width: 300px;
  }

  /* Historia */
  .history__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .history__media {
    aspect-ratio: 4 / 3;
  }

  .history__content .h2-section {
    font-size: 36px;
    margin-bottom: 24px;
  }

  .history__quote {
    font-size: 21px;
    padding-left: 20px;
  }

  /* FAQ + contacto */
  .faq__grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .faq__question {
    font-size: 17px;
    padding: 22px 0;
  }

  .contact-block {
    position: static;
    padding: 32px 24px;
  }

  .contact-block h3 {
    font-size: 26px;
  }

  /* Páginas internas */
  .page-hero {
    padding-top: 140px;
    padding-bottom: 72px;
  }

  .page-hero h1 {
    font-size: 44px;
  }
}

/* --------------------------------------------------------------------------
   Placeholder de imagen pendiente (estructura flat de assets)
   -------------------------------------------------------------------------- */

.img-pending {
  width: 100%;
  height: 100%;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  background: var(--fd-bg-soft);
  color: var(--fd-gray-med);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Slider antes / después
   -------------------------------------------------------------------------- */

.before-after-section {
  padding: 120px 0;
  background: var(--fd-white);
  position: relative;
  overflow: hidden;
}

.section-header.center {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}

.section-header.center .eyebrow {
  margin-bottom: 20px;
}

.section-header.center h2 {
  font-size: 72px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--fd-blue-deep);
}

.section-header.center .section-intro {
  margin-top: 16px;
  color: var(--fd-gray-med);
  font-size: 18px;
  line-height: 1.6;
}

.before-after-slider {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  aspect-ratio: 3/2;
  border-radius: 24px;
  overflow: hidden;
  cursor: ew-resize;
  user-select: none;
  box-shadow: 0 24px 64px rgba(10, 37, 64, 0.18);
  background: var(--fd-bg-soft);
}

.slider-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  display: block;
}

.slider-before { z-index: 1; }

.slider-after {
  z-index: 2;
  clip-path: inset(0 50% 0 0);
}

.slider-handle {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
  background: var(--fd-white);
  z-index: 4;
  transform: translateX(-50%);
  cursor: ew-resize;
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.35);
}

.handle-grip {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: var(--fd-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
  cursor: ew-resize;
  transition: transform 0.3s ease-out;
}

.slider-handle:hover .handle-grip,
.slider-handle:active .handle-grip {
  transform: translate(-50%, -50%) scale(1.08);
}

.handle-grip svg {
  width: 26px;
  height: 26px;
  color: var(--fd-blue-electric);
}

.slider-label {
  position: absolute;
  top: 24px;
  padding: 8px 18px;
  background: rgba(10, 37, 64, 0.85);
  color: var(--fd-white);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 100px;
  z-index: 5;
  backdrop-filter: blur(8px);
  pointer-events: none;
}

.slider-label-before { left: 24px; }
.slider-label-after { right: 24px; }

@media (max-width: 768px) {
  .before-after-section { padding: 64px 0; }

  .section-header.center h2 { font-size: 40px; }

  .before-after-slider {
    aspect-ratio: 4/5;
    border-radius: 16px;
  }
  .handle-grip { width: 48px; height: 48px; }
  .handle-grip svg { width: 20px; height: 20px; }
  .slider-label {
    top: 16px;
    font-size: 10px;
    padding: 6px 12px;
  }
  .slider-label-before { left: 16px; }
  .slider-label-after { right: 16px; }
}

/* --------------------------------------------------------------------------
   Bloques de multimedia por servicio (servicios.html)
   -------------------------------------------------------------------------- */

.service-media {
  margin: 32px 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.service-video {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(10, 37, 64, 0.12);
}

.service-video video {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: var(--fd-bg-soft);
}

.service-video-caption {
  padding: 20px 24px;
  background: var(--fd-white);
  border-top: 1px solid var(--fd-gray-line);
  display: flex;
  align-items: center;
  gap: 16px;
}

.service-video-caption p {
  margin: 0;
  color: var(--fd-gray-med);
  font-size: 15px;
  line-height: 1.5;
}

.service-video-caption .tag-filled { flex: none; }

.service-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.service-gallery img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 16px;
  display: block;
  transition: transform 0.4s ease-out;
}

.service-gallery img:hover { transform: scale(1.02); }

/* Galería portrait — para fotos verticales (ej: vehículos) */
.service-gallery.portrait-gallery img {
  aspect-ratio: 3/4;
}

.slider-inline {
  max-width: 100%;
  aspect-ratio: 3/2;
}

.service-media-caption {
  color: var(--fd-gray-med);
  font-size: 15px;
  line-height: 1.5;
  font-style: italic;
}

@media (max-width: 768px) {
  .service-gallery {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  /* Las verticales sí mantienen 2 columnas en mobile: aprovechan el ancho */
  .service-gallery.portrait-gallery {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .service-video-caption {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* ==========================================================================
   V6 — Cards de servicio con "Ver más" collapsible (servicios.html)
   ========================================================================== */

.service-card {
  padding: 48px;
  border: 1px solid var(--fd-gray-line);
  border-radius: 24px;
  margin-bottom: 32px;
  transition: box-shadow 0.4s ease, border-color 0.4s ease;
  background: var(--fd-white);
  scroll-margin-top: 96px;
}

.service-card.expanded {
  box-shadow: 0 16px 48px rgba(10, 37, 64, 0.08);
  border-color: transparent;
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* Imagen principal a la izquierda (sticky para que acompañe el texto largo).
   Burbuja circular con contorno celeste — misma identidad que el logo. */
.service-image {
  position: sticky;
  top: 104px;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  border-radius: 50%;
  overflow: hidden;
  /* El halo externo va por box-shadow y no por ::before: overflow:hidden
     recorta los pseudoelementos, pero no las sombras exteriores. */
  box-shadow: 0 12px 40px rgba(37, 84, 240, 0.12),
              0 0 0 6px rgba(184, 220, 235, 0.22);
  border: 3px solid rgba(184, 220, 235, 0.6);
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  display: block;
  transition: transform 0.6s ease;
}

.service-card:hover .service-image {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(37, 84, 240, 0.18),
              0 0 0 8px rgba(184, 220, 235, 0.32);
  border-color: rgba(184, 220, 235, 0.9);
}

.service-card:hover .service-image img {
  transform: scale(1.08);
}

.service-image .img-pending {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border-radius: 0;
}

/* Columna derecha */
.service-content {
  display: flex;
  flex-direction: column;
}

.service-content .tag-filled {
  align-self: flex-start;
  margin-bottom: 16px;
}

.service-content h3 {
  margin: 0 0 20px 0;
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--fd-blue-deep);
  line-height: 1.15;
}

/* Body truncado con fade */
.service-body {
  position: relative;
  max-height: 340px;
  overflow: hidden;
  transition: max-height 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 20px;
}

.service-body p {
  margin: 0 0 12px 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--fd-gray-med);
}

.service-body ul,
.service-body ol {
  margin: 0 0 12px 0;
  padding-left: 0;
  list-style: none;
}

.service-body li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  color: var(--fd-gray-med);
  line-height: 1.6;
}

.service-body li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  background: var(--fd-celeste-pastel);
  transform: rotate(45deg);
}

.service-body li strong {
  color: var(--fd-blue-deep);
  font-weight: 500;
}

/* Gradient fade en el borde inferior cuando está colapsado */
.service-body::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--fd-white));
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.service-card.expanded .service-body {
  max-height: 5000px;
}

.service-card.expanded .service-body::after {
  opacity: 0;
}

/* Card sin nada para expandir (texto corto + extended vacío): sin fade ni tope */
.service-card.no-expand .service-body {
  max-height: none;
}

.service-card.no-expand .service-body::after {
  display: none;
}

/* Fila de acciones: Ver más + Consultar */
.service-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* Botón Ver más */
.btn-ver-mas {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: transparent;
  border: 1.5px solid var(--fd-blue-electric);
  color: var(--fd-blue-electric);
  border-radius: 100px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-ver-mas:hover {
  background: var(--fd-blue-electric);
  color: var(--fd-white);
}

.btn-ver-mas .btn-icon {
  transition: transform 0.4s ease;
}

.service-card.expanded .btn-ver-mas .btn-icon {
  transform: rotate(180deg);
}

/* Contenido extendido — oculto por default */
.service-extended {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              margin-top 0.5s ease;
  margin-top: 0;
}

.service-card.expanded .service-extended {
  max-height: 5000px;
  margin-top: 48px;
}

/* Slider antes/después con imágenes portrait: se encuadran en horizontal
   para que el bloque no quede altísimo. El crop mantiene el centro (piso
   + zona media), que es donde se ve la diferencia antes/después. */
.before-after-slider.slider-vertical {
  aspect-ratio: 16 / 10;
  max-width: 720px;
  max-height: 480px;
  margin: 0 auto;
}

.before-after-slider.slider-vertical .slider-img {
  object-position: center center;
}

/* Media extended: video + imagen a la derecha */
.service-extended-media.video-plus-image {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.service-extended-media.video-plus-image .service-video {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(10, 37, 64, 0.12);
}

.service-extended-media.video-plus-image .extended-side-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  min-height: 100%;
}

/* Video solo, a todo el ancho del contenido expandido (16/9, caption debajo) */
.service-extended-media.video-full .service-video {
  width: 100%;
  max-width: none;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(10, 37, 64, 0.12);
}

.service-extended-media.video-full .service-video video {
  aspect-ratio: 16 / 9;
  width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  .service-card { padding: 24px; }

  .service-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .service-image {
    position: static;
    max-width: 240px;
  }

  .service-content h3 { font-size: 26px; }

  /* En mobile mostramos todo el texto sin truncar */
  .service-body { max-height: none; }
  .service-body::after { display: none; }

  .before-after-slider.slider-vertical {
    aspect-ratio: 4 / 3;
    max-width: 100%;
    max-height: 380px;
  }

  .service-extended-media.video-plus-image {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .service-extended-media.video-plus-image .extended-side-image {
    aspect-ratio: 4/3;
    min-height: auto;
  }
}

/* ==========================================================================
   V7 — Sección "Cómo trabajamos" (3 cards con badge de íconos, sin imágenes)
   ========================================================================== */

.how-we-work-section {
  padding: 120px 0;
  background: var(--fd-white);
}

.how-we-work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: 72px;
}

.process-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 32px;
  border-radius: 20px;
  transition: background 0.4s ease, transform 0.4s ease;
}

.process-card:hover {
  background: var(--fd-bg-soft);
  transform: translateY(-4px);
}

/* Badge del ícono — mismo tratamiento que warranty-icon-wrapper */
.process-icon-wrapper {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, #E8F4FA 0%, #B8DCEB 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 12px 32px rgba(37, 84, 240, 0.15);
  margin-bottom: 28px;
  transition: transform 0.4s ease-out;
}

.process-icon-wrapper::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(37, 84, 240, 0.08), transparent);
  z-index: -1;
}

.process-icon-wrapper .main-icon {
  font-size: 40px;
  line-height: 1;
  color: var(--fd-blue-electric);
  transition: color 0.4s var(--ease-out);
}

.process-icon-wrapper .sparkle {
  position: absolute;
  fill: var(--fd-blue-electric);
  opacity: 0.6;
  pointer-events: none;
}
.process-icon-wrapper .sparkle-tl { top: -8px; left: -4px; width: 12px; height: 12px; }
.process-icon-wrapper .sparkle-tr { top: 4px; right: -10px; width: 8px; height: 8px; }
.process-icon-wrapper .sparkle-br { bottom: -6px; right: 12px; width: 10px; height: 10px; }
.process-icon-wrapper .sparkle-bl { bottom: 8px; left: -8px; width: 6px; height: 6px; }

.process-card:hover .process-icon-wrapper {
  transform: scale(1.08) rotate(-3deg);
}

.process-card:hover .process-icon-wrapper .main-icon {
  color: var(--fd-blue-deep);
}

/* Número del paso */
.process-number {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fd-blue-electric);
  margin-bottom: 12px;
}

.process-card h3 {
  margin: 0 0 16px 0;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--fd-blue-deep);
}

.process-card p {
  margin: 0 0 20px 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--fd-gray-med);
}

.process-caption {
  display: inline-block;
  padding: 6px 14px;
  background: var(--fd-bg-soft);
  color: var(--fd-blue-deep);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.3s ease, color 0.3s ease;
}

.process-card:hover .process-caption {
  background: var(--fd-celeste-pastel);
}

@media (max-width: 1024px) {
  .how-we-work-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .how-we-work-section { padding: 64px 0; }
  .how-we-work-grid { margin-top: 48px; }
  .process-card { padding: 24px; }
  .process-icon-wrapper { width: 72px; height: 72px; }
  .process-icon-wrapper .main-icon { font-size: 32px; }
  .process-card h3 { font-size: 24px; }
}

/* Compactar "Cómo trabajamos" a altura de viewport (FIX V19) */
.how-we-work-section { padding: 80px 0; }
.how-we-work-section .section-header.center { max-width: 720px; margin: 0 auto 48px; }
.how-we-work-section .section-header.center h2 { font-size: 44px; line-height: 1.05; }
.how-we-work-grid { gap: 32px; margin-top: 48px; }
.process-card { padding: 24px; }
.process-icon-wrapper { width: 72px; height: 72px; margin-bottom: 20px; }
.process-icon-wrapper .main-icon { font-size: 48px; }
.process-card h3 { font-size: 22px; margin-bottom: 12px; }
.process-card p { font-size: 15px; margin-bottom: 16px; }
@media (max-width: 768px) {
  .how-we-work-section { padding: 56px 0; }
  .how-we-work-section .section-header.center h2 { font-size: 28px; }
  /* 3 pasos en una sola línea para reducir el scroll vertical */
  .how-we-work-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 32px; }
  .process-card { padding: 14px 8px; align-items: center; text-align: center; }
  .process-icon-wrapper { width: 52px; height: 52px; margin-bottom: 12px; }
  .process-icon-wrapper .main-icon { font-size: 24px; }
  .process-icon-wrapper .sparkle { display: none; }
  .process-number { font-size: 10px; margin-bottom: 6px; }
  .process-card h3 { font-size: 15px; margin-bottom: 8px; line-height: 1.15; }
  .process-card p { font-size: 12px; line-height: 1.4; margin-bottom: 12px; }
  .process-caption { font-size: 10px; padding: 4px 8px; }
}

/* ==========================================================================
   V9 — Subpágina Nosotros (secciones editoriales de historia)
   ========================================================================== */

.about-section {
  padding: 100px 0;
  background: var(--fd-white);
}
.about-section-alt {
  background: var(--fd-bg-soft);
}

/* Lead intro */
.about-intro-header {
  max-width: 720px;
  margin: 0 auto 72px;
  text-align: center;
}
.about-lead {
  font-size: 20px;
  font-weight: 400;
  color: var(--fd-gray-med);
  line-height: 1.5;
  font-style: italic;
}

/* Split 60/40 texto + imagen */
.about-split {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 80px;
  align-items: start;
}
.about-text .eyebrow {
  display: block;
  margin-bottom: 16px;
}
.about-text h2 {
  font-size: 48px;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--fd-blue-deep);
  margin: 0 0 32px 0;
}
.about-text p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--fd-gray-med);
  margin: 0 0 20px 0;
}
.about-image img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: center top;
  border-radius: 20px;
  display: block;
  position: sticky;
  top: 120px;
}

/* Pull quotes */
.pull-quote {
  margin: 0 0 32px 0;
  padding: 24px 0 24px 32px;
  border-left: 3px solid var(--fd-blue-electric);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.015em;
  color: var(--fd-blue-deep);
  font-style: normal;
}

/* Contenido centrado sin imagen */
.about-centered {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.about-centered .eyebrow {
  display: inline-block;
  margin-bottom: 16px;
}
.about-centered h2 {
  font-size: 48px;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--fd-blue-deep);
  margin: 0 0 32px 0;
}
.about-centered p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--fd-gray-med);
  margin: 0 0 20px 0;
  text-align: left;
}

/* Ecosystem grid */
.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 72px;
}
.ecosystem-card {
  padding: 32px;
  background: var(--fd-white);
  border: 1px solid var(--fd-gray-line);
  border-radius: 20px;
  transition: box-shadow 0.4s ease, transform 0.4s ease;
  text-align: left;
}
.ecosystem-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(10, 37, 64, 0.08);
}
.ecosystem-icon-wrapper {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #E8F4FA 0%, #B8DCEB 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 8px 24px rgba(37, 84, 240, 0.12);
  margin-bottom: 24px;
}
.ecosystem-icon-wrapper .main-icon {
  font-size: 32px;
  color: var(--fd-blue-electric);
}
.ecosystem-icon-wrapper .sparkle {
  position: absolute;
  fill: var(--fd-blue-electric);
  opacity: 0.6;
}
.ecosystem-icon-wrapper .sparkle-tl { top: -6px; left: -2px; width: 10px; height: 10px; }
.ecosystem-icon-wrapper .sparkle-tr { top: 4px; right: -8px; width: 8px; height: 8px; }
.ecosystem-card h3 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--fd-blue-deep);
  margin: 0 0 12px 0;
  line-height: 1.2;
}
.ecosystem-card p {
  font-size: 15px;
  line-height: 1.5;
  color: var(--fd-gray-med);
  margin: 0;
}

/* Pull quote gigante */
.about-quote-section {
  padding: 120px 0;
}
.about-quote-wrapper {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.about-quote-wrapper .eyebrow {
  display: inline-block;
  margin-bottom: 32px;
}
.pull-quote-large {
  font-size: 48px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--fd-blue-deep);
  margin: 0 0 40px 0;
  padding: 0;
  border: none;
}
.about-quote-body {
  font-size: 18px;
  line-height: 1.65;
  color: var(--fd-gray-med);
  max-width: 640px;
  margin: 0 auto;
}

/* CTA banner */
.cta-banner-section {
  padding: 120px 0;
  background: var(--fd-blue-electric);
}
.cta-banner-content {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.cta-banner-content h2 {
  color: var(--fd-white);
  font-size: 56px;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0 0 24px 0;
}
.cta-banner-content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 18px;
  line-height: 1.6;
  margin: 0 0 40px 0;
}
.cta-banner-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 1024px) {
  .ecosystem-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-split {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .about-image img {
    position: static;
    aspect-ratio: 3/4;
    object-position: center top;
  }
}

@media (max-width: 768px) {
  .about-section { padding: 64px 0; }
  .about-text h2,
  .about-centered h2 { font-size: 32px; }
  .pull-quote { font-size: 20px; padding-left: 20px; }
  .pull-quote-large { font-size: 32px; }
  .ecosystem-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .cta-banner-content h2 { font-size: 36px; }
  .cta-banner-actions { flex-direction: column; }
  .cta-banner-actions a { width: 100%; }
}

/* ==========================================================================
   Testimonios — header compacto + cards simplificadas + avatares rotativos
   ========================================================================== */

.testimonials-header {
  max-width: 780px;
  margin-bottom: 56px;
}

/* Especificidad extra para ganarle a .section-header.center h2 (72px) */
.section-header.center.testimonials-header h2 {
  font-size: 56px;
  line-height: 1.05;
}

.testimonial-card {
  background: var(--fd-bg-soft);
  border-radius: 20px;
  padding: 32px;
  border: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.testimonial-body {
  font-size: 16px;
  line-height: 1.55;
  color: var(--fd-blue-deep);
  margin: 0;
  font-weight: 400;
  flex: 1;
}

.testimonial-footer {
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: none;
  padding-top: 0;
  margin-top: auto;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  color: var(--fd-blue-deep);
  flex-shrink: 0;
}

/* Colores rotativos de avatar */
.avatar-color-1 { background: #B8DCEB; }
.avatar-color-2 { background: #DBE8FC; }
.avatar-color-3 { background: #E5EBF2; }
.avatar-color-4 { background: #C9E4D3; }
.avatar-color-5 { background: #FCE4D0; }
.avatar-color-6 { background: #E8DEF0; }

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.testimonial-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--fd-blue-deep);
  line-height: 1.3;
}

.testimonial-meta {
  font-size: 13px;
  color: var(--fd-gray-med);
  line-height: 1.3;
}

.testimonial-meta a {
  color: var(--fd-blue-electric);
  font-weight: 500;
  text-decoration: none;
}

.testimonial-meta a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .section-header.center.testimonials-header h2 { font-size: 32px; }
  .testimonial-card { padding: 24px; }
}


/* =====================================================================
   RATING ESTRELLAS EN TESTIMONIOS (FIX 3)
   ===================================================================== */
.rating-stars {
  color: #FFB800;
  font-size: 13px;
  margin-right: 6px;
}


/* =====================================================================
   LUGARES DONDE BRINDAMOS SERVICIOS (FIX 4)
   ===================================================================== */
.places-section {
  padding: 100px 0;
  /* Mismo fondo que .coverage-map-section ("Presentes en toda Buenos Aires") */
  background: var(--fd-white);
}
.places-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.place-item {
  background: var(--fd-white);
  /* La sección ahora es blanca: las cards necesitan el borde para
     despegarse del fondo, igual que .service-card. */
  border: 1px solid var(--fd-gray-line);
  padding: 32px 24px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.place-item i {
  font-size: 40px;
  color: var(--fd-blue-electric);
}
.place-item span {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--fd-blue-deep);
}
.place-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(10, 37, 64, 0.08);
  border-color: transparent;
}
@media (max-width: 768px) {
  .places-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 36px; }
  .place-item { padding: 16px 8px; gap: 10px; border-radius: 12px; }
  .place-item i { font-size: 26px; }
  .place-item span { font-size: 12px; line-height: 1.2; }
}


/* =====================================================================
   COBERTURA — MAPA GOOGLE (split 50/50 — FIX V16)
   ===================================================================== */
.coverage-map-section {
  padding: 100px 0;
  background: var(--fd-white);
}
.coverage-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.coverage-text .eyebrow {
  display: block;
  margin-bottom: 16px;
}
.coverage-text h2 {
  font-size: 48px;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--fd-blue-deep);
  margin: 0 0 24px 0;
}
.coverage-text > p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--fd-gray-med);
  margin: 0 0 40px 0;
  max-width: 480px;
}
.coverage-stats {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.coverage-stat {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--fd-gray-line);
}
.coverage-stat:last-child { border-bottom: none; }
.coverage-stat-value {
  font-family: 'DM Sans', sans-serif;
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--fd-blue-electric);
  min-width: 100px;
}
.coverage-stat-label {
  font-size: 16px;
  color: var(--fd-gray-med);
}
.coverage-map-wrapper {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(10, 37, 64, 0.12);
  aspect-ratio: 4/5;
  position: relative;
}
.coverage-map-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
@media (max-width: 1024px) {
  .coverage-split { grid-template-columns: 1fr; gap: 48px; }
  .coverage-map-wrapper { aspect-ratio: 4/3; }
}
@media (max-width: 768px) {
  .coverage-text h2 { font-size: 32px; }
}


/* =====================================================================
   LÍNEAS FACHADA inclinadas gris-azuladas (FIX V21)
   ===================================================================== */
.section-textured {
  position: relative;
  overflow: hidden;
}

.section-textured::before {
  content: '';
  position: absolute;
  inset: -20% -10%;
  background-image: repeating-linear-gradient(
    92deg,
    transparent 0px,
    transparent 120px,
    rgba(148, 163, 184, 0.09) 120px,
    rgba(148, 163, 184, 0.09) 121px,
    transparent 121px,
    transparent 240px,
    rgba(148, 163, 184, 0.06) 240px,
    rgba(148, 163, 184, 0.06) 241px,
    transparent 241px,
    transparent 360px
  );
  transform: rotate(-3deg);
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(
    ellipse 90% 70% at center,
    black 30%,
    transparent 90%
  );
  -webkit-mask-image: radial-gradient(
    ellipse 90% 70% at center,
    black 30%,
    transparent 90%
  );
}

.section-textured > .container,
.section-textured > * {
  position: relative;
  z-index: 1;
}


/* =====================================================================
   BURBUJAS FLOTANTES DECORATIVAS (FIX 4)
   ===================================================================== */
#cta-banner .container,
#nosotros .container {
  position: relative;
}
.floating-bubbles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.floating-bubble {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.6), rgba(184,220,235,0.2));
  border: 1px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(2px);
}
.bubble-a { width: 120px; height: 120px; top: 15%; right: 8%; animation: float-slow 12s ease-in-out infinite; }
.bubble-b { width: 80px; height: 80px; top: 55%; right: 25%; animation: float-slow 15s ease-in-out infinite reverse; animation-delay: 2s; }
.bubble-c { width: 60px; height: 60px; top: 30%; right: 20%; animation: float-slow 10s ease-in-out infinite; animation-delay: 4s; opacity: 0.6; }

.floating-bubbles.bubbles-light .floating-bubble {
  background: radial-gradient(circle at 30% 30%, rgba(184,220,235,0.4), rgba(37,84,240,0.05));
  border: 1px solid rgba(184,220,235,0.2);
}

@keyframes float-slow {
  0%, 100% { transform: translateY(0) translateX(0); }
  33% { transform: translateY(-20px) translateX(10px); }
  66% { transform: translateY(10px) translateX(-15px); }
}

@media (max-width: 768px) {
  .floating-bubble { transform: scale(0.6); }
}

/* Contenido por encima de las burbujas */
.cta-banner__grid { position: relative; z-index: 1; }
.history__grid { position: relative; z-index: 1; }


/* =====================================================================
   POPUP ABONOS MENSUALES (FIX 5)
   ===================================================================== */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 37, 64, 0.55);
  backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.popup-overlay.is-open {
  opacity: 1;
  visibility: visible;
}
.popup-card {
  background: var(--fd-white);
  border-radius: 24px;
  padding: 48px 40px 36px;
  max-width: 480px;
  width: 100%;
  position: relative;
  box-shadow: 0 24px 64px rgba(10, 37, 64, 0.2);
  transform: translateY(20px) scale(0.96);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.popup-overlay.is-open .popup-card {
  transform: translateY(0) scale(1);
}
.popup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--fd-bg-soft);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--fd-blue-deep);
  transition: background 0.3s ease;
}
.popup-close:hover {
  background: var(--fd-celeste-pastel);
}
.popup-badge {
  display: inline-block;
  background: var(--fd-celeste-pastel);
  color: var(--fd-blue-deep);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}
.popup-card h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--fd-blue-deep);
  margin: 0 0 16px 0;
}
.popup-card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--fd-gray-med);
  margin: 0 0 28px 0;
}
.popup-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}
.popup-actions a {
  text-align: center;
  padding: 14px 24px;
  font-size: 15px;
}
.popup-dismiss {
  background: transparent;
  border: none;
  color: var(--fd-gray-med);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 10px;
  text-decoration: underline;
  transition: color 0.3s ease;
}
.popup-dismiss:hover {
  color: var(--fd-blue-electric);
}
.popup-note {
  font-size: 12px !important;
  color: var(--fd-gray-med) !important;
  text-align: center;
  margin: 0 !important;
}
@media (max-width: 480px) {
  .popup-card { padding: 40px 24px 28px; }
  .popup-card h3 { font-size: 22px; }
}


/* =====================================================================
   INSTAGRAM — MOCKUP CELULAR (FIX V15)
   ===================================================================== */
.instagram-section {
  padding: 120px 0;
  background: var(--fd-white);
  position: relative;
  overflow: hidden;
}

/* Gradient sutil de fondo para dar profundidad */
.instagram-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(184, 220, 235, 0.25), transparent 60%);
  pointer-events: none;
}

.instagram-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.instagram-mockup-link {
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.instagram-mockup-link:hover {
  transform: translateY(-8px) rotate(-1deg);
}

.instagram-mockup {
  max-width: 420px;
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 32px 64px rgba(10, 37, 64, 0.18));
  animation: mockup-float 6s ease-in-out infinite;
}

@keyframes mockup-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.instagram-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.instagram-content .eyebrow {
  margin-bottom: 16px;
}

.instagram-content h2 {
  font-family: 'DM Sans', sans-serif;
  font-size: 56px;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--fd-blue-deep);
  margin: 0 0 24px 0;
}

.instagram-content p {
  font-size: 18px;
  line-height: 1.6;
  color: var(--fd-gray-med);
  margin: 0 0 40px 0;
  max-width: 480px;
}

.instagram-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  background: linear-gradient(135deg, #F58529, #DD2A7B, #8134AF, #515BD4);
  color: var(--fd-white);
  border-radius: 100px;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 12px 32px rgba(221, 42, 123, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.instagram-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(221, 42, 123, 0.45);
}

.instagram-cta svg {
  flex-shrink: 0;
}

/* Mobile */
@media (max-width: 1024px) {
  .instagram-wrapper {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  .instagram-content {
    align-items: center;
  }
  .instagram-content p {
    text-align: center;
  }
  .instagram-mockup {
    max-width: 320px;
  }
}

@media (max-width: 768px) {
  .instagram-section { padding: 80px 0; }
  .instagram-content h2 { font-size: 36px; }
  .instagram-content p { font-size: 16px; margin-bottom: 32px; }
  .instagram-mockup { max-width: 260px; }
}


/* =====================================================================
   CTA "VER TODOS LOS SERVICIOS" bajo el grid (FIX V16)
   ===================================================================== */
.services-grid-cta {
  display: flex;
  justify-content: center;
  margin-top: 56px;
}


/* =====================================================================
   BURBUJAS LATERALES sutiles en "Lo que realmente hacemos" (FIX V20)
   ===================================================================== */
.bubbles-lateral {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.bubble-lateral {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(255, 255, 255, 0.8),
    rgba(184, 220, 235, 0.35)
  );
  border: 1px solid rgba(184, 220, 235, 0.4);
  backdrop-filter: blur(2px);
  box-shadow:
    inset 0 0 20px rgba(255, 255, 255, 0.4),
    0 4px 16px rgba(37, 84, 240, 0.06);
}

.bubble-lat-1 { width: 80px; height: 80px; top: 12%; left: 6%;  animation: bubble-drift 14s ease-in-out infinite; }
.bubble-lat-2 { width: 50px; height: 50px; top: 28%; left: 14%; animation: bubble-drift 11s ease-in-out infinite reverse; animation-delay: 2s; }
.bubble-lat-3 { width: 64px; height: 64px; top: 18%; right: 8%; animation: bubble-drift 13s ease-in-out infinite; animation-delay: 1s; }
.bubble-lat-4 { width: 36px; height: 36px; top: 32%; right: 16%; animation: bubble-drift 9s ease-in-out infinite reverse; animation-delay: 3s; }
.bubble-lat-5 { width: 42px; height: 42px; top: 8%; right: 22%; animation: bubble-drift 15s ease-in-out infinite; animation-delay: 4s; opacity: 0.7; }

@keyframes bubble-drift {
  0%, 100% { transform: translateY(0) translateX(0); }
  33% { transform: translateY(-24px) translateX(12px); }
  66% { transform: translateY(12px) translateX(-18px); }
}

.before-after-slider {
  position: relative;
  z-index: 1;
}

@media (max-width: 1024px) {
  .bubble-lateral { transform: scale(0.7); }
}

@media (max-width: 768px) {
  .bubbles-lateral { display: none; }
}


/* =====================================================================
   POPUP ABONO MENSUAL 5 MIN (V22) — variante split imagen + contenido
   ===================================================================== */
.popup-card-abono {
  max-width: 720px;
  padding: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.popup-card-abono .popup-image {
  height: 100%;
  min-height: 380px;
  overflow: hidden;
}

.popup-card-abono .popup-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.popup-card-abono .popup-content {
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.popup-card-abono .popup-close {
  z-index: 2;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
}

.popup-card-abono .popup-badge {
  background: var(--fd-celeste-pastel);
  color: var(--fd-blue-deep);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
  display: inline-block;
  align-self: flex-start;
}

.popup-card-abono h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--fd-blue-deep);
  margin: 0 0 16px 0;
}

.popup-card-abono p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--fd-gray-med);
  margin: 0 0 24px 0;
}

.popup-card-abono .btn-with-icon {
  padding: 14px 24px;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
}

@media (max-width: 720px) {
  .popup-card-abono {
    grid-template-columns: 1fr;
    max-width: 420px;
  }
  .popup-card-abono .popup-image {
    min-height: 200px;
    max-height: 200px;
  }
  .popup-card-abono .popup-content {
    padding: 32px 24px;
  }
  .popup-card-abono h3 {
    font-size: 22px;
  }
}


/* ==========================================================================
   VIDEO PREVIEW → POPUP (dentro de service-extended)
   Botón con thumbnail + play badge; abre <video> en overlay .popup-overlay
   ========================================================================== */

.video-preview {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(10, 37, 64, 0.12);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.video-preview:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 48px rgba(10, 37, 64, 0.18);
}

.video-preview:focus-visible {
  outline: 3px solid var(--fd-blue);
  outline-offset: 3px;
}

.video-preview__thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background: var(--fd-bg-soft);
}

.video-preview__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,37,64,0.05) 0%, rgba(10,37,64,0.45) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: background 0.35s ease;
}

.video-preview:hover .video-preview__overlay {
  background: linear-gradient(180deg, rgba(10,37,64,0.12) 0%, rgba(10,37,64,0.55) 100%);
}

.video-preview__play {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--fd-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(10, 37, 64, 0.25);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.video-preview:hover .video-preview__play {
  transform: scale(1.08);
}

.video-preview__play svg {
  width: 28px;
  height: 28px;
  margin-left: 4px; /* óptico: centra el triángulo */
}

.video-preview__label {
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow: 0 1px 3px rgba(10, 37, 64, 0.4);
}

.video-preview__caption {
  padding: 18px 22px;
  background: var(--fd-white);
  border-top: 1px solid var(--fd-gray-line);
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
}

.video-preview__caption p {
  margin: 0;
  color: var(--fd-gray-med);
  font-size: 14px;
  line-height: 1.5;
}

.video-preview__caption .tag-filled { flex: none; }

/* Caja contenedora dentro del extended: la mantenemos angosta para no
   pasarse del ancho del contenido y quedar acorde al UI del servicio. */
.service-extended-media.video-preview-block {
  max-width: 640px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .video-preview__play { width: 60px; height: 60px; }
  .video-preview__play svg { width: 22px; height: 22px; }
  .video-preview__label { font-size: 11px; }
  .video-preview__caption {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 14px 18px;
  }
}

/* ---- Popup del video ---- */
.video-popup {
  padding: 16px; /* menos padding para maximizar el player */
}

.video-popup .popup-card {
  background: #000;
  padding: 0;
  max-width: min(960px, 92vw);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.video-popup .popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.95);
  z-index: 2;
}

.video-popup__stage {
  position: relative;
  background: #000;
  aspect-ratio: 16 / 9;
}

.video-popup__stage video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}

@media (max-width: 640px) {
  .video-popup .popup-card { max-width: 100%; }
}
