/* =============================================================
   TWIDIFY — Hoja de estilos principal
   Extraída del monolito original y organizada por secciones.
   ============================================================= */

:root {
  --purple: #6C5BAE;
  --purple-dark: #4A3D82;
  --purple-light: #8B7DD4;
  --purple-glow: rgba(108, 91, 174, 0.15);
  --accent: #00D4AA;
  --accent-dark: #00B894;
  --bg-dark: #0B0D17;
  --bg-card: #12152A;
  --bg-card-hover: #1A1E38;
  --text: #E8E6F0;
  --text-dim: #9590B0;
  --text-bright: #FFFFFF;
  --border: rgba(108, 91, 174, 0.2);
  --radius: 16px;
  --radius-sm: 10px;
  --font: 'Outfit', sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* === AMBIENT BACKGROUND === */
.ambient {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 800px 600px at 20% 10%, rgba(108, 91, 174, 0.08), transparent),
    radial-gradient(ellipse 600px 400px at 80% 30%, rgba(0, 212, 170, 0.05), transparent),
    radial-gradient(ellipse 900px 500px at 50% 80%, rgba(108, 91, 174, 0.04), transparent);
}

.content { position: relative; z-index: 1; }

/* === NAV === */
nav {
  position: fixed; top: 0; width: 100%; z-index: 100;
  padding: 16px 0;
  background: rgba(11, 13, 23, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s;
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  display: flex; align-items: center; text-decoration: none;
}
.logo img {
  height: 38px; width: auto;
}
.footer-brand .logo img {
  height: 34px;
}
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  color: var(--text-dim); text-decoration: none; font-size: 14px;
  font-weight: 500; transition: color 0.2s; letter-spacing: 0.3px;
}
.nav-links a:hover { color: var(--text-bright); }
.lang-switch {
  background: var(--bg-card); border: 1px solid var(--border);
  padding: 6px 14px; border-radius: 20px; color: var(--text-dim);
  font-size: 12px; font-family: var(--mono); cursor: pointer;
  transition: all 0.2s;
}
.lang-switch:hover { border-color: var(--purple-light); color: var(--text); }
.btn-nav {
  background: var(--purple); color: white; border: none;
  padding: 10px 24px; border-radius: 8px; font-weight: 600;
  font-size: 14px; cursor: pointer; font-family: var(--font);
  transition: all 0.3s; text-decoration: none;
}
.btn-nav:hover { background: var(--purple-light); transform: translateY(-1px); }
.mobile-menu { display: none; background: none; border: none; color: white; font-size: 24px; cursor: pointer; }

