﻿/* Importación de tipografías premium desde Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --bg-primary: #090d16;
  --bg-secondary: #0f1524;
  --accent: #0ea5e9;
  --accent-glow: rgba(14, 165, 233, 0.15);
  --accent-gradient: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --glass-bg: rgba(15, 21, 36, 0.7);
  --glass-border: rgba(255, 255, 255, 0.08);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

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

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Elemento gráfico único de fondo: gradientes complejos en malla */
.mesh-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: 
    radial-gradient(circle at 10% 20%, rgba(14, 165, 233, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(37, 99, 235, 0.1) 0%, transparent 50%);
  filter: blur(80px);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
header {
  backdrop-filter: blur(12px);
  background: rgba(9, 13, 22, 0.8);
  border-bottom: 1px solid var(--glass-border);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1rem 0;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-main);
  font-size: 1.5rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
}

.logo img {
  width: 32px;
  height: 32px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

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

/* Hero Section */
.hero {
  padding: 8rem 0 5rem 0;
  text-align: center;
  position: relative;
}

.hero h1 {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 800px;
  margin: 0 auto 2.5rem auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-gradient);
  color: #fff;
  padding: 0.875rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(14, 165, 233, 0.3);
}

/* Section Random: Métricas / Logros */
.metrics {
  padding: 4rem 0;
  background: var(--bg-secondary);
  border-y: 1px solid var(--glass-border);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  text-align: center;
}

.metric-card {
  padding: 2.5rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
}

.metric-num {
  font-size: 3rem;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

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

/* Features: Bloque Asimétrico */
.features {
  padding: 6rem 0;
}

.features-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.features-image img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  border: 1px solid var(--glass-border);
  object-fit: cover;
  height: 450px;
}

.features-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.feature-list {
  list-style: none;
  margin-top: 2rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.feature-item i {
  color: var(--accent);
  font-size: 1.25rem;
  margin-top: 0.25rem;
}

/* About: Visión e Integración de Dominios */
.about {
  padding: 6rem 0;
  background: var(--bg-secondary);
  border-y: 1px solid var(--glass-border);
}

.about h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.ecosystem-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 2rem;
  border-radius: 12px;
  transition: var(--transition);
}

.ecosystem-card:hover {
  border-color: var(--accent);
}

.ecosystem-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.ecosystem-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Form Section */
.lead-section {
  padding: 6rem 0;
}

.form-wrapper {
  max-width: 650px;
  margin: 0 auto;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 3.5rem;
  border-radius: 16px;
  backdrop-filter: blur(12px);
}

.form-wrapper h2 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
  text-align: center;
}

.form-wrapper p {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-main);
}

.form-input {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--glass-border);
  padding: 0.875rem 1rem;
  border-radius: 8px;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.form-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 2rem 0;
}

.checkbox-group input {
  margin-top: 0.25rem;
  cursor: pointer;
}

.checkbox-group label {
  font-size: 0.825rem;
  color: var(--text-muted);
}

.checkbox-group a {
  color: var(--accent);
  text-decoration: none;
}

.checkbox-group a:hover {
  text-decoration: underline;
}

/* FAQ: Accordion */
.faq {
  padding: 6rem 0;
  background: var(--bg-secondary);
}

.faq h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

details {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  overflow: hidden;
  transition: var(--transition);
}

details[open] {
  border-color: var(--accent);
}

summary {
  padding: 1.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: '\2b';
  font-size: 1.25rem;
  color: var(--accent);
}

details[open] summary::after {
  content: '\2212';
}

.faq-content {
  padding: 0 1.5rem 1.5rem 1.5rem;
  color: var(--text-muted);
}

/* Footer */
footer {
  background: #060910;
  padding: 4rem 0 2rem 0;
  border-top: 1px solid var(--glass-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: var(--text-muted);
  margin-top: 1rem;
  font-size: 0.95rem;
}

.footer-links h4, .footer-contact h4 {
  font-size: 1.125rem;
  margin-bottom: 1.25rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}

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

.footer-contact p {
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid var(--glass-border);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: -100%;
  left: 0;
  width: 100%;
  background: rgba(15, 21, 36, 0.95);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--glass-border);
  padding: 1.5rem 0;
  z-index: 1000;
  transition: bottom 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner.show {
  bottom: 0;
}

.cookie-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.cookie-text p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.cookie-text a {
  color: var(--accent);
  text-decoration: none;
}

.cookie-btns {
  display: flex;
  gap: 1rem;
}

.cookie-btn-accept {
  background: var(--accent-gradient);
  color: #fff;
  border: none;
  padding: 0.625rem 1.25rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}

.cookie-btn-decline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--glass-border);
  padding: 0.625rem 1.25rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}

/* Estilos de Páginas de Legalidad - Diseño de Tarjeta Blanca */
.legal-body {
  background-color: #f8fafc;
  color: #1e293b;
}

.legal-header {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 1.5rem 0;
}

.legal-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: #0f172a;
  text-decoration: none;
}

.legal-container {
  max-width: 850px;
  margin: 4rem auto;
  background: #ffffff;
  padding: 4rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  border: 1px solid #e2e8f0;
}

.legal-container h1 {
  font-size: 2.25rem;
  color: #0f172a;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 0.75rem;
}

.legal-container h2 {
  font-size: 1.5rem;
  color: #1e293b;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.legal-container p {
  color: #475569;
  margin-bottom: 1.25rem;
  font-size: 1rem;
  line-height: 1.7;
}

.legal-container ul {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
  color: #475569;
}

.legal-container li {
  margin-bottom: 0.5rem;
}

.legal-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 3rem 0;
  text-align: center;
  font-size: 0.875rem;
}

.legal-footer a {
  color: #38bdf8;
  text-decoration: none;
}

/* Success Message */
.success-box {
  text-align: center;
  padding: 2rem 0;
}

.success-box i {
  font-size: 3.5rem;
  color: #10b981;
  margin-bottom: 1rem;
}

.success-box h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

/* Spinner */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
  margin-left: 0.5rem;
}

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

/* Mobile responsive */
@media (max-width: 968px) {
  .hero h1 {
    font-size: 2.75rem;
  }
  .features-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .features-image img {
    height: 300px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .cookie-flex {
    flex-direction: column;
    text-align: center;
  }
}
