/* ============================================
   IRP-ONE WordPress Theme - main.css
   ============================================ */

/* --- Variables de color y fuentes --- */
:root {
  --primary: hsl(24, 95%, 53%);
  --primary-dark: hsl(20, 90%, 42%);
  --primary-glow: hsl(24, 100%, 60%);
  --foreground: hsl(0, 0%, 8%);
  --background: hsl(0, 0%, 100%);
  --muted: hsl(0, 0%, 45%);
  --border: hsl(0, 0%, 90%);
  --card: hsl(0, 0%, 100%);
  --section-alt: hsl(0, 0%, 97%);
  --radius: 0.5rem;
  --font-body: 'Montserrat', sans-serif;
  --font-display: 'Montserrat', sans-serif;
  --carousel-speed: 20s;
  --carousel-gap: 3rem;
  --logo-width: 8rem;
}

/* --- Reset y base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-color: var(--border);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background-color: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); }

/* --- Sistema tipográfico Montserrat ---
   letter-spacing 0.2em = tracking 200 en herramientas de diseño (200/1000 em)
   Los componentes con tamaños propios (hero-title, section-title) mantienen
   sus valores clamp() para responsividad, pero heredan Montserrat y el peso.
   ---------------------------------------------------------- */
h1 {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

h2 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

h4, h5 {
  font-size: 15px;
  font-weight: 700;
}

p, li {
  font-size: 15px;
  font-weight: 400;
}

strong, .bold {
  font-weight: 700;
}

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

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

/* --- Contenedor --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* --- Utilidades de texto --- */
.text-gradient-orange {
  background-image: linear-gradient(135deg, var(--primary), var(--primary-glow));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.text-primary { color: var(--primary); }
.text-muted { color: var(--muted); }
.text-foreground { color: var(--foreground); }

/* --- Botones --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.1s;
  border: 1px solid transparent;
  line-height: 1;
  white-space: nowrap;
}

.btn:active { transform: scale(0.98); }

.btn-primary { background-color: var(--primary); color: #fff; }
.btn-primary:hover { background-color: var(--primary-dark); }

.btn-outline {
  background-color: transparent;
  border-color: var(--border);
  color: var(--foreground);
}
.btn-outline:hover {
  background-color: var(--section-alt);
  border-color: var(--primary);
  color: var(--primary);
}

.btn-lg { padding: 0.75rem 2rem; font-size: 1rem; height: 2.75rem; }
.btn-sm { padding: 0.4rem 0.875rem; font-size: 0.8rem; height: 2.25rem; }
.btn-full { width: 100%; }

.btn-whatsapp { background-color: #25D366; color: #fff; }
.btn-whatsapp:hover { background-color: #1ebe5d; }

/* --- Animaciones de entrada --- */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in-up.visible,
.fade-in-left.visible,
.fade-in-right.visible {
  opacity: 1;
  transform: translate(0, 0);
}

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.30s; }
.delay-3 { transition-delay: 0.45s; }
.delay-4 { transition-delay: 0.60s; }

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.navbar-logo img,
.navbar-logo svg {
  height: 2.2rem;
  width: auto;
  display: block;
}

.navbar-logo-icon {
  width: 2.25rem; height: 2.25rem;
  border-radius: 50%;
  border: 2px solid var(--primary);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.navbar-logo-icon svg { width: 1.25rem; height: 1.25rem; color: var(--primary); stroke: var(--primary); }

.navbar-logo-text {
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.125rem;
  color: var(--foreground); letter-spacing: -0.02em;
}
.navbar-logo-text span { color: var(--primary); }

.navbar-links { display: none; align-items: center; gap: 1.5rem; }

.navbar-link {
  font-size: 0.875rem; font-weight: 500;
  color: var(--muted); text-decoration: none;
  transition: color 0.2s;
}
.navbar-link:hover { color: var(--primary); }

.navbar-toggle {
  display: flex; background: none; border: none;
  cursor: pointer; padding: 0.25rem; color: var(--foreground);
}
.navbar-toggle svg { width: 1.5rem; height: 1.5rem; stroke: var(--foreground); }

.navbar-mobile {
  display: none;
  background-color: var(--background);
  border-top: 1px solid var(--border);
  padding-bottom: 1rem;
}
.navbar-mobile.open { display: block; }

.navbar-mobile-link {
  display: block; padding: 0.75rem 1.5rem;
  font-size: 0.875rem; color: var(--muted);
  text-decoration: none; transition: color 0.2s;
}
.navbar-mobile-link:hover { color: var(--primary); }
.navbar-mobile-cta { padding: 0.5rem 1.5rem; }

@media (min-width: 768px) {
  .navbar-links { display: flex; }
  .navbar-toggle { display: none; }
  .navbar-mobile { display: none !important; }
}

/* ============================================
   HERO
   ============================================ */
#inicio {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  /* Alineado a la izquierda, no centrado */
  justify-content: flex-start;
  overflow: hidden;
  padding-top: 4rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

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

/* Degradado solo desde la izquierda hasta el centro — derecha queda despejada para la imagen */
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
    rgba(255,255,255,0.97) 0%,
    rgba(255,255,255,0.92) 30%,
    rgba(255,255,255,0.60) 50%,
    rgba(255,255,255,0.00) 70%
  );
}