/* === HERO === */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 120px 24px 80px;
  text-align: center;
}
.hero-inner { max-width: 900px; margin: 0 auto; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg-card); border: 1px solid var(--border);
  padding: 8px 20px; border-radius: 30px; font-size: 13px;
  color: var(--accent); font-weight: 500; margin-bottom: 32px;
  animation: fadeDown 0.8s ease;
}
.hero-badge::before {
  content: ''; width: 6px; height: 6px; background: var(--accent);
  border-radius: 50%; animation: pulse 2s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.hero h1 {
  font-size: clamp(42px, 6vw, 72px); font-weight: 800;
  line-height: 1.05; letter-spacing: -2px; color: var(--text-bright);
  margin-bottom: 24px; animation: fadeDown 0.8s ease 0.1s both;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--purple-light), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 18px; color: var(--text-dim); max-width: 600px;
  margin: 0 auto 40px; line-height: 1.7;
  animation: fadeDown 0.8s ease 0.2s both;
}
.hero-ctas {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
  animation: fadeDown 0.8s ease 0.3s both;
}
.btn-primary {
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  color: white; border: none; padding: 16px 36px; border-radius: var(--radius-sm);
  font-size: 16px; font-weight: 600; cursor: pointer; font-family: var(--font);
  transition: all 0.3s; text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 4px 20px rgba(108, 91, 174, 0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(108, 91, 174, 0.4); }
.btn-secondary {
  background: transparent; color: var(--text); border: 1px solid var(--border);
  padding: 16px 36px; border-radius: var(--radius-sm); font-size: 16px;
  font-weight: 500; cursor: pointer; font-family: var(--font);
  transition: all 0.3s; text-decoration: none;
}
.btn-secondary:hover { border-color: var(--purple-light); background: var(--purple-glow); }

.hero-stats {
  display: flex; justify-content: center; gap: 48px; margin-top: 64px;
  animation: fadeDown 0.8s ease 0.5s both;
}
.stat { text-align: center; }
.stat-number {
  font-size: 36px; font-weight: 800; color: var(--text-bright);
  font-family: var(--mono); letter-spacing: -1px;
}
.stat-label { font-size: 13px; color: var(--text-dim); margin-top: 4px; font-weight: 500; }

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === SECTIONS === */
section { padding: 100px 24px; }
.container { max-width: 1200px; margin: 0 auto; }
.section-label {
  font-size: 12px; font-weight: 600; color: var(--accent);
  text-transform: uppercase; letter-spacing: 3px;
  font-family: var(--mono); margin-bottom: 12px;
}
.section-title {
  font-size: clamp(32px, 4vw, 48px); font-weight: 800;
  letter-spacing: -1.5px; color: var(--text-bright);
  margin-bottom: 16px; line-height: 1.1;
}
.section-desc {
  font-size: 17px; color: var(--text-dim); max-width: 600px;
  line-height: 1.7; margin-bottom: 56px;
}

/* === SERVICES === */
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.service-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 36px 28px;
  transition: all 0.3s; position: relative; overflow: hidden;
}
.service-card:hover {
  border-color: var(--purple-light); transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}
.service-card::after {
  content: ''; position: absolute; top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--purple), var(--accent));
  opacity: 0; transition: opacity 0.3s;
}
.service-card:hover::after { opacity: 1; }
.service-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--purple-glow); display: flex; align-items: center;
  justify-content: center; font-size: 22px; margin-bottom: 20px;
}
.service-card h3 {
  font-size: 20px; font-weight: 700; color: var(--text-bright);
  margin-bottom: 10px; letter-spacing: -0.3px;
}
.service-card p { font-size: 14px; color: var(--text-dim); line-height: 1.7; }
.service-tag {
  display: inline-block; margin-top: 16px; font-size: 12px;
  font-family: var(--mono); color: var(--accent);
  background: rgba(0, 212, 170, 0.08); padding: 4px 12px;
  border-radius: 4px; font-weight: 500;
}
.service-card.coming-soon {
  opacity: 0.85;
}
.service-card.coming-soon h3::after {
  content: 'PRÓXIMAMENTE';
  display: inline-block; margin-left: 10px; font-size: 9px;
  font-family: var(--mono); font-weight: 600; letter-spacing: 1px;
  color: var(--purple-light);
  background: rgba(139, 125, 212, 0.12);
  border: 1px solid rgba(139, 125, 212, 0.3);
  padding: 3px 8px; border-radius: 4px;
  vertical-align: middle;
}
.service-card.coming-soon .service-tag {
  color: var(--text-dim);
  background: rgba(149, 144, 176, 0.08);
}

