/* =============================================
   OOH Advisor — Circuito Digital Premium Marbella
   ============================================= */

:root {
  --gradient-primary: linear-gradient(45deg, #0575e6, #021b79);
  --color-secondary: #0d6efd;
  --color-accent: rgb(230, 27, 114);
  --color-accent-hover: rgb(200, 20, 98);
  --color-bg: #ffffff;
  --color-bg-gray: #f8f9fa;
  --color-text: #333333;
  --color-text-muted: #6c757d;
  --color-text-light: #ffffff;
  --color-border: #e9ecef;
  --font-family: 'poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --header-height: 72px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: var(--color-secondary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-accent);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  min-width: 0;
}

.container--narrow {
  max-width: 800px;
}

/* ---- Buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  border: 2px solid transparent;
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

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

.btn--accent:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(230, 27, 114, 0.35);
}

.btn--secondary {
  background: var(--color-secondary);
  color: #fff;
  border-color: var(--color-secondary);
}

.btn--secondary:hover {
  background: #0b5ed7;
  border-color: #0b5ed7;
  color: #fff;
}

.btn--outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}

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

.btn--sm {
  padding: 10px 20px;
  font-size: 14px;
}

.btn--lg {
  padding: 16px 32px;
  font-size: 16px;
}

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

/* ---- Section labels & titles ---- */

.section-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.section-label--light {
  color: rgba(255, 255, 255, 0.85);
}

.section__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
  margin-bottom: 16px;
}

.section__title--light {
  color: #fff;
}

.section__text {
  font-size: 17px;
  color: var(--color-text-muted);
  max-width: 680px;
  margin-bottom: 40px;
}

.section__text--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section__text--light {
  color: rgba(255, 255, 255, 0.85);
}

.section {
  padding: 80px 0;
}

.section--gray {
  background: var(--color-bg-gray);
}

.section--gradient {
  background: var(--gradient-primary);
  overflow-x: hidden;
}

/* ---- Header ---- */

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  background: var(--gradient-primary);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
}

.header__logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  flex-shrink: 0;
}

.header__logo:hover {
  color: #fff;
  opacity: 0.9;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.header__nav a {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.header__nav a:hover {
  color: #fff;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.header__phone {
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
}

.header__phone:hover {
  color: #fff;
  opacity: 0.85;
}

.header__logo-slot {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.header-logo {
  display: block;
  height: 27px;
  width: auto;
  max-width: 249px;
}

.header__mobile-cta {
  display: none !important;
}

/* ---- Hero ---- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--gradient-primary);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 60px 24px;
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero__media {
  position: relative;
  z-index: 1;
  width: 502px;
  height: 590px;
  max-width: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, #0a3d8f 0%, #021b79 100%);
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 20px;
}

.hero__subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 16px;
  font-weight: 500;
}

.hero__text {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 32px;
  max-width: 560px;
}

.hero__text strong {
  color: #fff;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.stat__value {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.stat__label {
  display: block;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 4px;
}

/* ---- Feature cards ---- */

.cards-grid {
  display: grid;
  gap: 24px;
}

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

.feature-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px;
  transition: box-shadow var(--transition), transform var(--transition);
}

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

.feature-card__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 110, 253, 0.1);
  color: var(--color-secondary);
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}

.feature-card__title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-text);
}

.feature-card__text {
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* Strategy carousel (mobile swipe) */

.strategy-carousel__track {
  min-width: 0;
}

/* ---- Example CTA band ---- */

.example-cta {
  background: var(--gradient-primary);
  padding: 64px 0;
}

.example-cta__inner {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
  min-width: 0;
}

.example-cta__content {
  min-width: 0;
  width: 100%;
}

.example-cta__text {
  margin: 0 0 28px;
  max-width: 720px;
  font-size: 17px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.9);
}

.example-cta__text strong {
  color: #fff;
}

.example-cta__stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
}

.example-cta__stats li {
  padding: 16px 12px;
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
}

.example-cta__stat-value {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.example-cta__stat-label {
  display: block;
  margin-top: 4px;
  font-size: 0.9375rem;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.85);
}

.example-cta__action {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

/* ---- Use cases (Capabilities-style) ---- */

.use-cases {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: stretch;
  min-width: 0;
}

.use-cases__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.use-case-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px 24px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

.use-case-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  border-color: rgba(13, 110, 253, 0.25);
}

