/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --primary: #6c63ff;
  --secondary: #f7c948;
  --dark: #0f0c29;
  --dark2: #1a1a2e;
  --dark3: #302b63;
  --light: #f4f6fb;
  --white: #ffffff;
  --text: #1a1a2e;
  --text-muted: #666;
  --radius: 16px;
  --shadow: 0 8px 32px rgba(108,99,255,0.15);
  --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: var(--text); background: var(--white); overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
  background: transparent;
}
.navbar.scrolled {
  background: rgba(15,12,41,0.95);
  backdrop-filter: blur(12px);
  padding: 10px 0;
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}
.nav-container {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-size: 22px; font-weight: 900; color: var(--white);
  letter-spacing: -0.5px;
}
.nav-logo span { color: var(--secondary); }
.nav-links { display: flex; list-style: none; gap: 28px; align-items: center; }
.nav-links a { color: rgba(255,255,255,0.85); font-size: 14px; font-weight: 600; transition: var(--transition); }
.nav-links a:hover { color: var(--secondary); }
.nav-cta {
  background: var(--secondary) !important;
  color: var(--dark) !important;
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: 900 !important;
  transition: var(--transition) !important;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(247,201,72,0.4); }
.nav-toggle { display: none; background: none; border: none; color: white; font-size: 24px; cursor: pointer; }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
  display: flex; align-items: center; justify-content: center;
  text-align: center; position: relative; overflow: hidden;
  padding: 100px 24px 60px;
}
#particles-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-content { position: relative; z-index: 2; max-width: 700px; }
.hero-badge {
  display: inline-block;
  background: var(--secondary);
  color: var(--dark);
  font-weight: 900; font-size: 12px;
  padding: 6px 20px; border-radius: 50px;
  letter-spacing: 1px; text-transform: uppercase;
  margin-bottom: 24px;
  animation: fadeInDown 0.6s ease;
}
.hero-title {
  font-size: clamp(32px, 6vw, 64px);
  font-weight: 900; color: var(--white);
  line-height: 1.1; margin-bottom: 16px;
  animation: fadeInUp 0.7s ease 0.1s both;
}
.hero-title .highlight { color: var(--secondary); }
.hero-subtitle {
  font-size: clamp(14px, 2vw, 18px);
  color: rgba(255,255,255,0.75);
  margin-bottom: 36px;
  animation: fadeInUp 0.7s ease 0.2s both;
}
.hero-price-box {
  display: inline-flex; flex-direction: column; align-items: center;
  background: rgba(255,255,255,0.07);
  border: 2px solid var(--secondary);
  border-radius: var(--radius);
  padding: 20px 48px; margin-bottom: 32px;
  animation: fadeInUp 0.7s ease 0.3s both;
}
.price-desde { font-size: 11px; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 2px; }
.price-amount { font-size: clamp(36px, 6vw, 56px); font-weight: 900; color: var(--secondary); line-height: 1.1; }
.price-note { font-size: 12px; color: rgba(255,255,255,0.5); }
.btn-primary {
  display: inline-block;
  background: linear-gradient(90deg, var(--secondary), #f4a200);
  color: var(--dark);
  font-weight: 900; font-size: 16px;
  padding: 18px 52px; border-radius: 50px;
  transition: var(--transition);
  animation: fadeInUp 0.7s ease 0.4s both;
  border: none; cursor: pointer;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(247,201,72,0.4); }
.hero-stats {
  display: flex; justify-content: center; gap: 48px;
  margin-top: 48px;
  animation: fadeInUp 0.7s ease 0.5s both;
}
.stat { display: flex; flex-direction: column; align-items: center; }
.stat-num { font-size: 28px; font-weight: 900; color: var(--secondary); }
.stat-label { font-size: 12px; color: rgba(255,255,255,0.6); margin-top: 2px; }
.hero-scroll-hint {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.4); font-size: 13px;
  animation: bounce 2s infinite;
}

/* ===== SECTIONS ===== */
.section { padding: 80px 0; }
.section-alt { background: var(--light); }
.section-dark { background: var(--dark2); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 {
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 900; margin-bottom: 12px;
}
.section-header h2 .highlight { color: var(--primary); }
.section-dark .section-header h2 { color: var(--white); }
.section-dark .section-header h2 .highlight { color: var(--secondary); }
.section-header p { color: var(--text-muted); font-size: 16px; }
.section-dark .section-header p { color: rgba(255,255,255,0.6); }

/* ===== FEATURES GRID ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid rgba(108,99,255,0.08);
}
.feature-card:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(108,99,255,0.2); }
.feature-icon { font-size: 36px; margin-bottom: 14px; }
.feature-title { font-size: 16px; font-weight: 700; margin-bottom: 6px; color: var(--dark3); }
.feature-desc { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ===== SECCIONES GRID (ACTUALIZADO: CENTRADO + DINÁMICO) ===== */
.secciones-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* centra si hay menos */
  gap: 20px;
}

.seccion-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 16px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-bottom: 4px solid var(--primary);
  flex: 0 1 220px; /* ancho base y que se reordene */
}

.seccion-card:hover { transform: translateY(-6px); }

.seccion-num {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--dark3), var(--dark));
  color: var(--secondary);
  font-weight: 900; font-size: 22px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
}

.seccion-icon { font-size: 22px; margin-bottom: 8px; }
.seccion-name { font-weight: 700; font-size: 13px; color: var(--text); }