.hero-content {
  position: relative;
  z-index: 10;
  padding: 5rem 0 8rem;
  /* Ancho máximo de la mitad para dejar espacio a la derecha */
  max-width: 44rem;
  width: 50%;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  color: var(--foreground);
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 36rem;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-bottom-fade {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 6rem;
  background: linear-gradient(to top, var(--background), transparent);
}

@media (max-width: 767px) {
  .hero-content {
    width: 100%;
    max-width: 100%;
    padding: 3rem 0 5rem;
  }
  .hero-bg-overlay {
    background: linear-gradient(to right,
      rgba(255,255,255,0.97) 0%,
      rgba(255,255,255,0.85) 60%,
      rgba(255,255,255,0.70) 100%
    );
  }
}

/* ============================================
   SECCIONES GENERALES
   ============================================ */
.section { padding: 5rem 0; position: relative; }
.section-alt { background-color: var(--section-alt); }

@media (min-width: 768px) {
  .section { padding: 7rem 0; }
}

.section-header { text-align: center; margin-bottom: 3.5rem; }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--foreground);
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--muted);
  font-size: 1.125rem;
  max-width: 40rem;
  margin: 0 auto;
  line-height: 1.7;
}

/* ============================================
   CANVAS PARTÍCULAS
   ============================================ */
.particles-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Asegurar que todo el contenido quede sobre el canvas */
.section > .container,
.section-alt > .container,
.nosotros-section > .container,
.section > .container > *,
.section-alt > .plans-grid,
.section-alt > .pillars-grid,
.section-alt > .coverage-grid,
.section-alt > .stats-grid,
.cta-content {
  position: relative;
  z-index: 1;
}

/* ============================================
   PLANES
   ============================================ */
.plan-promo {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.plan-feature-label {
  font-weight: 600;
  color: var(--foreground);
  font-size: 0.875rem;
}

.plans-grid {
  display: grid;
  gap: 1.5rem;
  max-width: 64rem;
  margin: 0 auto 3rem;
}

@media (min-width: 768px) {
  .plans-grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
  }
}

.plan-card {
  position: relative;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background-color: var(--card);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s;
  min-height: 520px;
}
.plan-card:hover { border-color: rgba(249, 115, 22, 0.3); }
.plan-card.popular {
  border-color: var(--primary);
  box-shadow: 0 8px 32px -8px rgba(249, 115, 22, 0.35);
  transform: scale(1.03);
}

.plan-badge {
  position: absolute;
  top: -0.875rem; left: 50%;
  transform: translateX(-50%);
  padding: 0.25rem 1rem;
  border-radius: 9999px;
  background-color: var(--primary);
  color: #fff;
  font-size: 0.75rem; font-weight: 600;
  white-space: nowrap;
}

