/* ============================================
   WISPRONET - Estilos Principales
   Tema: Mesmerize / gradiente rojo-morado
   ============================================ */

/* ---- Variables ---- */
:root {
  --red:    #f43b47;
  --purple: #453a94;
  --grad:   linear-gradient(142deg, rgba(244,59,71,1) 0%, rgba(69,58,148,1) 100%);
  --grad-soft: linear-gradient(142deg, rgba(244,59,71,0.85) 0%, rgba(69,58,148,0.85) 100%);
  --accent: #f43b47;
  --accent2: #453a94;
  --dark:   #1e1e2e;
  --light-bg: #f5fafd;
  --white:  #ffffff;
  --text:   #555;
  --heading:#1e1e2e;
  --border: #e0e0e0;
  --font:   'Muli', 'Open Sans', sans-serif;
  --transition: 0.3s ease;
  --shadow: 0 4px 20px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.16);
  --radius: 6px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font); color: var(--text); background: #fff; line-height: 1.7; overflow-x: hidden; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
img { max-width: 100%; height: auto; display: block; }
h1,h2,h3,h4,h5,h6 { font-family: var(--font); color: var(--heading); line-height: 1.3; font-weight: 700; }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h4 { font-size: 1.1rem; }
h5 { font-size: 0.82rem; letter-spacing: 2px; text-transform: uppercase; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }
ul { list-style: none; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.lead { font-size: 1.05rem; color: #666; font-weight: 300; }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 11px 30px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-align: center;
}
.btn-primary {
  background: var(--grad);
  color: #fff;
  border-color: transparent;
}
.btn-primary:hover {
  opacity: 0.88;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(244,59,71,0.35);
}
.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.85);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border-color: #fff;
}
.btn-outline-dark {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn-outline-dark:hover {
  background: var(--accent);
  color: #fff;
}
.btn-white {
  background: #fff;
  color: var(--accent2);
  border-color: #fff;
  font-weight: 700;
}
.btn-white:hover {
  background: rgba(255,255,255,0.9);
  color: var(--accent2);
  transform: translateY(-2px);
}
.btn-premium {
  background: linear-gradient(135deg, #f43b47, #453a94);
  color: #fff;
  border: none;
}
.btn-premium:hover {
  opacity: 0.88;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(69,58,148,0.4);
}
.btn-lg  { padding: 14px 38px; font-size: 1rem; }
.btn-sm  { padding: 8px 22px; font-size: 0.82rem; }
.btn-block { width: 100%; display: block; }

/* ---- Section Headers ---- */
.section-header { margin-bottom: 3rem; }
.section-header h2 { margin-bottom: 0.8rem; }
.section-subtitle {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 0.78rem;
  letter-spacing: 3px;
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: block;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  background: var(--dark);
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
  transition: background var(--transition);
}
.navbar.scrolled { background: rgba(30,30,46,0.97); }

.nav-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-logo { display: flex; align-items: center; }
.logo-img { height: 48px; width: auto; object-fit: contain; }

.nav-menu { display: flex; gap: 4px; align-items: center; }

.nav-link {
  color: rgba(255,255,255,0.85);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 8px 16px;
  border-radius: 50px;
  transition: all var(--transition);
}
.nav-link:hover, .nav-link.active {
  background: var(--grad);
  color: #fff;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 6px;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(142deg, rgba(244,59,71,0.82) 0%, rgba(69,58,148,0.82) 100%);
  z-index: 1;
}
.hero-container {
  position: relative;
  z-index: 2;
  max-width: 1140px;
  margin: 0 auto;
  padding: 100px 20px 80px;
  display: flex;
  align-items: center;
  gap: 40px;
  width: 100%;
}
.hero-content { flex: 1; color: #fff; }
.hero-title {
  color: #fff;
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 900;
  margin-bottom: 1.2rem;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.hero-subtitle {
  color: rgba(255,255,255,0.92);
  font-size: 1.05rem;
  font-weight: 300;
  margin-bottom: 2.2rem;
  max-width: 520px;
  line-height: 1.8;
}
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-image {
  flex: 0 0 40%;
  max-width: 40%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-device {
  width: 100%;
  max-width: 380px;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3));
  animation: float 4s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

/* ============================================
   FEATURES TOP
   ============================================ */
.features-top {
  background: #fff;
  padding: 80px 0;
  margin-top: -80px;
  position: relative;
  z-index: 10;
  box-shadow: 0 -4px 30px rgba(0,0,0,0.06);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
}
.feature-item { padding: 24px 16px; }
.feature-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
  font-size: 1.6rem;
  color: #fff;
  box-shadow: 0 6px 20px rgba(244,59,71,0.25);
  transition: transform var(--transition);
}
.feature-item:hover .feature-icon { transform: scale(1.1) rotate(5deg); }
.feature-item h5 { color: var(--heading); margin-bottom: 0.6rem; font-size: 0.88rem; letter-spacing: 1px; }
.feature-item p  { color: #666; font-size: 0.95rem; }

/* ============================================
   COVERAGE BANNER
   ============================================ */
.coverage {
  background: var(--grad);
  padding: 20px 0;
}
.coverage-text {
  color: #fff;
  font-size: 0.95rem;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.coverage-text i { font-size: 1.1rem; }
.coverage-text strong { color: rgba(255,255,255,0.95); }

/* ============================================
   PLANS
   ============================================ */
.plans {
  background: var(--light-bg);
  padding: 80px 0;
}
.plans-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}
.plan-card {
  background: #fff;
  border-radius: 12px;
  padding: 30px 20px;
  text-align: center;
  border: 2px solid var(--border);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.plan-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--red);
}
.plan-card.plan-featured {
  border-color: var(--red);
  box-shadow: 0 8px 30px rgba(244,59,71,0.18);
}
.plan-card.plan-premium {
  border-color: var(--purple);
}
.plan-card.plan-premium:hover { border-color: var(--purple); }

.plan-badge {
  position: absolute;
  top: 14px;
  right: -28px;
  background: var(--grad);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 4px 36px;
  transform: rotate(45deg);
}
.plan-card.plan-premium .plan-badge { background: linear-gradient(135deg, #f43b47, #453a94); }

.plan-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 1rem;
  box-shadow: 0 4px 14px rgba(244,59,71,0.25);
}
.plan-card.plan-premium .plan-icon { background: linear-gradient(135deg, #f43b47, #453a94); }

.plan-card h4 { color: var(--heading); margin-bottom: 0.3rem; font-size: 1rem; font-weight: 800; }
.plan-tagline { font-size: 0.82rem; color: #888; margin-bottom: 0.2rem; }
.plan-install { font-size: 0.8rem; color: #aaa; margin-bottom: 0.8rem; }

.plan-price {
  font-size: 1.8rem;
  font-weight: 900;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.2rem;
  line-height: 1;
}
.plan-price span { font-size: 0.85rem; font-weight: 400; color: #888; -webkit-text-fill-color: #888; }

.plan-features {
  text-align: left;
  width: 100%;
  margin-bottom: 1.5rem;
  flex: 1;
}
.plan-features li {
  padding: 6px 0;
  font-size: 0.88rem;
  color: #555;
  border-bottom: 1px solid #f5f5f5;
  display: flex;
  align-items: center;
  gap: 8px;
}
.plan-features li i { color: var(--red); font-size: 0.75rem; flex-shrink: 0; }

/* Annual plan */
.annual-plan {
  background: var(--grad);
  border-radius: 12px;
  padding: 28px 36px;
  margin-bottom: 20px;
}
.annual-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.annual-content {
  display: flex;
  align-items: center;
  gap: 20px;
  color: #fff;
}
.annual-content i { font-size: 2.5rem; opacity: 0.9; }
.annual-content h4 { color: #fff; margin-bottom: 0.2rem; font-size: 1.2rem; }
.annual-content p { color: rgba(255,255,255,0.9); margin: 0; font-size: 0.95rem; }
.annual-content strong { color: #fff; font-size: 1.1rem; }

/* IFT badge */
.ift-badge {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 20px;
}
.ift-badge p { margin: 0; font-size: 0.88rem; color: #666; }
.ift-badge i { color: var(--red); margin-right: 6px; }

/* ============================================
   ABOUT
   ============================================ */
.about {
  background: #fff;
  padding: 90px 0;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.about-content h5 { margin-bottom: 0.5rem; }
.about-content h2 { margin-bottom: 1.2rem; }
.about-content p  { color: #666; margin-bottom: 1rem; }
.about-content .btn { margin-top: 0.5rem; }

.img-mosaic {
  position: relative;
  height: 380px;
}
.img-mosaic img { position: absolute; border-radius: 8px; object-fit: cover; }
.img-mosaic .mosaic-main {
  width: 65%;
  height: 260px;
  top: 0;
  left: 0;
  z-index: 3;
}
.img-mosaic .mosaic-tr {
  width: 48%;
  height: 180px;
  top: 0;
  right: 0;
  z-index: 2;
}
.img-mosaic .mosaic-br {
  width: 55%;
  height: 170px;
  bottom: 0;
  right: 0;
  z-index: 2;
}
.shadow { box-shadow: var(--shadow-lg); }

/* ============================================
   GALLERY
   ============================================ */
.gallery {
  background: var(--light-bg);
  padding: 60px 0;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.gallery-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.gallery-img:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}

/* ============================================
   CONTRACTS
   ============================================ */
.contracts {
  background: #fff;
  padding: 80px 0;
}
.contracts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 800px;
  margin: 0 auto;
}
.contract-card {
  background: var(--light-bg);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 36px 28px;
  text-align: center;
  transition: all var(--transition);
}
.contract-card:hover {
  border-color: var(--red);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}
.contract-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  margin: 0 auto 1.2rem;
  box-shadow: 0 4px 14px rgba(244,59,71,0.2);
}
.contract-card h4 { margin-bottom: 0.8rem; font-size: 1rem; }
.contract-card p  { color: #666; font-size: 0.9rem; margin-bottom: 1.5rem; }

/* ============================================
   COUNTERS
   ============================================ */
.counters {
  background: var(--light-bg);
  padding: 80px 0;
}
.counters-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  justify-items: center;
}
.counter-item { text-align: center; }
.counter-circle {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 0 auto;
}
.counter-circle svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.counter-circle circle { stroke-width: 5; }
.counter-circle .circle-bar { transition: stroke-dashoffset 2s ease; }
.counter-circle.c1 .circle-bar { stroke: var(--red); }
.counter-circle.c2 .circle-bar { stroke: var(--purple); }
.counter-circle.c3 .circle-bar { stroke: #e67e22; }

.counter-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.counter-number {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--heading);
  line-height: 1;
}
.counter-label {
  font-size: 0.78rem;
  color: #888;
  margin-top: 5px;
  font-weight: 600;
  letter-spacing: 0.3px;
  max-width: 100px;
  text-align: center;
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
  background: #fff;
  padding: 90px 0;
}
.contact-form-wrapper { max-width: 680px; margin: 0 auto; }
.contact-card {
  background: var(--light-bg);
  border-radius: 12px;
  padding: 44px 40px;
  box-shadow: var(--shadow);
}
.form-group { margin-bottom: 1.4rem; }
.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 6px;
}
.req { color: var(--red); }
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--text);
  background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(244,59,71,0.1);
}
.form-group input.error,
.form-group textarea.error { border-color: var(--red); }
.form-group textarea { resize: vertical; min-height: 110px; }
.form-error { display: block; color: var(--red); font-size: 0.8rem; margin-top: 4px; }
.form-submit { margin-top: 1.5rem; }
.form-success {
  margin-top: 1.2rem;
  padding: 14px 18px;
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  border-radius: var(--radius);
  color: #2e7d32;
  font-size: 0.95rem;
  text-align: center;
}
.form-error-msg {
  margin-top: 1.2rem;
  padding: 14px 18px;
  background: #fdecea;
  border: 1px solid #f5c6cb;
  border-radius: var(--radius);
  color: #c62828;
  font-size: 0.95rem;
  text-align: center;
}

/* ============================================
   FOOTER
   ============================================ */
.footer { background: var(--dark); color: rgba(255,255,255,0.8); }
.footer-top { padding: 60px 0 40px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
  gap: 40px;
}
.footer-brand .footer-logo { height: 50px; width: auto; margin-bottom: 1rem; filter: brightness(0) invert(1); }
.footer-brand p { font-size: 0.88rem; color: rgba(255,255,255,0.6); line-height: 1.7; }
.footer-links h6,
.footer-contact-info h6,
.footer-cta h6 {
  color: #fff;
  font-size: 0.82rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1rem;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--red);
  display: inline-block;
}
.footer-links ul li { margin-bottom: 8px; }
.footer-links ul li a {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  transition: color var(--transition);
}
.footer-links ul li a:hover { color: var(--red); }
.footer-contact-info p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.footer-contact-info i { color: var(--red); margin-top: 3px; flex-shrink: 0; }
.footer-cta p { font-size: 0.88rem; color: rgba(255,255,255,0.65); margin-bottom: 1rem; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 18px 0;
  text-align: center;
}
.footer-bottom p { font-size: 0.82rem; color: rgba(255,255,255,0.45); margin: 0; }

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: var(--grad);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 4px 14px rgba(244,59,71,0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
  z-index: 998;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { color: #fff; transform: translateY(-3px); }

/* ============================================
   ANIMATIONS
   ============================================ */
.plan-card,
.feature-item,
.counter-item,
.contract-card,
.gallery-img {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.plan-card.visible,
.feature-item.visible,
.counter-item.visible,
.contract-card.visible,
.gallery-img.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1100px) {
  .plans-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 991px) {
  .about-grid { grid-template-columns: 1fr; }
  .img-mosaic { height: 280px; }
  .hero-image { display: none; }
  .hero-container { justify-content: center; }
  .hero-content { text-align: center; }
  .hero-buttons { justify-content: center; }
  .hero-subtitle { margin: 0 auto 2rem; }
}

@media (max-width: 767px) {
  .nav-toggle { display: block; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--dark);
    flex-direction: column;
    padding: 16px 20px;
    gap: 4px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  }
  .nav-menu.open { display: flex; }
  .nav-link { padding: 12px 16px; width: 100%; border-radius: 6px; }

  .features-grid { grid-template-columns: 1fr; gap: 24px; }
  .features-top { margin-top: 0; }

  .plans-grid { grid-template-columns: 1fr; }

  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-img { height: 200px; }

  .contracts-grid { grid-template-columns: 1fr; }

  .counters-grid { grid-template-columns: 1fr; }

  .annual-inner { flex-direction: column; text-align: center; }
  .annual-content { flex-direction: column; text-align: center; }

  .footer-grid { grid-template-columns: 1fr; }

  .contact-card { padding: 28px 20px; }

  .hero { min-height: 480px; }
  .hero-container { padding: 80px 20px 60px; }
}

@media (max-width: 480px) {
  .hero-buttons { flex-direction: column; align-items: center; }
  .btn-lg { width: 100%; max-width: 280px; }
}