/* === PRICING === */
.pricing-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px; align-items: start;
}
.pricing-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 40px 32px;
  transition: all 0.3s; position: relative;
}
.pricing-card.featured {
  border-color: var(--purple);
  box-shadow: 0 0 60px rgba(108, 91, 174, 0.15);
  transform: scale(1.02);
}
.pricing-card.featured::before {
  content: 'POPULAR'; position: absolute; top: -12px; right: 24px;
  background: linear-gradient(135deg, var(--purple), var(--accent));
  color: white; font-size: 11px; font-weight: 700; padding: 4px 16px;
  border-radius: 4px; font-family: var(--mono); letter-spacing: 1px;
}
.pricing-card:hover { border-color: var(--purple-light); transform: translateY(-4px); }
.pricing-card.featured:hover { transform: scale(1.02) translateY(-4px); }
.pricing-name {
  font-size: 14px; font-weight: 600; color: var(--accent);
  text-transform: uppercase; letter-spacing: 2px;
  font-family: var(--mono); margin-bottom: 12px;
}
.pricing-price {
  font-size: 48px; font-weight: 800; color: var(--text-bright);
  letter-spacing: -2px; line-height: 1;
}
.pricing-price span { font-size: 16px; color: var(--text-dim); font-weight: 400; letter-spacing: 0; }
.pricing-desc {
  font-size: 14px; color: var(--text-dim); margin: 16px 0 24px;
  padding-bottom: 24px; border-bottom: 1px solid var(--border);
}
.pricing-features { list-style: none; margin-bottom: 32px; }
.pricing-features li {
  font-size: 14px; color: var(--text); padding: 8px 0;
  display: flex; align-items: center; gap: 10px;
}
.pricing-features li::before {
  content: '✓'; color: var(--accent); font-weight: 700;
  font-size: 14px; flex-shrink: 0;
}
.btn-pricing {
  width: 100%; padding: 14px; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 600; cursor: pointer;
  font-family: var(--font); transition: all 0.3s; border: none;
  text-align: center; text-decoration: none; display: block;
}
.btn-pricing.primary {
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  color: white; box-shadow: 0 4px 20px rgba(108, 91, 174, 0.3);
}
.btn-pricing.primary:hover { box-shadow: 0 8px 30px rgba(108, 91, 174, 0.4); }
.btn-pricing.outline {
  background: transparent; color: var(--text); border: 1px solid var(--border);
}
.btn-pricing.outline:hover { border-color: var(--purple-light); background: var(--purple-glow); }

/* === FEATURES === */
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
}
.feature-item { text-align: center; padding: 24px; }
.feature-icon {
  font-size: 32px; margin-bottom: 16px; display: block;
}
.feature-item h4 {
  font-size: 16px; font-weight: 700; color: var(--text-bright);
  margin-bottom: 8px;
}
.feature-item p { font-size: 14px; color: var(--text-dim); line-height: 1.6; }

/* === DOMAINS === */
.domain-search {
  max-width: 650px; margin: 0 auto;
  display: flex; gap: 0; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); background: var(--bg-card);
}
.domain-search input {
  flex: 1; padding: 18px 24px; background: transparent;
  border: none; color: var(--text-bright); font-size: 16px;
  font-family: var(--font); outline: none;
}
.domain-search input::placeholder { color: var(--text-dim); }
.domain-search button {
  background: var(--purple); color: white; border: none;
  padding: 18px 32px; font-weight: 600; font-size: 15px;
  cursor: pointer; font-family: var(--font); transition: background 0.3s;
}
.domain-search button:hover { background: var(--purple-light); }
.domain-prices {
  display: flex; justify-content: center; gap: 32px; margin-top: 32px;
  flex-wrap: wrap;
}
.domain-ext {
  text-align: center; padding: 16px 24px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); transition: all 0.2s; cursor: pointer;
}
.domain-ext:hover { border-color: var(--purple-light); }
.domain-ext strong {
  display: block; font-size: 18px; color: var(--text-bright);
  font-family: var(--mono);
}
.domain-ext span { font-size: 13px; color: var(--accent); font-weight: 600; }

/* === CTA === */
.cta-section {
  text-align: center;
  background: linear-gradient(135deg, var(--bg-card), rgba(108, 91, 174, 0.1));
  border-radius: var(--radius); padding: 80px 40px;
  border: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; top: -50%; right: -20%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(108, 91, 174, 0.1), transparent 70%);
}
.cta-section h2 {
  font-size: clamp(28px, 3.5vw, 42px); font-weight: 800;
  color: var(--text-bright); margin-bottom: 16px; letter-spacing: -1px;
  position: relative;
}
.cta-section p {
  font-size: 17px; color: var(--text-dim); max-width: 500px;
  margin: 0 auto 32px; position: relative;
}