.seccion-desc {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ===== GIFTS ===== */
.gifts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.gift-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  border: 2px solid var(--secondary);
  box-shadow: 0 8px 32px rgba(247,201,72,0.15);
  transition: var(--transition);
}
.gift-card:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(247,201,72,0.25); }
.gift-icon { font-size: 48px; margin-bottom: 16px; }
.gift-title { font-size: 20px; font-weight: 900; color: var(--dark3); margin-bottom: 8px; }
.gift-desc { font-size: 14px; color: var(--text-muted); margin-bottom: 16px; }
.gift-badge {
  display: inline-block;
  background: var(--secondary);
  color: var(--dark);
  font-weight: 900; font-size: 13px;
  padding: 6px 20px; border-radius: 50px;
}

/* ===== HOSTING ===== */
.hosting-card {
  background: linear-gradient(135deg, var(--dark3), var(--dark));
  border-radius: 24px;
  padding: 48px;
  text-align: center;
  color: var(--white);
  max-width: 600px;
  margin: 0 auto;
  box-shadow: 0 16px 64px rgba(48,43,99,0.4);
}
.hosting-price { font-size: 56px; font-weight: 900; color: var(--secondary); line-height: 1; margin-bottom: 12px; }
.hosting-card p { color: rgba(255,255,255,0.7); margin-bottom: 24px; }
.hosting-features { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hosting-feature {
  background: rgba(255,255,255,0.1);
  padding: 8px 18px; border-radius: 50px;
  font-size: 13px; color: rgba(255,255,255,0.85);
}
.hosting-feature::before { content: "✓ "; color: var(--secondary); font-weight: 700; }

/* ===== PROCESS ===== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  position: relative;
}
.process-step {
  text-align: center; padding: 32px 20px;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.08);
  transition: var(--transition);
}
.process-step:hover { background: rgba(255,255,255,0.1); transform: translateY(-4px); }
.step-num {
  width: 52px; height: 52px;
  background: var(--secondary);
  color: var(--dark);
  font-weight: 900; font-size: 22px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.step-title { font-size: 16px; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.step-desc { font-size: 13px; color: rgba(255,255,255,0.6); line-height: 1.6; }

/* ===== TESTIMONIALS ===== */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary);
  transition: var(--transition);
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(108,99,255,0.2); }
.test-stars { color: var(--secondary); font-size: 18px; margin-bottom: 12px; }
.test-text { font-size: 14px; color: #444; line-height: 1.7; font-style: italic; margin-bottom: 16px; }
.test-author { display: flex; align-items: center; gap: 12px; }
.test-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--dark3));
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: 16px;
  overflow: hidden;
}
.test-avatar img { width: 100%; height: 100%; object-fit: cover; }
.test-name { font-weight: 700; font-size: 14px; color: var(--dark3); }
.test-company { font-size: 12px; color: var(--text-muted); }

/* ===== FAQ ===== */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border: 1px solid rgba(108,99,255,0.1);
}
.faq-question {
  padding: 20px 24px;
  font-weight: 700; font-size: 15px;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  transition: var(--transition);
  user-select: none;
}
.faq-question:hover { background: rgba(108,99,255,0.04); }
.faq-question.active { color: var(--primary); }
.faq-arrow { font-size: 18px; transition: var(--transition); }
.faq-question.active .faq-arrow { transform: rotate(180deg); }
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  font-size: 14px; color: var(--text-muted); line-height: 1.7;
  padding: 0 24px;
}
.faq-answer.open { max-height: 200px; padding: 0 24px 20px; }

/* ===== CTA SECTION ===== */
.cta-section {
  background: linear-gradient(90deg, var(--secondary), #f4a200);
  padding: 80px 24px;
  text-align: center;
}
.cta-section h2 { font-size: clamp(24px, 4vw, 40px); font-weight: 900; color: var(--dark); margin-bottom: 12px; }
.cta-section p { font-size: 16px; color: rgba(26,26,46,0.75); margin-bottom: 32px; }
.btn-cta-dark {
  display: inline-block;
  background: var(--dark);
  color: var(--secondary);
  font-weight: 900; font-size: 16px;
  padding: 18px 52px; border-radius: 50px;
  transition: var(--transition);
}
.btn-cta-dark:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(15,12,41,0.3); }
.cta-note { font-size: 13px; color: rgba(26,26,46,0.6); margin-top: 16px; }

/* ===== CONTACT ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--dark3); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 2px solid #e8ecf4;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  transition: var(--transition);
  outline: none;
  background: var(--white);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(108,99,255,0.1); }
.contact-form .btn-primary { grid-column: 1 / -1; text-align: center; }
.contact-map iframe { width: 100%; height: 240px; border-radius: var(--radius); border: none; margin-bottom: 20px; }
.contact-details { display: flex; flex-direction: column; gap: 12px; }
.contact-detail { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--text-muted); }
.contact-detail-icon { font-size: 20px; }

/* ===== FOOTER ===== */
.footer { background: var(--dark); padding: 40px 0 20px; }
.footer-content { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 16px; }
.footer-brand { font-size: 20px; font-weight: 900; color: var(--white); }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,0.5); font-size: 13px; transition: var(--transition); }
.footer-links a:hover { color: var(--secondary); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 20px; text-align: center; color: rgba(255,255,255,0.35); font-size: 12px; }

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 999;
  width: 58px; height: 58px;
  background: #25d366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37,211,102,0.4);
  transition: var(--transition);
  animation: pulse 2s infinite;
}
.whatsapp-float:hover { transform: scale(1.1); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: rgba(15,12,41,0.98); padding: 20px; gap: 16px; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .hero-stats { gap: 24px; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; }
  .footer-content { flex-direction: column; text-align: center; }
}