/* Twistmedia 2026 - Brand Design System & CSS */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@500;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  /* Colors */
  --black: #050707;
  --deep: #0a0f10;
  --card-bg: rgba(11, 16, 17, 0.65);
  --card-hover: rgba(16, 23, 24, 0.85);
  --ink: #f5f7f1;
  --muted: rgba(245, 247, 241, 0.62);
  --line: rgba(245, 247, 241, 0.08);
  --line-light: rgba(245, 247, 241, 0.15);
  --lime: #9fcc3b;
  --lime-glow: rgba(159, 204, 59, 0.35);
  --cyan: #0dd3e8;
  --cyan-glow: rgba(13, 211, 232, 0.25);
  
  /* Fonts */
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  
  /* Layout */
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 8px;
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(245, 247, 241, 0.2) var(--black);
  overflow-x: hidden;
}

body {
  background-color: var(--black);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
}

/* Background: single restrained vignette, no rainbow glow mesh */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(159, 204, 59, 0.05) 0%, transparent 55%),
    var(--black);
  pointer-events: none;
}

/* Faint grain overlay for texture instead of a grid mesh */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* Oversized editorial watermark word used behind section headers */
.section-watermark {
  position: absolute;
  top: -0.35em;
  left: 0;
  font-family: var(--font-title);
  font-weight: 900;
  font-size: clamp(90px, 13vw, 220px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(245, 247, 241, 0.06);
  letter-spacing: -0.03em;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

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

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

.wrap {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

/* Typography Utilities */
h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

span.highlight {
  color: var(--lime);
  background: linear-gradient(120deg, var(--lime) 0%, #b2e043 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

span.glow-cyan {
  color: var(--cyan);
  text-shadow: 0 0 15px rgba(13, 211, 232, 0.4);
}

/* Header & Nav */
.nav {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1200px, calc(100% - 48px));
  height: 72px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  background: rgba(10, 15, 16, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  transition: var(--transition);
}

.nav img {
  width: 150px;
  height: auto;
}

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

.nav-links a {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  position: relative;
  padding: 6px 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--lime);
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-links a:hover::after {
  width: 100%;
}

.btn {
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: var(--lime);
  color: var(--black);
  box-shadow: 0 4px 20px rgba(159, 204, 59, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(159, 204, 59, 0.4);
  background: #a9d93f;
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-light);
}

.btn-secondary:hover {
  background: rgba(245, 247, 241, 0.05);
  border-color: var(--ink);
  transform: translateY(-2px);
}

.btn-outline {
  background: rgba(159, 204, 59, 0.05);
  color: var(--lime);
  border: 1px solid rgba(159, 204, 59, 0.2);
}

.btn-outline:hover {
  background: rgba(159, 204, 59, 0.12);
  border-color: var(--lime);
  box-shadow: 0 0 20px rgba(159, 204, 59, 0.15);
  transform: translateY(-2px);
}

.nav-cta {
  font-size: 12px;
  padding: 0 20px;
  height: 40px;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  padding-top: 140px;
  padding-bottom: 80px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 960px;
  margin: 0 auto;
  position: relative;
  z-index: 5;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(159, 204, 59, 0.08);
  border: 1px solid rgba(159, 204, 59, 0.15);
  border-radius: 99px;
  color: var(--lime);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(42px, 5.5vw, 76px);
  line-height: 1;
  margin-bottom: 24px;
}

.hero-copy {
  font-size: clamp(16px, 1.2vw, 19px);
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 36px;
  max-width: 620px;
}

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

/* Hero Dashboard Widget */
.glass {
  background: rgba(11, 16, 17, 0.55);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

.glass::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--lime), var(--cyan));
}

.glass small {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 20px;
}

.live-grid {
  display: grid;
  gap: 16px;
}

.live-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(245, 247, 241, 0.06);
}

.live-row:last-child {
  border: none;
  padding-bottom: 0;
}

.live-row span {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

.live-row b {
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
}

/* Credenciales â€” tipografÃ­a pura, sin tarjeta ni look de dashboard */
.credentials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  padding: 68px 0 80px;
  position: relative;
  z-index: 5;
}

.credential {
  text-align: left;
  padding-top: 20px;
  border-top: 2px solid rgba(159, 204, 59, 0.35);
}

.credential:nth-child(2) {
  border-top-color: rgba(13, 211, 232, 0.35);
}

.credential:nth-child(3) {
  border-top-color: rgba(159, 204, 59, 0.35);
}

.credential-number {
  display: flex;
  align-items: baseline;
  gap: 2px;
  line-height: 0.85;
  margin-bottom: 16px;
}

.credential-number b,
.credential-number .credential-plus {
  font-family: var(--font-title);
  font-size: clamp(48px, 5.5vw, 72px);
  font-weight: 900;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, var(--lime) 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.credential h4 {
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--ink);
  margin-bottom: 12px;
}

.credential p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* Marquee / Brands */
.marquee {
  padding: 60px 0;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 7, 7, 0.4);
  overflow: hidden;
}

.marquee p {
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245, 247, 241, 0.4);
  margin-bottom: 30px;
}