.plan-name {
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.125rem;
  color: var(--foreground); margin-bottom: 0.25rem;
}

.plan-audience {
  font-size: 1.125rem; font-weight: 700;
  color: var(--foreground); line-height: 1.4;
  margin-bottom: 1rem;
}

.plan-speed {
  display: flex; align-items: flex-end;
  gap: 0.25rem; margin-bottom: 1.5rem;
}
.plan-speed svg { width: 1rem; height: 1rem; stroke: var(--primary); margin-bottom: 0.125rem; }

.plan-speed-value {
  font-family: var(--font-display);
  font-size: 1rem; font-weight: 700;
  color: var(--foreground); line-height: 1;
}

.plan-features {
  list-style: none;
  display: flex; flex-direction: column;
  gap: 0.75rem; margin-bottom: 2rem; flex: 1;
}

.plan-feature {
  display: flex; align-items: flex-start;
  gap: 0.5rem; font-size: 0.875rem; color: var(--muted);
}
.plan-feature svg { width: 1rem; height: 1rem; stroke: var(--primary); flex-shrink: 0; margin-top: 0.125rem; }

.plan-price-label { font-size: 0.875rem; color: var(--muted); margin-bottom: 0.25rem; }
.plan-price {
  font-family: var(--font-display);
  font-size: 0.95rem; font-weight: 700;
  color: var(--foreground); margin-bottom: 1.25rem;
}

.plans-terms {
  max-width: 40rem; margin: 0 auto;
  text-align: center;
  border-top: 1px solid var(--border);
  padding-top: 2rem;
}
.plans-terms h4 { font-family: var(--font-display); font-size: 0.875rem; font-weight: 600; color: var(--foreground); margin-bottom: 0.75rem; }
.plans-terms ul { list-style: none; display: flex; flex-direction: column; gap: 0.25rem; }
.plans-terms li { font-size: 0.75rem; color: var(--muted); }

/* ============================================
   BANNER DESCUENTO
   ============================================ */
.banner-descuento {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background: linear-gradient(135deg, var(--foreground) 0%, hsl(0, 0%, 20%) 100%);
  border-left: 5px solid var(--primary);
  border-radius: 1rem;
  padding: 2rem 2.5rem;
  margin-top: 3rem;
  position: relative;
  z-index: 1;
}

.banner-descuento-texto { display: flex; flex-direction: column; gap: 0.5rem; }

.banner-tag {
  display: inline-block;
  background-color: var(--primary); color: #fff;
  font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 0.25rem 0.75rem; border-radius: 2rem; width: fit-content;
}

.banner-descuento h3 {
  font-family: var(--font-display); font-size: 1.25rem; font-weight: 700;
  color: #fff; margin: 0; line-height: 1.3;
}
.banner-descuento p { font-size: 0.875rem; color: rgba(255,255,255,0.6); margin: 0; }

@media (max-width: 768px) {
  .banner-descuento { flex-direction: column; align-items: flex-start; }
  .banner-descuento .btn { width: 100%; text-align: center; justify-content: center; }
}

/* ============================================
   DIFERENCIAL
   ============================================ */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 64rem;
  margin: 0 auto;
}

@media (max-width: 900px) { .pillars-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .pillars-grid { grid-template-columns: 1fr; } }

.pillar { text-align: center; }

.pillar-icon {
  width: 4rem; height: 4rem; border-radius: 1rem;
  background-color: rgba(249, 115, 22, 0.15);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
}
.pillar-icon svg { width: 2rem; height: 2rem; stroke: var(--primary); }

.pillar-title { font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; color: var(--foreground); margin-bottom: 0.75rem; }
.pillar-desc { font-size: 0.875rem; color: var(--muted); line-height: 1.6; }

/* ============================================
   CORPORATIVO
   ============================================ */
.services-grid {
  display: grid;
  gap: 1.5rem;
  max-width: 64rem;
  margin: 0 auto 3rem;
}

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

