/* ============================================
   eData101.com — Landing Page Styles
   Tecnología. Confianza. Seguridad.
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #0a192f;
  --primary-light: #112240;
  --accent: #00b4d8;
  --accent-hover: #0096b4;
  --accent-green: #00e676;
  --text: #ccd6f6;
  --text-light: #8892b0;
  --text-muted: #5a6380;
  --white: #e6f1ff;
  --card-bg: #112240;
  --card-border: #1d3461;
  --gradient-1: linear-gradient(135deg, #0a192f 0%, #112240 50%, #1a2d50 100%);
  --gradient-accent: linear-gradient(135deg, #00b4d8, #0077b6);
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1140px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--primary);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: var(--transition);
}
a:hover { color: var(--white); }

/* --- Header / Nav --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 25, 47, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 180, 216, 0.1);
  transition: var(--transition);
}

header.scrolled {
  background: rgba(10, 25, 47, 0.97);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 44px;
}

.nav-logo img {
  height: 44px;
  width: auto;
  filter: drop-shadow(0 0 8px rgba(0, 180, 216, 0.3));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  color: var(--text-light);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--white);
  background: rgba(0, 180, 216, 0.1);
}

.nav-cta {
  background: var(--gradient-accent) !important;
  color: var(--white) !important;
  padding: 8px 20px !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0, 180, 216, 0.4);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-1);
  position: relative;
  overflow: hidden;
  padding: 120px 24px 80px;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(0, 180, 216, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 70% 20%, rgba(0, 230, 118, 0.04) 0%, transparent 40%);
  animation: heroGlow 20s ease-in-out infinite;
}

@keyframes heroGlow {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-2%, -1%); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  text-align: center;
}

.hero-logo {
  height: 80px;
  width: auto;
  margin-bottom: 24px;
  filter: drop-shadow(0 0 20px rgba(0, 180, 216, 0.2));
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--white) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero .tagline {
  font-size: 1.3rem;
  color: var(--text-light);
  max-width: 650px;
  margin: 0 auto 32px;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-family: var(--font);
}

.btn-primary {
  background: var(--gradient-accent);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(0, 180, 216, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 180, 216, 0.5);
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}

.btn-secondary:hover {
  background: rgba(0, 180, 216, 0.1);
  color: var(--white);
  border-color: var(--white);
}

.btn-green {
  background: linear-gradient(135deg, #00e676, #00c853);
  color: #0a192f;
  box-shadow: 0 4px 20px rgba(0, 230, 118, 0.3);
}

.btn-green:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 230, 118, 0.5);
  color: #0a192f;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 60px;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  display: block;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

/* --- Section Base --- */
.section {
  padding: 100px 24px;
}

.section-alt {
  background: var(--primary-light);
}

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

.section-header h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-light);
  font-size: 1.1rem;
}

.section-header .badge {
  display: inline-block;
  background: rgba(0, 180, 216, 0.15);
  color: var(--accent);
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

/* --- Products Grid (Catalogo) --- */
.products-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 32px;
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.product-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 30px rgba(0, 180, 216, 0.1);
  background: linear-gradient(135deg, #112240 0%, #0d2137 100%);
}

.product-card.featured::before {
  content: '⭐ Destacado';
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--gradient-accent);
  color: var(--white);
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
}

.product-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.product-category {
  font-size: 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
  margin-bottom: 8px;
}

.product-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}

.product-card .eslogan {
  font-size: 0.95rem;
  color: var(--accent);
  margin-bottom: 12px;
  font-weight: 500;
}

.product-card .descripcion {
  font-size: 0.92rem;
  color: var(--text-light);
  margin-bottom: 20px;
  flex: 1;
  line-height: 1.6;
}

.product-card .precio {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.product-card .prueba-gratis {
  font-size: 0.8rem;
  color: var(--accent-green);
  margin-bottom: 20px;
}

.product-card .btn {
  width: 100%;
  justify-content: center;
}

/* --- Services Section --- */
.services-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  transition: var(--transition);
}

.service-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.service-card .icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.service-card h4 {
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 8px;
}

.service-card p {
  font-size: 0.88rem;
  color: var(--text-light);
}

/* --- About Section --- */
.about-content {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
}

.about-text p {
  color: var(--text-light);
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.about-features {
  list-style: none;
  margin-top: 24px;
}

.about-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.about-features li::before {
  content: '✓';
  color: var(--accent-green);
  font-weight: 700;
  font-size: 1.1rem;
}

.about-visual {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
}

.arch-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.arch-box {
  background: var(--primary);
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 0.9rem;
  color: var(--text);
  width: 100%;
  max-width: 300px;
}

.arch-box.proxy {
  border-color: #f7c948;
  color: #f7c948;
}

.arch-box.hub {
  border-color: var(--accent);
  color: var(--accent);
}

.arch-box.satellite {
  border-color: var(--accent-green);
  color: var(--accent-green);
}

.arch-arrow {
  color: var(--text-muted);
  font-size: 1.2rem;
}

/* --- Contact / WhatsApp CTA --- */
.contact-section {
  text-align: center;
  background: var(--gradient-1);
  position: relative;
  overflow: hidden;
}

.contact-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(0, 180, 216, 0.08) 0%, transparent 60%);
}

.contact-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
}

.contact-content h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}

.contact-content p {
  color: var(--text-light);
  margin-bottom: 32px;
  font-size: 1.1rem;
}

.contact-methods {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Footer --- */
footer {
  background: rgba(10, 25, 47, 0.95);
  border-top: 1px solid rgba(0, 180, 216, 0.1);
  padding: 40px 24px;
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo img {
  height: 32px;
  width: auto;
}

.footer-logo span {
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.85rem;
}

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

.footer-copy {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
  width: 100%;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--primary); }
::-webkit-scrollbar-thumb { background: var(--card-border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* --- Responsive --- */
@media (max-width: 768px) {
  .menu-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(10, 25, 47, 0.98);
    flex-direction: column;
    padding: 20px;
    gap: 4px;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    border-bottom: 1px solid rgba(0, 180, 216, 0.1);
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-links a {
    display: block;
    width: 100%;
    padding: 12px 16px;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero .tagline {
    font-size: 1.05rem;
  }

  .hero-stats {
    gap: 24px;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .section {
    padding: 60px 20px;
  }

  .section-header h2 {
    font-size: 1.7rem;
  }

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

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

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    justify-content: center;
  }

  .hero-logo {
    height: 56px;
  }
}

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Loading skeleton for catalog */
.catalog-loading {
  text-align: center;
  padding: 60px;
  color: var(--text-muted);
}

.catalog-loading .spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--card-border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.catalog-error {
  text-align: center;
  padding: 60px;
  color: #ff6b6b;
}