.track {
  width: max-content;
  display: flex;
  gap: 20px;
  animation: marquee 55s linear infinite;
}

/* Logos de clientes: sin recuadros, sobre el mismo fondo de la web. */
.logo-pill {
  min-width: 120px;
  height: 84px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 800;
  color: rgba(245, 247, 241, 0.62);
  letter-spacing: 0.05em;
  box-shadow: none;
  transition: var(--transition-fast);
}

.logo-pill:hover {
  transform: none;
  box-shadow: none;
}

.logo-pill img {
  max-width: 190px;
  max-height: 52px;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0.82;
  transition: var(--transition-fast);
}

.logo-pill:hover img {
  opacity: 1;
}

.logo-pill.dark {
  background: transparent;
  border-color: transparent;
  color: rgba(245, 247, 241, 0.62);
  box-shadow: none;
}

.logo-pill.dark:hover {
  border-color: transparent;
  background: transparent;
}

.logo-pill.dark img {
  opacity: 0.82;
  transition: var(--transition-fast);
}

.logo-pill.dark:hover img {
  opacity: 1;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Section Common Styles */
section {
  padding: 100px 0;
  border-top: 1px solid var(--line);
  position: relative;
}

.section-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 48px;
  max-width: 850px;
  position: relative;
  z-index: 1;
}

.section-head h2 {
  font-size: clamp(32px, 3.8vw, 54px);
  margin-bottom: 18px;
}

.lead {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.6;
}

/* Media Cards Grid */
.media-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.media-card {
  grid-column: span 4;
  height: 480px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: flex-end;
  background: var(--deep);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
  opacity: 0;
  transform: translateY(30px);
}

.media-card.wide {
  grid-column: span 8;
}

.media-card.half {
  grid-column: span 6;
  height: 340px;
}


.media-card.show {
  opacity: 1;
  transform: translateY(0);
}

.media-card-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  filter: saturate(0.85) brightness(0.75);
}

.media-card:hover .media-card-img {
  transform: scale(1.08);
  filter: saturate(1.05) brightness(0.8);
}

.media-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(5, 7, 7, 0.95) 90%);
  z-index: 1;
  pointer-events: none;
}

.media-content {
  position: relative;
  z-index: 2;
  padding: 36px;
  width: 100%;
}

.media-content small {
  color: var(--lime);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}

.media-content h3 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--ink);
}

.media-content p {
  font-size: 14px;
  color: rgba(245, 247, 241, 0.7);
  line-height: 1.5;
}

/* Gallery Section */
.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  background: rgba(245, 247, 241, 0.04);
  border: 1px solid rgba(245, 247, 241, 0.08);
  color: var(--muted);
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.filter-btn:hover {
  background: rgba(245, 247, 241, 0.08);
  color: var(--ink);
  border-color: rgba(245, 247, 241, 0.2);
}

.filter-btn.active {
  background: rgba(159, 204, 59, 0.08);
  border-color: var(--lime);
  color: var(--lime);
  box-shadow: 0 0 15px rgba(159, 204, 59, 0.15);
}

/* GalerÃ­a como carrusel deslizable (drag + touch + flechas) */
.gallery-carousel {
  position: relative;
}

.gallery-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  padding: 4px 4px 16px;
  cursor: grab;
  scrollbar-width: none;
  -ms-overflow-style: none;
  user-select: none;
}

.gallery-track::-webkit-scrollbar {
  display: none;
}

.gallery-track.dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  scroll-behavior: auto;
}