.service-card {
  padding: 1.5rem; border-radius: 0.75rem;
  border: 1px solid var(--border);
  background-color: var(--card);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.service-card:hover {
  border-color: rgba(249, 115, 22, 0.3);
  box-shadow: 0 8px 24px -8px rgba(249, 115, 22, 0.1);
}

.service-icon {
  width: 3rem; height: 3rem; border-radius: 0.5rem;
  background-color: rgba(249, 115, 22, 0.1);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem; transition: background-color 0.2s;
}
.service-card:hover .service-icon { background-color: rgba(249, 115, 22, 0.2); }
.service-icon svg { width: 1.5rem; height: 1.5rem; stroke: var(--primary); }

.service-title { font-family: var(--font-display); font-weight: 600; color: var(--foreground); margin-bottom: 0.5rem; }
.service-desc { font-size: 0.875rem; color: var(--muted); line-height: 1.6; }

.corporate-tagline { text-align: center; }
.corporate-tagline p { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; margin-bottom: 1.5rem; }

/* ============================================
   CONTADORES
   ============================================ */
.stats-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem 3rem;
  max-width: 64rem;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.stat-item {
  display: flex; flex-direction: column;
  align-items: center; gap: 0.5rem;
  min-width: 130px;
}

.stat-number-wrap { display: flex; align-items: baseline; gap: 0.15rem; }

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700; color: var(--primary); line-height: 1;
}

.stat-suffix {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 700; color: var(--primary);
}

.stat-label { font-size: 0.95rem; color: var(--muted); font-weight: 500; }

/* ============================================
   CARRUSEL DE CLIENTES
   ============================================ */
.clientes-titulo {
  text-align: center;
  padding: 3rem 0 0;
  background-color: var(--background);
  position: relative;
  z-index: 0;
}

.clientes-titulo p {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--foreground);
}

.clientes-titulo span { color: var(--primary); }

.clientes-carousel {
  background-color: var(--background);
  position: relative;
  padding-block: 2.5rem;
  overflow: hidden;
}

.clientes-carousel::before,
.clientes-carousel::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 10%; z-index: 1; pointer-events: none;
}
.clientes-carousel::before {
  left: 0;
  background-image: linear-gradient(to right, var(--background), transparent);
}
.clientes-carousel::after  {
  right: 0;
  background-image: linear-gradient(to left, var(--background), transparent);
}

.clientes-inner { display: flex; width: fit-content; }
.clientes-carousel:hover .clientes-inner { animation-play-state: paused; }

.clientes-logos {
  display: flex; align-items: center;
  gap: var(--carousel-gap);
  padding-right: var(--carousel-gap);
}

.clientes-logos img {
  width: auto; max-width: var(--logo-width);
  height: 3rem; max-height: 3rem;
  object-fit: contain;
  filter: grayscale(100%); opacity: 0.6;
  user-select: none; flex-shrink: 0;
  transition: filter 0.3s, opacity 0.3s, scale 0.3s;
}
.clientes-logos img:hover { filter: grayscale(0%); opacity: 1; scale: 1.1; }

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

@media (max-width: 768px) {
  :root { --carousel-gap: 2rem; --logo-width: 6rem; }
}

/* ============================================
   NOSOTROS
   ============================================ */
.nosotros-section {
  background-color: var(--section-alt);
  overflow: hidden;
  position: relative;
}

.nosotros-title { color: var(--foreground); }
.nosotros-title span { color: var(--primary); font-style: italic; }

.nosotros-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  max-width: 64rem;
  margin: 0 auto;
  padding: 1rem 0 2rem;
  position: relative;
  z-index: 1;
}

.nosotros-card {
  background: var(--card); border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
  max-width: 300px; width: 100%;
  transition: transform 0.3s, box-shadow 0.3s;
}

.nosotros-card:nth-child(1) { transform: rotate(-3deg); }
.nosotros-card:nth-child(2) { transform: rotate(1.5deg); }
.nosotros-card:nth-child(3) { transform: rotate(-2deg); }