.use-case-card__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(230, 27, 114, 0.1);
  color: var(--color-accent);
  font-size: 18px;
  line-height: 1;
  font-weight: 700;
}

.use-case-card__title {
  margin: 0 0 6px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.3;
}

.use-case-card__text {
  margin: 0;
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.65;
}

.use-cases__media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
  min-width: 0;
  height: 100%;
  min-height: 420px;
}

.use-cases__photo {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-border);
  box-shadow: var(--shadow);
  min-height: 0;
  height: 100%;
}

.use-cases__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.use-cases__photo:hover img {
  transform: scale(1.04);
}

/* ---- Coverage (legacy map styles kept for safety) ---- */

.coverage-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: stretch;
  min-width: 0;
}

.coverage-layout__content {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.location-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.location-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: var(--color-bg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  transition: border-color var(--transition);
}

.location-item:hover {
  border-color: var(--color-secondary);
}

.location-item__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(230, 27, 114, 0.1);
  color: var(--color-accent);
  border-radius: 50%;
}

.location-item strong {
  display: block;
  font-size: 15px;
  color: var(--color-text);
  margin-bottom: 2px;
}

.location-item span {
  font-size: 13px;
  color: var(--color-text-muted);
}

.coverage-layout__map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 100%;
  min-height: 320px;
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

#coverageMap {
  width: 100%;
  height: 100%;
  min-height: 320px;
  max-width: 100%;
  z-index: 0;
}

#coverageMap .leaflet-container {
  width: 100% !important;
  max-width: 100%;
  font-family: var(--font-family);
}

/* Marcadores Leaflet */

.map-marker-wrap {
  background: transparent !important;
  border: none !important;
}

.map-marker {
  display: block;
  width: 28px;
  height: 28px;
  background: #0575e6;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.leaflet-popup-content-wrapper {
  border-radius: var(--radius-sm);
  font-family: var(--font-family);
  font-size: 14px;
  box-shadow: var(--shadow);
}

.leaflet-popup-content {
  margin: 12px 14px;
  line-height: 1.45;
  min-width: 200px;
}

.map-popup__image {
  display: block;
  width: 100%;
  max-width: 240px;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
  margin: 0 0 10px;
}

.map-popup__title {
  margin: 0 0 4px;
}

.map-popup__desc {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 13px;
}

.leaflet-popup-content strong {
  color: var(--color-text);
}

/* ---- Support cards (estilo OOH Advisor) ---- */

.support-cards {
  margin-top: 16px;
}

.support-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
  display: block;
  height: 100%;
  margin-bottom: 1rem;
  box-shadow: none;
  perspective: 1200px;
}

.support-card__flip {
  height: 100%;
}

.support-card__inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.65s cubic-bezier(0.4, 0.2, 0.2, 1);
}