.gallery-item {
  flex: 0 0 320px;
  height: 420px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  position: relative;
  background: var(--deep);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  scroll-snap-align: start;
  transition: opacity 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
}

.gallery-item.featured {
  flex-basis: 400px;
}

.gallery-item.show {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item.hidden {
  display: none;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(8, 12, 13, 0.85);
  border: 1px solid var(--line-light);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  z-index: 5;
  backdrop-filter: blur(10px);
  transition: var(--transition-fast);
}

.gallery-arrow:hover {
  background: var(--lime);
  color: var(--black);
  border-color: var(--lime);
}

.gallery-arrow.prev { left: -22px; }
.gallery-arrow.next { right: -22px; }

@media (max-width: 767px) {
  .gallery-arrow { display: none; }
}

.gallery-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  filter: saturate(0.9) brightness(0.8);
}

.gallery-item:hover .gallery-img {
  transform: scale(1.05);
  filter: saturate(1.05) brightness(0.85);
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(5, 7, 7, 0.95) 95%);
  z-index: 1;
  pointer-events: none;
}

.gallery-info {
  position: relative;
  z-index: 2;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
}

.gallery-info h4 {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 4px;
}

.gallery-info span {
  font-size: 12px;
  color: var(--cyan);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Platform / Coverage Section */
.platform {
  background: 
    radial-gradient(circle at 90% 10%, rgba(13, 211, 232, 0.08) 0%, transparent 40%),
    linear-gradient(185deg, rgba(11, 16, 17, 0.9) 0%, rgba(5, 7, 7, 0.98) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 64px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
}

.platform-grid {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 48px;
  align-items: center;
}

.platform h2 {
  font-size: clamp(26px, 3vw, 40px);
  margin-bottom: 20px;
}

.platform .lead {
  margin-bottom: 0;
}

.map-card {
  background: rgba(5, 7, 7, 0.6);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  height: 620px;
  overflow: hidden;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.6);
}

.map-card small {
  color: var(--cyan);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: block;
}

/* Real Leaflet / OpenStreetMap embed */
#coverage-map {
  position: absolute;
  inset: 56px 24px 24px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(245, 247, 241, 0.1);
  background: var(--deep);
}

#coverage-map .leaflet-tile-pane {
  filter: grayscale(1) invert(0.92) contrast(0.9) brightness(0.72) saturate(0.7);
}
#coverage-map .leaflet-control-attribution {
  background: rgba(5, 7, 7, 0.7) !important;
  color: rgba(245, 247, 241, 0.5) !important;
  font-size: 9px !important;
}

#coverage-map .leaflet-control-attribution a {
  color: var(--cyan) !important;
}

/* Custom marker: pulsing brand-colored dot */
/* El color lo define la categorÃ­a (variable --pin-color inyectada por punto,
   ver circuitPoints en el script del mapa); lima queda como color por defecto. */
.twist-pin {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--pin-color, var(--lime));
  border: 2px solid rgba(5, 7, 7, 0.8);
  cursor: pointer;
}

.twist-pin::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: var(--pin-color, var(--lime));
  opacity: 0.28;
  animation: pinPulse 2.2s infinite ease-out;
}

.leaflet-popup-content-wrapper {
  background: rgba(8, 12, 13, 0.95) !important;
  color: var(--ink) !important;
  border: 1px solid rgba(159, 204, 59, 0.3) !important;
  border-radius: var(--radius-sm) !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5) !important;
}

.leaflet-popup-tip {
  background: rgba(8, 12, 13, 0.95) !important;
}

.leaflet-popup-content b {
  color: var(--lime);
  display: block;
  margin-bottom: 2px;
  font-family: var(--font-title);
}

.leaflet-popup-content {
  font-family: var(--font-body);
  font-size: 12px;
  margin: 10px 14px !important;
}

.leaflet-popup-close-button {
  color: var(--muted) !important;
}

@keyframes pinPulse {
  0% { transform: scale(0.3); opacity: 1; }
  100% { transform: scale(1); opacity: 0; }
}

.map-note {
  margin-top: 20px;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Steps (GestiÃ³n Integral) â€” horizontal connected timeline */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.steps::before {
  content: "";
  position: absolute;
  top: 18px;
  left: calc(12.5% - 1px);
  right: calc(12.5% - 1px);
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--line-light) 0 8px, transparent 8px 16px);
  z-index: 0;
}