.nosotros-card:hover {
  transform: rotate(0deg) scale(1.04);
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}

.nosotros-card-img { width: 100%; height: 180px; overflow: hidden; }
.nosotros-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.nosotros-card-body { padding: 1.5rem; }

.nosotros-card-icon {
  width: 2.25rem; height: 2.25rem;
  background-color: rgba(249,115,22,0.1);
  border-radius: 0.5rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.75rem;
}
.nosotros-card-icon svg { width: 1.125rem; height: 1.125rem; stroke: var(--primary); }

.nosotros-card-body h3 {
  font-family: var(--font-display); font-size: 1.25rem; font-weight: 700;
  color: var(--foreground); margin-bottom: 0.4rem; line-height: 1.2;
}
.nosotros-card-body h3 span { color: var(--primary); display: block; }
.nosotros-card-body p { font-size: 0.85rem; color: var(--muted); line-height: 1.6; }

@media (max-width: 767px) {
  .nosotros-grid { flex-direction: column; align-items: center; }
  .nosotros-card { width: 100%; max-width: 340px; }
  .nosotros-card:nth-child(1),
  .nosotros-card:nth-child(2),
  .nosotros-card:nth-child(3) { transform: none; }
}

/* ============================================
   COBERTURA
   ============================================ */
.coverage-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2rem;
  align-items: start;
}

.coverage-map { border-radius: 0.75rem; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }

.coverage-map iframe {
  width: 100%; height: 450px;
  border-radius: 0.75rem; border: none; display: block;
}

.coverage-form-wrap { display: flex; flex-direction: column; justify-content: center; }

.coverage-card {
  padding: 2rem; background: var(--background);
  border-radius: 0.75rem; border: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.coverage-card-title { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; }
.coverage-card-title svg { width: 1.25rem; height: 1.25rem; stroke: var(--primary); flex-shrink: 0; }
.coverage-card-title h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.125rem; color: var(--foreground); }

.coverage-card-sub { font-size: 0.875rem; color: var(--muted); margin-bottom: 1.25rem; }

.form-group { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1rem; }

.form-input {
  width: 100%; padding: 0.625rem 0.875rem;
  border-radius: var(--radius); border: 1px solid var(--border);
  background-color: var(--background); font-family: var(--font-body);
  font-size: 0.875rem; color: var(--foreground); outline: none;
  transition: border-color 0.2s, box-shadow 0.2s; box-sizing: border-box;
}
.form-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1); }
.form-input::placeholder { color: var(--muted); }

.coverage-divider { margin: 1.25rem 0; border: none; border-top: 1px solid var(--border); }

@media (max-width: 768px) {
  .coverage-grid { grid-template-columns: 1fr; }
  .coverage-map iframe { height: clamp(200px, 40vh, 300px); }
}

/* ============================================
   CTA
   ============================================ */
#contacto.cta-section { position: relative; overflow: hidden; }

.cta-dots {
  position: absolute; inset: 0; opacity: 0.05;
  background-image: radial-gradient(circle, var(--primary) 1px, transparent 1px);
  background-size: 40px 40px;
}

.cta-content {
  position: relative; z-index: 10;
  text-align: center; max-width: 40rem; margin: 0 auto;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700; color: var(--foreground); margin-bottom: 1.5rem;
}

.cta-subtitle { font-size: 1.125rem; color: var(--muted); margin-bottom: 2.5rem; }

.cta-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background-color: var(--background);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
}

.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }

@media (min-width: 768px) {
  .footer-inner { flex-direction: row; justify-content: space-between; }
}

.footer-logo { display: flex; align-items: center; gap: 0.5rem; }
.footer-logo-icon { width: 2rem; height: 2rem; border-radius: 50%; border: 2px solid var(--primary); display: flex; align-items: center; justify-content: center; }
.footer-logo-icon svg { width: 1rem; height: 1rem; stroke: var(--primary); }
.footer-logo-text { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; color: var(--foreground); }
.footer-logo-text span { color: var(--primary); }