.support-card__front,
.support-card__back {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.support-card__front {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 0 8px 17px rgba(0, 0, 0, 0.06);
  transition: box-shadow var(--transition);
}

.support-card__back {
  position: absolute;
  inset: 0;
  transform: rotateY(180deg);
  border-radius: 8px;
  overflow: hidden;
  background: #e9ecef;
  box-shadow: 0 31px 31px rgba(0, 0, 0, 0.09);
}

.support-card__map-sticker {
  position: absolute;
  left: 50%;
  z-index: 500;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: calc(100% - 32px);
  padding: 11px 20px;
  background: #fff;
  color: #1b1b1f;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.18),
    0 2px 6px rgba(0, 0, 0, 0.08);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  letter-spacing: 0.01em;
  text-align: center;
  pointer-events: auto;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.support-card__map-sticker--top {
  top: 18px;
}

.support-card__map-sticker--bottom {
  bottom: 18px;
}

.support-card__map-sticker--bottom:hover,
.support-card__map-sticker--bottom:focus-visible {
  transform: translateX(-50%) scale(1.03);
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.22),
    0 4px 10px rgba(0, 0, 0, 0.1);
  color: #1b1b1f;
  text-decoration: none;
}

.support-card__map {
  width: 100%;
  height: 100%;
  min-height: 100%;
}

.support-card__map .leaflet-container {
  width: 100%;
  height: 100%;
  font-family: var(--font-family);
}

@media (hover: hover) and (pointer: fine) {
  .support-card:hover .support-card__inner {
    transform: rotateY(180deg);
  }

  .support-card:hover .support-card__front {
    box-shadow: 0 31px 31px rgba(0, 0, 0, 0.09);
  }
}

.support-card.is-flipped .support-card__inner {
  transform: rotateY(180deg);
}

.support-card.is-flipped .support-card__front {
  box-shadow: 0 31px 31px rgba(0, 0, 0, 0.09);
}

.support-card__image {
  position: relative;
  padding: 0.5rem;
}

.support-card__image-link {
  overflow: hidden;
  display: block;
  width: 100%;
  border-radius: 8px;
}

.support-card__img {
  width: 100%;
  height: 225px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
  background: #e9ecef;
}

.support-card:hover .support-card__img {
  transform: scale(1.03);
}

.support-card__body {
  padding: 0 1rem 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.support-card__title {
  margin: 0.75rem 0 0;
  font-size: 18px;
  font-weight: 500;
  line-height: 28px;
  color: #1b1b1f;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 56px;
}

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

.support-card__title a:hover {
  text-decoration: underline;
}

.support-card__desc {
  margin: 8px 0 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: #63636b;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.support-card__divider {
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  margin: 1rem 0;
}

.support-card__divider--bottom {
  margin-top: auto;
}

.support-card__specs {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.support-card__spec {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}

.support-card__spec dt {
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: #63636b;
  flex-shrink: 0;
}

.support-card__spec dt::after {
  content: ":";
}

.support-card__spec dd {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: #1b1b1f;
  text-align: right;
}

.support-card__price {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 28px;
  color: #1b1b1f;
}

.support-card__price span {
  color: #1b1b1f;
  font-size: 18px;
  font-weight: 700;
}

/* ---- Circuit block ---- */

.circuit-block {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
  min-width: 0;
}

.circuit-block__content,
.circuit-block__pricing {
  min-width: 0;
  max-width: 100%;
}

.circuit-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.circuit-stat {
  text-align: center;
  padding: 20px 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.circuit-stat__value {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.circuit-stat__label {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 4px;
}

.circuit-block__pricing {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  box-sizing: border-box;
}

.circuit-pricing__label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.circuit-pricing__value {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 700;
  color: var(--color-bg);
  line-height: 1.15;
  margin-bottom: 8px;
  text-shadow: 0 2px 20px rgba(230, 27, 114, 0.4);
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.circuit-pricing__value span {
  font-size: 0.45em;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.circuit-pricing__note {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 24px;
}

/* ---- Gallery ---- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.gallery-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--color-border);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

/* ---- Logo gallery ---- */

.logo-carousel {
  --logo-peek: 52px;
  position: relative;
  width: 100%;
  padding: 0 36px;
}

.logo-carousel__viewport {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.logo-carousel__viewport::before,
.logo-carousel__viewport::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: var(--logo-peek);
  z-index: 1;
  pointer-events: none;
}

.logo-carousel__viewport::before {
  left: 0;
  background: linear-gradient(90deg, #f8f9fa 0%, rgba(248, 249, 250, 0) 100%);
}

.logo-carousel__viewport::after {
  right: 0;
  background: linear-gradient(270deg, #f8f9fa 0%, rgba(248, 249, 250, 0) 100%);
}

.logo-carousel__track {
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
  transition: transform 0.35s ease;
  will-change: transform;
}

.logo-gallery .logo-carousel .gallery-item {
  flex: 0 0 calc((100% - 48px) / 4);
  margin: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 11 / 6;
  background: #fff;
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.logo-gallery .logo-carousel .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: none;
}

.logo-carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  transition: background var(--transition), color var(--transition);
}

.logo-carousel__btn:hover {
  background: #fff;
  color: var(--color-accent);
}

.logo-carousel__btn--prev {
  left: 0;
}

.logo-carousel__btn--next {
  right: 0;
}

/* ---- FAQ ---- */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--color-bg);
}

.faq-item__question {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background var(--transition);
}

.faq-item__question::-webkit-details-marker {
  display: none;
}

.faq-item__question::after {
  content: '+';
  margin-left: auto;
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--color-secondary);
  transition: transform var(--transition);
  flex-shrink: 0;
}

.faq-item[open] .faq-item__question::after {
  transform: rotate(45deg);
}

.faq-item__question:hover {
  background: var(--color-bg-gray);
}

.faq-item__number {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-accent);
  flex-shrink: 0;
}

.faq-item__answer {
  padding: 0 24px 20px 56px;
}

.faq-item__answer p {
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* ---- Contact ---- */

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

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-info__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 110, 253, 0.1);
  color: var(--color-secondary);
  border-radius: var(--radius-sm);
}

.contact-info__label {
  display: block;
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}

.contact-info__value {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
}

a.contact-info__value:hover {
  color: var(--color-secondary);
}

.contact-info__badge {
  background: var(--gradient-primary);
  color: #fff;
  padding: 20px 24px;
  border-radius: var(--radius-sm);
  margin-top: 8px;
}

.contact-info__badge strong {
  display: block;
  margin-bottom: 4px;
}

.contact-info__badge p {
  font-size: 14px;
  opacity: 0.9;
}

.contact-form {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

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

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--color-text);
}

.required {
  color: var(--color-accent);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 15px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
}

.form-group input.is-invalid,
.form-group select.is-invalid,
.form-group textarea.is-invalid {
  border-color: #dc3545;
}

.form-group--checkbox {
  margin-bottom: 20px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  margin-top: 3px;
  flex-shrink: 0;
}

.form-group--checkbox.is-invalid .checkbox-label {
  color: #842029;
}

.form-group--checkbox.is-invalid input[type="checkbox"] {
  outline: 2px solid #dc3545;
  outline-offset: 2px;
}

.form-message {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  text-align: center;
}

.form-message.is-success {
  background: #d1e7dd;
  color: #0f5132;
}

.form-message.is-error {
  background: #f8d7da;
  color: #842029;
}

.page-footnote {
  margin: 32px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
  font-size: 13px;
  line-height: 1.6;
  color: var(--color-text-muted);
}

/* ---- Site footer (estilo landing autobuses) ---- */

.aps-site-footer {
  background: linear-gradient(45deg, rgb(5, 117, 230), rgb(2, 27, 121));
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-family);
  font-size: 0.9375rem;
  line-height: 1.6;
  padding: 40px 24px;
  text-align: center;
}

.aps-site-footer__inner {
  margin: 0 auto;
  max-width: 1180px;
  text-align: center;
}

.aps-site-footer__brand {
  margin: 0 0 12px;
}

.aps-site-footer__contact,
.aps-site-footer__legal {
  margin: 0 0 8px;
}

.aps-site-footer__credits {
  align-items: center;
  color: rgba(255, 255, 255, 0.65);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.8125rem;
  gap: 8px;
  justify-content: center;
  margin: 16px 0 0;
}

.aps-site-footer__sep {
  color: rgba(255, 255, 255, 0.35);
}

.aps-site-footer a {
  color: rgb(153, 204, 230);
  text-decoration: none;
}

.aps-site-footer a:hover {
  text-decoration: underline;
}

/* ---- Floating buttons ---- */

.floating-buttons {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.floating-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition: transform var(--transition), box-shadow var(--transition);
}

.floating-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.3);
  color: #fff;
}