.step {
  position: relative;
  padding: 0 28px 0 0;
  z-index: 1;
}

.step:last-child {
  padding-right: 0;
}

.step-num {
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 900;
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--lime);
  border-radius: 50%;
  margin-bottom: 24px;
  box-shadow: 0 0 0 6px var(--black);
}

.step h3 {
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 10px;
}

.step p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

/* Split Section & FAQ Accordion */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: stretch;
}

.photo-frame {
  height: 100%;
  min-height: 480px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.photo-frame-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  filter: saturate(0.9) brightness(0.85);
  transition: var(--transition);
}

.photo-frame:hover .photo-frame-img {
  transform: scale(1.04);
}

.photo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 7, 7, 0.1), rgba(5, 7, 7, 0.8));
  pointer-events: none;
}

.faq {
  display: grid;
  gap: 16px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(11, 16, 17, 0.45);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  background: rgba(11, 16, 17, 0.7);
  border-color: rgba(245, 247, 241, 0.15);
}

.faq-item.open {
  background: rgba(11, 16, 17, 0.8);
  border-color: rgba(159, 204, 59, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.faq button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  border: none;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-title);
  font-size: 17px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
  outline: none;
}

.faq button small {
  color: var(--lime);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  margin-right: 12px;
  letter-spacing: 0.1em;
}

.faq-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(245, 247, 241, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--muted);
  transition: var(--transition);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--lime);
  color: var(--black);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-answer p {
  padding: 0 24px 24px 24px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* Contact Section & Form */
.contact {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 80px;
  align-items: start;
}

.form {
  display: grid;
  gap: 16px;
  background: rgba(11, 16, 17, 0.55);
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

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

.form-group {
  position: relative;
}

input, select, textarea {
  width: 100%;
  min-height: 56px;
  background: rgba(5, 7, 7, 0.5);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0 18px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  outline: none;
  transition: var(--transition-fast);
}

textarea {
  min-height: 140px;
  padding-top: 18px;
  resize: vertical;
}

select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23f5f7f1' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 12px;
  padding-right: 40px;
}

select option {
  background: var(--black);
  color: var(--ink);
}

input:focus, select:focus, textarea:focus {
  border-color: var(--lime);
  background: rgba(11, 16, 17, 0.85);
  box-shadow: 0 0 15px rgba(159, 204, 59, 0.15);
}

::placeholder {
  color: rgba(245, 247, 241, 0.35);
}

/* Footer styling */
.footer {
  padding: 60px 0 80px;
  border-top: 1px solid var(--line);
  background: #030505;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
}

.footer img {
  width: 140px;
  height: auto;
}

.footer span {
  font-size: 13px;
  color: rgba(245, 247, 241, 0.4);
}

/* Floating WhatsApp Badge */
.whatsapp {
  position: fixed;
  right: 32px;
  bottom: 32px;
  z-index: 99;
  height: 52px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 22px;
  border-radius: 99px;
  background: #25d366;
  color: #fff;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.35);
  transition: var(--transition);
}

.whatsapp:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 15px 35px rgba(37, 211, 102, 0.5);
  background: #20ba59;
}

.whatsapp svg {
  fill: currentColor;
  width: 18px;
  height: 18px;
}

/* Loading Screen */
.loader {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.loader.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.loader img {
  width: min(300px, 74vw);
  animation: logoPulse 1.8s ease-in-out infinite;
}

.loader-line {
  width: min(260px, 68vw);
  height: 2px;
  background: rgba(245, 247, 241, 0.08);
  border-radius: 99px;
  overflow: hidden;
  position: relative;
}

.loader-line span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--lime), var(--cyan));
  width: 50%;
  border-radius: 99px;
  position: absolute;
  animation: loaderBar 1.2s infinite ease-in-out;
}

@keyframes loaderBar {
  0% { left: -50%; }
  100% { left: 100%; }
}

@keyframes logoPulse {
  0%, 100% { opacity: 0.6; transform: scale(0.98); }
  50% { opacity: 1; transform: scale(1.02); }
}

/* Responsive Breakpoints */
@media (max-width: 1100px) {
  .hero-grid {
    gap: 40px;
  }
}