.footer-links { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer-links a { font-size: 0.875rem; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--primary); }

.footer-copy { font-size: 0.75rem; color: var(--muted); }

/* ============================================
   WHATSAPP FLOTANTE - DALILA
   ============================================ */
.whatsapp-wrapper {
  position: fixed; bottom: 2rem; right: 2rem;
  z-index: 999;
  display: flex; flex-direction: column; align-items: flex-end; gap: 0.5rem;
}

.whatsapp-burbuja {
  background: var(--background); color: var(--foreground);
  font-size: 0.875rem; font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 1rem 1rem 0 1rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  white-space: nowrap;
  animation: burbuja-entrada 1s ease forwards, burbuja-flotar 3s ease-in-out 0.4s infinite;
  transform-origin: bottom right;
  position: relative;
}

.whatsapp-burbuja::after {
  content: '';
  position: absolute; bottom: -8px; right: 12px;
  border: 8px solid transparent;
  border-top-color: #fff; border-bottom: 0;
}

.whatsapp-btn { display: block; width: clamp(5rem, 15vw, 7.5rem); height: clamp(5rem, 15vw, 7.5rem); transition: transform 0.3s; }
.whatsapp-btn img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3)); }
.whatsapp-btn:hover { transform: scale(1.1) rotate(-5deg); }

@keyframes burbuja-entrada {
  from { opacity: 0; transform: scale(0.8) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes burbuja-flotar {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-4px); }
}

/* ============================================
   RESPONSIVE HELPERS
   ============================================ */
@media (max-width: 767px) {
  .plan-card.popular { transform: scale(1); }
}

/* ============================================
   ACCESIBILIDAD — focus-visible
   ============================================ */
.btn:focus-visible,
.navbar-link:focus-visible,
.navbar-mobile-link:focus-visible,
.footer-links a:focus-visible,
.whatsapp-btn:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: var(--radius);
}
.form-input:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 0;
}

/* ============================================
   ACCESIBILIDAD — prefers-reduced-motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  .fade-in-up,
  .fade-in-left,
  .fade-in-right {
    transition: none;
    opacity: 1;
    transform: none;
  }
  .fade-in-up.visible,
  .fade-in-left.visible,
  .fade-in-right.visible {
    transition: none;
  }
  .whatsapp-burbuja {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .clientes-inner {
    animation-duration: 0.001s !important;
  }
  .btn,
  .service-card,
  .plan-card,
  .nosotros-card {
    transition: none;
  }
}

/* ============================================
   PRINT
   ============================================ */
@media print {
  .navbar,
  .whatsapp-wrapper,
  .cta-dots,
  .particles-canvas,
  .hero-bottom-fade { display: none !important; }

  #inicio { min-height: auto; padding: 2rem 0; }
  .hero-bg { display: none; }
  .hero-content { width: 100%; max-width: 100%; padding: 1rem 0; }

  body { color: #000; background: #fff; }
  .container { max-width: 100%; }

  .btn {
    border: 1px solid currentColor;
    background: none !important;
    color: #000 !important;
  }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.7rem;
    color: #555;
  }
  a[href^="tel"]::after,
  a[href^="https://wa.me"]::after { content: ""; }
}

/* ============================================
   PQR FOOTER LINK
   ============================================ */
.footer-pqr {
  text-align: center;
  margin-top: 0.5rem;
  font-size: 0.72rem;
  opacity: 0.5;
}
.footer-pqr a {
  color: inherit;
  text-decoration: none;
  letter-spacing: 0.04em;
}
.footer-pqr a:hover {
  text-decoration: underline;
  opacity: 1;
}

/* ============================================
   COBERTURA MUNICIPIOS TAGS
   ============================================ */
.coverage-municipios {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 0.75rem;
}
.coverage-tag {
  display: inline-block;
  padding: 0.25rem 0.85rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--color-text, #fff);
}