.floating-btn--whatsapp {
  background: #25d366;
}

.floating-btn--phone {
  background: var(--color-secondary);
}

/* ---- Responsive ---- */

@media (max-width: 1024px) {
  .cards-grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .coverage-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .use-cases {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .example-cta__inner {
    gap: 24px;
  }

  .example-cta__action {
    justify-content: flex-start;
  }

  .example-cta__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .use-cases__media {
    min-height: 360px;
  }

  .coverage-layout__map {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  #coverageMap {
    width: 100%;
    max-width: 100%;
    height: 100%;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .circuit-block {
    grid-template-columns: 1fr;
  }

  .circuit-stats {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 768px) {
  html,
  body {
    overflow-x: clip;
    max-width: 100%;
  }

  #circuito-completo {
    padding-left: 0;
    padding-right: 0;
  }

  #circuito-completo .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .section {
    padding: 60px 0;
  }

  .header__nav {
    display: none;
  }

  .header__actions {
    display: none;
  }

  .header .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .header__inner {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    gap: 10px;
    align-items: center;
    justify-content: stretch;
  }

  .header__logo-slot {
    min-width: 0;
    overflow: hidden;
  }

  .header-logo {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 22px;
    object-fit: contain;
    object-position: left center;
  }

  .header__mobile-cta {
    display: inline-flex !important;
    width: 100%;
    min-width: 0;
    padding: 8px 10px;
    font-size: 12px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity var(--transition), visibility var(--transition);
  }

  .header__mobile-cta.is-hidden {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
  }

  .cards-grid--3 {
    grid-template-columns: 1fr;
  }

  .strategy-carousel {
    margin-left: -24px;
    margin-right: -24px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding: 4px 24px 12px;
    scroll-padding-left: 24px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .strategy-carousel::-webkit-scrollbar {
    display: none;
  }

  .strategy-carousel__track.cards-grid--3 {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
    grid-template-columns: none;
  }

  .strategy-carousel .feature-card {
    flex: 0 0 min(85vw, 300px);
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .strategy-carousel .feature-card:hover {
    transform: none;
  }

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

  .hero__media {
    width: 100%;
    height: auto;
    aspect-ratio: 502 / 590;
  }

  .hero__stats {
    gap: 24px;
  }

  .circuit-block {
    gap: 20px;
    width: 100%;
  }

  .circuit-block__content,
  .circuit-block__pricing {
    width: 100%;
    box-sizing: border-box;
  }

  #circuito-completo .section__title--light,
  #circuito-completo .section__text--light,
  #circuito-completo .circuit-pricing__value,
  #circuito-completo .circuit-pricing__note,
  #circuito-completo .circuit-pricing__label {
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
    max-width: 100%;
  }

  #circuito-completo .section__text {
    max-width: 100%;
    margin-bottom: 24px;
    font-size: 16px;
  }

  #circuito-completo .section__title--light {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .circuit-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 24px;
  }

  .circuit-stat {
    padding: 16px 10px;
  }

  .circuit-stat__value {
    font-size: 1.1rem;
    overflow-wrap: anywhere;
  }

  .circuit-block__pricing {
    padding: 20px 12px;
  }

  .circuit-block__pricing .btn {
    width: 100%;
    max-width: 100%;
    white-space: normal;
    text-align: center;
    box-sizing: border-box;
    padding: 14px 12px;
    font-size: 14px;
  }

  .circuit-pricing__value {
    font-size: 1.35rem;
  }

  .circuit-pricing__note {
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .logo-carousel {
    padding: 0 28px;
    --logo-peek: 34px;
  }

  .logo-gallery .logo-carousel .gallery-item {
    flex: 0 0 calc((100% - 16px) / 2);
  }

  .logo-carousel__btn {
    width: 36px;
    height: 36px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-form {
    order: 1;
  }

  .contact-info {
    order: 2;
  }

  .coverage-layout {
    gap: 24px;
  }

  .use-cases {
    gap: 24px;
  }

  .example-cta {
    padding: 48px 0;
  }

  .example-cta__action .btn {
    width: 100%;
  }

  .use-case-card {
    padding: 18px 16px;
  }

  .use-cases__media {
    gap: 12px;
    min-height: 280px;
  }

  .use-cases__photo img {
    min-height: 140px;
  }

  .coverage-layout__map,
  #coverageMap {
    aspect-ratio: 1 / 1;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .floating-buttons {
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    right: 16px;
    z-index: 1000;
  }

  .floating-btn {
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 480px) {
  .hero__ctas {
    flex-direction: column;
  }

  .hero__ctas .btn {
    width: 100%;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .logo-carousel {
    padding: 0 24px;
    --logo-peek: 24px;
  }

  .logo-gallery .logo-carousel .gallery-item {
    flex: 0 0 calc((100% - 16px) / 2);
    padding: 12px;
  }

  .logo-carousel__btn {
    width: 32px;
    height: 32px;
  }

  .circuit-block__pricing {
    padding: 16px 12px;
  }

  .circuit-pricing__value {
    font-size: 1.2rem;
  }

  .circuit-block__pricing .btn {
    font-size: 13px;
    padding: 12px 10px;
  }
}