@media (max-width: 991px) {
  .hero-grid {
    gap: 32px;
  }
  
  .hero-copy {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .credentials {
    grid-template-columns: repeat(2, 1fr);
    padding: 48px 0 56px;
    gap: 32px;
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .media-grid {
    gap: 20px;
  }
  
  .media-card {
    grid-column: span 6;
  }

  .media-card.wide, .media-card.half {
    grid-column: span 12;
  }
  
  .platform-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .map-card {
    height: 460px;
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 24px;
  }

  .steps::before {
    display: none;
  }

  .step {
    padding-right: 0;
  }
  
  .split {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  
  .photo-frame {
    height: 400px;
  }
  
  .contact {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 767px) {
  .nav {
    padding: 0 20px;
  }
  
  .nav-links, .nav-cta {
    display: none;
  }
  
  .nav-mobile-toggle {
    display: block;
  }
  
  .credentials {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 0;
  }

  .media-card {
    grid-column: span 12;
    height: 380px;
  }
  
  .platform {
    padding: 36px 20px;
  }
  
  .map-card {
    height: 380px;
    padding: 16px;
  }

  #coverage-map {
    inset: 48px 16px 16px;
  }

  .gallery-item {
    flex-basis: 82vw;
  }

  .gallery-item.featured {
    flex-basis: 82vw;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  
  .form {
    padding: 28px 20px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  
  .whatsapp {
    left: 24px;
    right: 24px;
    justify-content: center;
  }
}


.review-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 6px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(159, 204, 59, 0.35);
  background: linear-gradient(135deg, rgba(159, 204, 59, 0.18), rgba(13, 211, 232, 0.08));
  box-shadow: 0 18px 36px rgba(159, 204, 59, 0.12);
}

.review-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--lime);
  color: #050707;
  font-size: 19px;
  font-weight: 900;
}

.review-link {
  display: inline-flex;
  align-items: center;
  color: var(--lime);
  font-size: 16px;
  font-weight: 800;
  transition: var(--transition-fast);
}

.review-link:hover {
  color: var(--cyan);
  transform: translateX(3px);
}

.media-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 38px;
  margin-top: 18px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--black);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-shadow: 0 12px 28px rgba(159, 204, 59, 0.18);
}

@media (max-width: 767px) {
  .media-link { width: 100%; margin-top: 16px; }
}


/* Ajuste final: WhatsApp flotante compacto y review neutra */
.whatsapp {
  right: 22px;
  bottom: 22px;
  width: 48px;
  height: 48px;
  padding: 0;
  justify-content: center;
  gap: 0;
  border-radius: 50%;
}
.whatsapp span { display: none; }
.whatsapp svg {
  width: 21px;
  height: 21px;
}
.review-cta {
  gap: 12px;
  padding: 14px 16px;
}
.review-icon {
  width: 36px;
  height: 36px;
  flex-basis: 36px;
  font-size: 16px;
}
@media (max-width: 768px) {
  .whatsapp {
    left: auto;
    right: 16px;
    bottom: 16px;
    width: 46px;
    height: 46px;
    padding: 0;
  }
}


