:root {
  --bg-main: #0a0a0c;
  --bg-card: #121118;
  --bg-card-hover: #191624;
  --purple-main: #8a2be2;
  --purple-light: #a855f7;
  --purple-glow: rgba(138, 43, 226, 0.35);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --border-color: #272236;
  --border-focus: #7c3aed;
  --radius-sm: 8px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

img, svg {
  max-width: 100%;
}

h1, h2, h3, .logo {
  font-family: 'Space Grotesk', sans-serif;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 12, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 1.2rem 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.logo span {
  color: var(--purple-light);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Hero */
.hero {
  padding: 6rem 0 4rem;
  position: relative;
}

.badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
  background: rgba(138, 43, 226, 0.12);
  color: var(--purple-light);
  border: 1px solid var(--purple-main);
  border-radius: 50px;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.15;
  font-weight: 700;
  margin-bottom: 1.5rem;
  max-width: 850px;
  margin-left: auto;
  margin-right: auto;
}

.hero-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 2.5rem;
}

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

/* Botones */
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  transition: all 0.2s ease-in-out;
}

.btn-primary {
  background: var(--purple-main);
  color: #fff;
  box-shadow: 0 0 16px var(--purple-glow);
}

.btn-primary:hover {
  background: var(--purple-light);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: #171520;
  border-color: var(--purple-light);
}

.btn-block {
  width: 100%;
}

/* Stack Tecnológico */
.tech-stack {
  padding: 2.5rem 0;
  border-top: 1px solid #1a1724;
  border-bottom: 1px solid #1a1724;
  background: #0d0c12;
}

.stack-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.stack-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.stack-tag {
  padding: 0.35rem 0.9rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 0.85rem;
  color: #d1d5db;
}

/* Secciones Generales */
.services, .payment-methods, .contact-section, .founder-section {
  padding: 5rem 0;
}

.section-title {
  font-size: 2.2rem;
  margin-bottom: 0.8rem;
}

.section-desc {
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto 3rem;
  font-size: 1rem;
}

/* Grilla de Planes */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 2rem;
  align-items: stretch;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2.5rem 1.8rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--purple-light);
}

.card-featured {
  background: linear-gradient(180deg, #161224 0%, var(--bg-card) 100%);
  border-color: var(--purple-main);
  box-shadow: 0 0 25px rgba(138, 43, 226, 0.15);
}

.card-tag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--purple-main);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.8rem;
  border-radius: 50px;
  text-transform: uppercase;
}

.card-header h3 {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
}

.price {
  font-size: 2.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.8rem;
}

.price span {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.card-caption {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  min-height: 40px;
}

.card-features {
  list-style: none;
  text-align: left;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.card-features li {
  font-size: 0.9rem;
  color: #cbd5e1;
  padding: 0.5rem 0;
  border-bottom: 1px solid #1c1926;
  position: relative;
  padding-left: 1.5rem;
}

.card-features li::before {
  content: "✓";
  color: var(--purple-light);
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Fundadora */
.founder-section {
  border-top: 1px solid #1a1724;
  border-bottom: 1px solid #1a1724;
  background: #0d0c12;
}

.founder-card {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  text-align: left;
}

.founder-avatar {
  flex-shrink: 0;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 35%;
  border: 3px solid var(--purple-main);
  box-shadow: 0 0 30px var(--purple-glow);
}

.founder-info h3 {
  font-size: 1.6rem;
  margin: 0.6rem 0 0.4rem;
}

.founder-role {
  color: var(--purple-light);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.9rem;
}

.founder-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  max-width: 560px;
}

.founder-linkedin svg {
  color: #0a66c2;
}

/* Métodos de Pago */
.payment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.payment-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem 1rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.payment-item:hover {
  transform: translateY(-4px);
  border-color: var(--accent, var(--purple-light));
}

.payment-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--bg-main);
  background: var(--accent, var(--purple-light));
}

.payment-item span {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-align: center;
}

/* Formulario */
.contact-form {
  max-width: 550px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 2rem;
  border-radius: var(--radius-md);
  text-align: left;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  background: #09090b;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--border-focus);
}

.form-status {
  text-align: center;
  font-size: 0.9rem;
  margin-top: 1rem;
  min-height: 24px;
}

.form-status.success {
  color: #4ade80;
}

.text-link {
  color: var(--purple-light);
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

/* Botón Flotante WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 56px;
  height: 56px;
  background-color: #25d366;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  z-index: 1000;
  transition: transform 0.2s ease;
}

.whatsapp-float:hover {
  transform: scale(1.08);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 2.5rem 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.footer-direct {
  margin-top: 0.4rem;
  color: #64748b;
}

/* ============ RESPONSIVE ============ */

@media (max-width: 860px) {
  .founder-card {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1.5rem;
  }

  .founder-desc {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(10, 10, 12, 0.98);
    border-bottom: 1px solid var(--border-color);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav.active {
    max-height: 320px;
  }

  .nav-link,
  .nav .btn {
    width: 100%;
    box-sizing: border-box;
    padding: 1rem 5%;
    border-radius: 0;
    border-bottom: 1px solid var(--border-color);
  }

  .nav .btn-secondary {
    border-left: none;
    border-right: none;
  }

  .section-title {
    font-size: 1.7rem;
  }

  .hero {
    padding: 4rem 0 3rem;
  }
}

@media (max-width: 640px) {
  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .contact-form {
    padding: 1.5rem;
  }

  .payment-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .payment-item {
    padding: 1rem 0.5rem;
  }

  .payment-item span {
    font-size: 0.72rem;
  }
}

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