/* ============================================
   TECH MASTER — Index Styles
   Negro + Azul Eléctrico
   ============================================ */

:root {
  --electric-blue: #00b4ff;
  --dark-bg: #0a0a0f;
  --dark-card: #111118;
  --dark-border: #1e1e2e;
  --text-light: #e0e0f0;
  --text-muted: #8888aa;
}

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(135deg, #0a0a0f 0%, #0d1b2a 50%, #0a0a0f 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 6rem 1.5rem 4rem;
}

.hero::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,180,255,0.12) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0,180,255,0.07) 0%, transparent 70%);
  bottom: -50px;
  left: -50px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 750px;
  text-align: center;
}

.hero-tag {
  display: inline-block;
  background: rgba(0,180,255,0.12);
  color: var(--electric-blue);
  border: 1px solid rgba(0,180,255,0.3);
  padding: 0.4rem 1.2rem;
  border-radius: 25px;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
}

.hero-title {
  font-size: 2.4rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 1.2rem;
}

.hero-typewriter {
  color: var(--electric-blue);
  border-right: 3px solid var(--electric-blue);
  padding-right: 4px;
  animation: blink 0.8s step-end infinite;
}

@keyframes blink {
  50% { border-color: transparent; }
}

.hero-subtitle {
  font-size: 1rem;
  color: #aab8c8;
  line-height: 1.8;
  margin-bottom: 2.5rem;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

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

.btn-primary {
  display: inline-block;
  background: var(--electric-blue);
  color: #000;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(0,180,255,0.35);
}

.btn-primary:hover {
  background: #33c5ff;
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(0,180,255,0.5);
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: #fff;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1.5px solid rgba(255,255,255,0.3);
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  border-color: var(--electric-blue);
  color: var(--electric-blue);
  transform: translateY(-2px);
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.3);
  font-size: 1.4rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── ESTADÍSTICAS ── */
.stats-section {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  background: var(--dark-bg);
  border-top: 1px solid var(--dark-border);
  border-bottom: 1px solid var(--dark-border);
}

.stat-item {
  padding: 2.5rem 1rem;
  text-align: center;
  border-right: 1px solid var(--dark-border);
  border-bottom: 1px solid var(--dark-border);
}

.stat-item:nth-child(2n) { border-right: none; }
.stat-item:nth-child(3),
.stat-item:nth-child(4) { border-bottom: none; }

.stat-number {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--electric-blue);
  line-height: 1;
}

.stat-plus {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--electric-blue);
}

.stat-item p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ── QUIÉNES SOMOS ── */
.about-section {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding: 4rem 1.5rem;
  background: #0d0d14;
  max-width: 1200px;
  margin: 0 auto;
}

.section-tag {
  display: inline-block;
  color: var(--electric-blue);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.8rem;
}

.about-text h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 1.2rem;
}

.about-text p {
  font-size: 0.97rem;
  color: #aab;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.about-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.2rem 0 1.8rem;
}

.about-badges span {
  background: rgba(0,180,255,0.08);
  border: 1px solid rgba(0,180,255,0.2);
  color: var(--electric-blue);
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

.about-img img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,180,255,0.15);
}

/* ── SERVICIOS ── */
.services-section {
  padding: 4rem 1.5rem;
  background: var(--dark-bg);
}

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

.section-header h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.5rem;
}

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

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 14px;
  padding: 1.8rem 1.5rem;
  transition: all 0.3s ease;
}

.service-card:hover {
  border-color: var(--electric-blue);
  box-shadow: 0 0 24px rgba(0,180,255,0.12);
  transform: translateY(-4px);
}

.service-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.6rem;
}

.service-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.service-price {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--electric-blue);
  margin-bottom: 0.8rem;
}

.service-card a {
  color: var(--electric-blue);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.service-card a:hover { color: #33c5ff; }

.services-cta {
  text-align: center;
  margin-top: 3rem;
}

/* ── POR QUÉ ELEGIRNOS ── */
.why-section {
  padding: 4rem 1.5rem;
  background: #0d0d14;
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.why-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 14px;
  padding: 2rem 1.5rem;
  transition: all 0.3s ease;
}

.why-card:hover {
  border-color: rgba(0,180,255,0.4);
  box-shadow: 0 0 20px rgba(0,180,255,0.08);
}

.why-card span {
  font-size: 2.2rem;
  display: block;
  margin-bottom: 1rem;
}

.why-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.6rem;
}

.why-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── CTA FINAL ── */
.cta-section {
  padding: 5rem 1.5rem;
  background: linear-gradient(135deg, #0a0a0f 0%, #0d1b2a 100%);
  text-align: center;
  border-top: 1px solid var(--dark-border);
}

.cta-content h2 {
  font-size: 1.9rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
}

.cta-content p {
  font-size: 1rem;
  color: #aab;
  max-width: 540px;
  margin: 0 auto 2rem;
  line-height: 1.8;
}

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

.whatsapp-btn {
  display: inline-block;
  background: #25d366;
  color: #fff;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.whatsapp-btn:hover {
  background: #1ebe5d;
  transform: translateY(-2px);
}

/* ── BOTÓN WHATSAPP FLOTANTE ── */
.whatsapp-float {
  position: fixed;
  bottom: 1.8rem;
  right: 1.8rem;
  width: 58px;
  height: 58px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  z-index: 9999;
  transition: all 0.3s ease;
  animation: pulse-wsp 2.5s infinite;
}

.whatsapp-float:hover {
  background: #1ebe5d;
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,0.6);
}

@keyframes pulse-wsp {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
  50% { box-shadow: 0 4px 35px rgba(37,211,102,0.7); }
}

/* ── TABLET 600px+ ── */
@media screen and (min-width: 600px) {
  .hero-title { font-size: 3rem; }
  .stats-section { grid-template-columns: repeat(4, 1fr); }
  .stat-item { border-bottom: none; }
  .stat-item:nth-child(3) { border-right: 1px solid var(--dark-border); }
  .stat-item:last-child { border-right: none; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── DESKTOP 1000px+ ── */
@media screen and (min-width: 1000px) {
  .hero-title { font-size: 3.8rem; }
  .hero-subtitle { font-size: 1.1rem; }
  .about-section {
    flex-direction: row;
    align-items: center;
    gap: 4rem;
    padding: 6rem 2rem;
  }
  .about-text { flex: 1; }
  .about-img { flex: 1; }
  .about-text h2 { font-size: 2.2rem; }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .why-grid { grid-template-columns: repeat(4, 1fr); }
  .cta-content h2 { font-size: 2.5rem; }
}