/* Ajustes finales hero mobile + WhatsApp */
@media (min-width: 769px) {
  .whatsapp {
    width: auto;
    min-width: 118px;
    height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    gap: 8px;
  }
  .whatsapp span {
    display: inline;
    font-size: 13px;
    font-weight: 800;
  }
}
@media (max-width: 768px) {
  .nav {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    justify-content: center;
    padding: 0 20px;
  }
  .nav > a:first-child {
    display: flex;
    justify-content: center;
  }
  .nav img {
    width: min(210px, 72vw);
  }
  .hero {
    min-height: auto;
    padding-top: 132px;
    padding-bottom: 52px;
  }
  .hero-grid {
    text-align: center;
  }
  .hero .eyebrow {
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
    font-size: 11px;
    line-height: 1.35;
    padding-inline: 14px;
  }
  .hero h1 {
    max-width: 8.8em;
    margin-inline: auto;
    font-size: clamp(42px, 11.5vw, 56px);
    line-height: .98;
  }
  .hero-copy {
    max-width: 30ch;
    margin-inline: auto;
    font-size: 16px;
    line-height: 1.55;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-actions .btn-secondary {
    width: 52px;
    min-width: 52px;
    height: 52px;
    padding: 0;
    border-radius: 50%;
    font-size: 0;
    color: transparent;
    position: relative;
  }
  .hero-actions .btn-secondary::before {
    content: "";
    width: 22px;
    height: 22px;
    display: block;
    background: currentColor;
    color: #fff;
    mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 448 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M380.9 97.1C339 55.1 283.2 32 223.9 32c-122.4 0-222 99.6-222 222 0 39.1 10.2 77.3 29.6 111L3 480l117.7-30.9c32.4 17.7 68.9 27 106.1 27h.1c122.3 0 224.1-99.6 224.1-222 0-59.3-25.2-115-67.1-157zm-157 341.6c-33.2 0-65.7-8.9-94-25.7l-6.7-4-69.8 18.3L72 359.2l-4.4-7c-18.5-29.4-28.2-63.3-28.2-98.2 0-101.7 82.8-184.5 184.6-184.5 49.3 0 95.6 19.2 130.4 54.1 34.8 34.9 56.2 81.2 56.1 130.5 0 101.8-84.9 184.6-186.6 184.6z'/%3E%3C/svg%3E") center/contain no-repeat;
  }
}


/* Fix mobile definitivo: centrado, loader con iso y WhatsApp burbuja */
.loader-logo-combo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: min(320px, 78vw);
  animation: logoPulse 1.8s ease-in-out infinite;
}
.loader-logo-combo img { animation: none !important; }
.loader-logo-combo .loader-iso {
  width: 64px !important;
  height: 64px !important;
  flex: 0 0 64px;
}
.loader-logo-combo .loader-word {
  width: min(210px, 54vw) !important;
  height: auto !important;
}
@media (max-width: 768px) {
  .nav {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    width: calc(100% - 48px) !important;
    max-width: 352px !important;
    justify-content: center !important;
    padding: 0 18px !important;
  }
  .nav-links,
  .nav-cta {
    display: none !important;
  }
  .nav > a:first-child {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }
  .nav img {
    width: min(220px, 70vw) !important;
    margin-inline: auto !important;
  }
  .hero,
  .hero-grid,
  .hero-copy,
  .hero-actions {
    text-align: center !important;
    justify-items: center !important;
  }
  .hero .eyebrow {
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 7px !important;
    width: auto !important;
    max-width: min(300px, calc(100vw - 88px)) !important;
    margin: 0 auto 28px !important;
    padding: 10px 13px !important;
    text-align: center !important;
    font-size: 10px !important;
    line-height: 1.25 !important;
    letter-spacing: .11em !important;
  }
  .hero h1 {
    margin-inline: auto !important;
    text-align: center !important;
    max-width: 8.7em !important;
  }
  .hero-copy {
    margin-inline: auto !important;
    max-width: 29ch !important;
  }
  .hero-actions {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
  }
  .hero-actions .btn-primary {
    width: auto !important;
    min-width: 0 !important;
    padding-inline: 18px !important;
    font-size: 12px !important;
  }
  .hero-actions .btn-secondary {
    width: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
    height: 48px !important;
    min-height: 48px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    color: transparent !important;
    font-size: 0 !important;
    flex: 0 0 48px !important;
  }
  .hero-actions .btn-secondary::before {
    width: 21px !important;
    height: 21px !important;
  }
  .whatsapp {
    left: auto !important;
    right: 16px !important;
    bottom: 16px !important;
    width: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
    height: 48px !important;
    min-height: 48px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 0 !important;
  }
  .whatsapp span { display: none !important; }
  .whatsapp svg {
    width: 21px !important;
    height: 21px !important;
  }
}


/* PNG brand + hard mobile cleanup */
.brand-png { display:block; object-fit:contain; object-position:center; }
.loader-brand-png { width:min(320px,78vw)!important; max-height:180px!important; margin-inline:auto!important; }
.nav-brand-png { width:190px!important; max-height:58px!important; margin-inline:auto!important; }
@media (max-width:768px) {
  .hero .eyebrow { display:none!important; }
  .whatsapp.whatsapp-bubble { left:auto!important; right:16px!important; bottom:16px!important; width:48px!important; min-width:48px!important; max-width:48px!important; height:48px!important; min-height:48px!important; padding:0!important; border-radius:50%!important; }
}