/* === FOOTER === */
footer {
  border-top: 1px solid var(--border);
  padding: 60px 24px 32px;
}
.footer-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 48px;
}
.footer-brand p { font-size: 14px; color: var(--text-dim); margin-top: 12px; line-height: 1.7; }
.footer-col h4 {
  font-size: 13px; font-weight: 600; color: var(--text-bright);
  text-transform: uppercase; letter-spacing: 2px; margin-bottom: 16px;
  font-family: var(--mono);
}
.footer-col a {
  display: block; font-size: 14px; color: var(--text-dim);
  text-decoration: none; padding: 4px 0; transition: color 0.2s;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  max-width: 1200px; margin: 0 auto;
  padding-top: 24px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--text-dim);
}

/* === PÁGINAS INTERNAS (legal / soporte) === */
.page-hero {
  padding: 160px 24px 60px; text-align: center;
}
.page-hero h1 {
  font-size: clamp(32px, 4vw, 48px); font-weight: 800;
  color: var(--text-bright); letter-spacing: -1.5px; margin-bottom: 12px;
}
.page-hero p { color: var(--text-dim); font-size: 16px; }
.page-body {
  max-width: 820px; margin: 0 auto; padding: 20px 24px 100px;
}
.page-body h2 {
  font-size: 22px; color: var(--text-bright); font-weight: 700;
  margin: 40px 0 12px; letter-spacing: -0.5px;
}
.page-body h3 {
  font-size: 17px; color: var(--text-bright); font-weight: 600;
  margin: 24px 0 8px;
}
.page-body p, .page-body li {
  color: var(--text-dim); font-size: 15px; line-height: 1.8; margin-bottom: 12px;
}
.page-body ul { padding-left: 22px; margin-bottom: 16px; }
.page-body a { color: var(--accent); text-decoration: none; }
.page-body a:hover { text-decoration: underline; }
.page-body .meta {
  font-family: var(--mono); font-size: 13px; color: var(--text-dim);
  border-left: 2px solid var(--purple); padding-left: 14px; margin-bottom: 32px;
}
.notice {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 16px 20px; margin: 24px 0;
  font-size: 14px; color: var(--text-dim);
}

/* Contacto */
.contact-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px; margin-top: 32px;
}
.contact-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px; text-align: center;
}
.contact-card .service-icon { margin: 0 auto 16px; }
.contact-card h3 { color: var(--text-bright); font-size: 17px; margin-bottom: 6px; }
.contact-card a { color: var(--accent); text-decoration: none; font-size: 15px; }

/* Estado del servicio */
.status-banner {
  max-width: 820px; margin: 0 auto 32px; padding: 20px 24px;
  background: rgba(0, 212, 170, 0.08); border: 1px solid rgba(0, 212, 170, 0.3);
  border-radius: var(--radius-sm); display: flex; align-items: center; gap: 12px;
  color: var(--accent); font-weight: 600;
}
.status-banner::before {
  content: ''; width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent); animation: pulse 2s infinite;
}
.status-list { max-width: 820px; margin: 0 auto; }
.status-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  margin-bottom: 10px;
}
.status-row span:first-child { color: var(--text); font-size: 15px; }
.status-ok { color: var(--accent); font-family: var(--mono); font-size: 13px; font-weight: 600; }

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute;
    top: 100%; left: 0; right: 0; gap: 16px; padding: 24px;
    background: rgba(11, 13, 23, 0.97); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
  }
  .mobile-menu { display: block; }
  .hero-stats { gap: 24px; }
  .stat-number { font-size: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .pricing-card.featured { transform: none; }
  .pricing-card.featured:hover { transform: translateY(-4px); }
  .domain-search { flex-direction: column; }
  .domain-search button { padding: 16px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 16px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* === SCROLL ANIMATIONS === */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