/* ============================================
   ACCESIBILIDAD — sr-only & focus-visible
   ============================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #FF6B00;
  outline-offset: 3px;
  border-radius: 3px;
}

/* ============================================
   DROPDOWN — touch toggle (JS aplica .dropdown-open en touch)
   ============================================ */
.navbar-dropdown-wrap.dropdown-open .navbar-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0ms;
}
.navbar-dropdown-wrap.dropdown-open .navbar-dropdown-trigger svg {
  transform: rotate(180deg);
}
.navbar-dropdown-trigger { cursor: pointer; }

/* ============================================
   CURSOR PERSONALIZADO CON ESTELA
   ============================================ */
@media (hover: hover) and (pointer: fine) {
  body,
  a, button, .btn,
  input, select, textarea,
  [role="button"],
  .navbar-dropdown-trigger {
    cursor: none !important;
  }
}

.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background: #FF6B00;
  border: 2px solid transparent;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  will-change: transform, width, height;
  transition: width 0.2s ease,
              height 0.2s ease,
              background 0.2s ease,
              border-color 0.2s ease,
              opacity 0.15s ease;
  transform: translate3d(-200px, -200px, 0);
}

.cursor-trail {
  position: fixed;
  top: 0;
  left: 0;
  background: #FF6B00;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  will-change: transform;
  transform: translate3d(-200px, -200px, 0);
  transition: opacity 0.1s ease;
}

/* ============================================
   NAVBAR DROPDOWN
   ============================================ */
.navbar-dropdown-wrap {
  position: relative;
}

.navbar-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  cursor: default;
  user-select: none;
}

.navbar-dropdown-trigger svg {
  transition: transform 0.2s ease;
}

.navbar-dropdown-wrap:hover .navbar-dropdown-trigger svg,
.navbar-dropdown-wrap:focus-within .navbar-dropdown-trigger svg {
  transform: rotate(180deg);
}

.navbar-dropdown {
  position: absolute;
  top: calc(100% + 0.625rem);
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
  min-width: 230px;
  padding: 0.5rem 0;
  z-index: 500;
  border: 1px solid var(--border);
  /* Oculto con opacity/visibility para permitir transition-delay al cerrar */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.12s ease, visibility 0.12s ease;
  transition-delay: 150ms; /* delay al salir del área */
}

/* Desktop: hover puro con CSS — abre sin delay, cierra con 150ms */
@media (hover: hover) and (pointer: fine) {
  .navbar-dropdown-wrap:hover .navbar-dropdown,
  .navbar-dropdown-wrap:focus-within .navbar-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0ms;
  }
}

.navbar-dropdown-item {
  display: block;
  padding: 0.55rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}

.navbar-dropdown-item:hover {
  color: #FF6B00;
  background: rgba(255, 107, 0, 0.05);
}

/* Mobile sub-links */
.navbar-mobile-group {
  display: flex;
  flex-direction: column;
}

.navbar-mobile-group-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--foreground);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}

.navbar-mobile-group-label svg {
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.navbar-mobile-group.group-open .navbar-mobile-group-label svg {
  transform: rotate(180deg);
}

.navbar-mobile-sublinks {
  display: none;
  flex-direction: column;
}

.navbar-mobile-group.group-open .navbar-mobile-sublinks {
  display: flex;
}

.navbar-mobile-sublink {
  display: block;
  padding: 0.45rem 1.5rem 0.45rem 2rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--foreground);
  text-decoration: none;
  border-left: 2px solid rgba(255,107,0,0.25);
  margin-left: 1.5rem;
  transition: color 0.15s, border-color 0.15s;
}

.navbar-mobile-sublink:hover,
.navbar-mobile-sublink:focus {
  color: #FF6B00;
  border-left-color: #FF6B00;
}

/* ============================================
   PROCESO DE INSTALACIÓN
   ============================================ */
.process-section { position: relative; overflow: hidden; }

.process-steps {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2.5rem;
  max-width: 760px;
  margin-inline: auto;
}

.process-step {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  background: #fff;
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border);
  transition: box-shadow 0.2s;
}

.process-step:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
}

.process-step-num {
  font-size: 2rem;
  font-weight: 700;
  color: #FF6B00;
  line-height: 1;
  flex-shrink: 0;
  min-width: 2.75rem;
  letter-spacing: -0.02em;
}

.process-step-body { flex: 1; }

.process-step-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  text-transform: none;
  letter-spacing: 0;
}

.process-step-desc {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0;
}

.process-clients {
  margin-top: 2.5rem;
  text-align: center;
}

.process-clients-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 0.875rem;
}

.process-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.process-tag {
  display: inline-block;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  border: 1px solid #FF6B00;
  color: #FF6B00;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* ============================================
   SOPORTE TÉCNICO
   ============================================ */
.support-section { position: relative; overflow: hidden; }

.support-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

@media (max-width: 640px) {
  .support-grid { grid-template-columns: 1fr; }
}

.support-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.75rem 1.5rem;
}

.support-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.support-card-header svg {
  width: 22px;
  height: 22px;
  stroke: #FF6B00;
  flex-shrink: 0;
}

.support-card-header h3 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.support-schedule {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.support-schedule li {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  gap: 0.5rem;
}

.support-day { font-weight: 600; }

.support-hours { color: var(--muted); }

.support-247 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #FF6B00;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.support-note {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}

.support-standards {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: center;
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}

.support-standard {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--foreground);
}

.support-standard svg {
  width: 16px;
  height: 16px;
  stroke: #FF6B00;
  flex-shrink: 0;
}

/* ============================================
   CORPORATIVO IMAGEN GRID
   ============================================ */
.corp-img-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

@media (max-width: 900px) {
  .corp-img-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .corp-img-grid { grid-template-columns: 1fr; }
}

.corp-img-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 220px;
  display: flex;
  align-items: flex-end;
}

.corp-img-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.corp-img-card:hover img {
  transform: scale(1.05);
}

.corp-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.25) 55%, transparent 100%);
}

.corp-img-body {
  position: relative;
  padding: 1.25rem 1.125rem 1.125rem;
  z-index: 1;
}

.corp-img-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: 0.35rem;
}

.corp-img-desc {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.5;
  margin: 0;
}

.seg-img-cta {
  display: inline-block;
  margin-top: 0.85rem;
  padding: 0.45rem 1rem;
  background: #FF6B00;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 0.375rem;
  transition: background 0.2s;
}
.seg-img-cta:hover { background: #e05d00; }

/* ============================================
   SEGURIDAD PAGE
   ============================================ */
.seg-hero {
  background: #f8f7f4;
  padding: 6rem 0 3rem;
  position: relative;
  overflow: hidden;
}

.seg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

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

@media (max-width: 560px) {
  .seg-grid { grid-template-columns: 1fr; }
}

.seg-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.5rem 1.25rem;
  transition: box-shadow 0.2s;
}

.seg-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.08);
}

.seg-card-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  background: rgba(255,107,0,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.seg-card-icon svg {
  width: 22px;
  height: 22px;
  stroke: #FF6B00;
}

.seg-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: 0.4rem;
}

.seg-card-desc {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

.seg-process {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 2rem;
  counter-reset: seg-step;
}

.seg-process-step {
  flex: 1;
  min-width: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.25rem 0.75rem;
  position: relative;
}

.seg-process-step::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 60%;
  background: var(--border);
}

.seg-process-step:last-child::after { display: none; }

.seg-process-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #FF6B00;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  flex-shrink: 0;
}

.seg-process-label {
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.4;
}

.seg-sectors {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.seg-sector-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  background: rgba(255,107,0,0.08);
  border: 1px solid rgba(255,107,0,0.2);
  color: #FF6B00;
  font-size: 0.82rem;
  font-weight: 600;
}
.seg-sector-tag svg { width: 1rem; height: 1rem; flex-shrink: 0; }

