/* ============================================
   AIDONEU — Web Corporativa
   Estilo: Moderno y llamativo
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-bg: #0a0a0f;
  --color-bg-alt: #12121a;
  --color-bg-card: #1a1a28;
  --color-text: #e8e8f0;
  --color-text-muted: #8888a0;
  --color-accent: #6c5ce7;
  --color-accent-light: #a29bfe;
  --color-accent-glow: rgba(108, 92, 231, 0.3);
  --color-secondary: #00cec9;
  --color-secondary-glow: rgba(0, 206, 201, 0.3);
  --color-gradient-start: #6c5ce7;
  --color-gradient-end: #00cec9;
  --color-white: #ffffff;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1200px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  color: var(--color-accent-light);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--color-secondary);
}

img {
  max-width: 100%;
  height: auto;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  letter-spacing: -0.02em;
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
}

.gradient-text {
  background: linear-gradient(135deg, var(--color-gradient-start), var(--color-gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-muted {
  color: var(--color-text-muted);
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 2rem;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(108, 92, 231, 0.1);
  transition: var(--transition);
}

.navbar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.navbar-logo img {
  height: 80px;
  width: auto;
  border-radius: 12px;
}

.navbar-logo span {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, var(--color-gradient-start), var(--color-gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  padding: 0.1em 0;
  line-height: 1.1;
  -webkit-font-smoothing: antialiased;
}

.navbar-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.navbar-links a {
  color: var(--color-text-muted);
  font-weight: 500;
  font-size: 1.05rem;
  position: relative;
  padding: 0.25rem 0;
}

.navbar-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-secondary));
  transition: var(--transition);
}

.navbar-links a:hover,
.navbar-links a.active {
  color: var(--color-text);
}

.navbar-links a:hover::after,
.navbar-links a.active::after {
  width: 100%;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: var(--transition);
  border-radius: 2px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-accent), var(--color-secondary));
  color: var(--color-white);
  box-shadow: 0 4px 20px var(--color-accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--color-accent-glow);
  color: var(--color-white);
}

.btn-outline {
  background: transparent;
  color: var(--color-accent-light);
  border: 2px solid var(--color-accent);
}

.btn-outline:hover {
  background: var(--color-accent);
  color: var(--color-white);
  transform: translateY(-2px);
}

/* --- Sections --- */
section {
  padding: 6rem 2rem;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

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

.section-header p {
  max-width: 640px;
  margin: 1rem auto 0;
  color: var(--color-text-muted);
  font-size: 1.1rem;
}

.section-label {
  display: inline-block;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: 0.75rem;
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 9rem;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 30% 50%, var(--color-accent-glow) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 50%, var(--color-secondary-glow) 0%, transparent 50%);
  animation: heroGlow 8s ease-in-out infinite alternate;
  z-index: 0;
}

@keyframes heroGlow {
  0% { transform: translate(0, 0) scale(1); opacity: 0.5; }
  100% { transform: translate(-5%, 5%) scale(1.1); opacity: 0.8; }
}

.hero .section-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero h1 {
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--color-text-muted);
  max-width: 700px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}

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

/* --- Formula Section --- */
.formula-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin: 3rem auto;
  flex-wrap: wrap;
}

.formula-element {
  background: var(--color-bg-card);
  border: 1px solid rgba(108, 92, 231, 0.2);
  border-radius: 16px;
  padding: 2rem 2.5rem;
  text-align: center;
  transition: var(--transition);
}

.formula-element:hover {
  border-color: var(--color-accent);
  box-shadow: 0 0 30px var(--color-accent-glow);
  transform: translateY(-4px);
}

.formula-element h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

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

.formula-operator {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--color-accent), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.formula-result {
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.15), rgba(0, 206, 201, 0.15));
  border: 2px solid var(--color-accent);
}

/* --- Cards Grid --- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--color-bg-card);
  border: 1px solid rgba(108, 92, 231, 0.12);
  border-radius: 20px;
  padding: 2.5rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-secondary));
  opacity: 0;
  transition: var(--transition);
}

.card:hover {
  border-color: rgba(108, 92, 231, 0.3);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card:hover::before {
  opacity: 1;
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1.25rem;
  display: block;
}

.card h3 {
  margin-bottom: 0.75rem;
}

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

/* --- Phases / Timeline --- */
.timeline {
  position: relative;
  padding-left: 3rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--color-accent), var(--color-secondary));
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  padding: 2rem;
  background: var(--color-bg-card);
  border-radius: 16px;
  border: 1px solid rgba(108, 92, 231, 0.12);
  transition: var(--transition);
}

.timeline-item:hover {
  border-color: rgba(108, 92, 231, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -3rem;
  top: 2.2rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-accent);
  border: 3px solid var(--color-bg);
  transform: translateX(calc(-50% + 1.5px));
  z-index: 1;
}

.timeline-item h3 {
  margin-bottom: 0.5rem;
}

.phase-label {
  display: inline-block;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: 0.5rem;
}

/* --- Profiles Section --- */
.profiles-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.profile-card {
  background: var(--color-bg-card);
  border-radius: 20px;
  padding: 2.5rem;
  border: 1px solid rgba(108, 92, 231, 0.12);
  transition: var(--transition);
}

.profile-card:hover {
  border-color: var(--color-accent);
  box-shadow: 0 0 30px var(--color-accent-glow);
}

.profile-card h3 {
  margin-bottom: 0.5rem;
}

.profile-card .strength {
  color: var(--color-secondary);
  font-weight: 600;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  display: block;
}

/* --- Stats / Numbers --- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-item h3 {
  font-size: 3rem;
  margin-bottom: 0.25rem;
}

.stat-item p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

/* --- Quote/Highlight --- */
.highlight-box {
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.1), rgba(0, 206, 201, 0.1));
  border-left: 4px solid var(--color-accent);
  border-radius: 0 16px 16px 0;
  padding: 2.5rem 3rem;
  margin: 3rem 0;
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.8;
}

/* --- Table --- */
.styled-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 2rem 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(108, 92, 231, 0.15);
}

.styled-table thead {
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.2), rgba(0, 206, 201, 0.2));
}

.styled-table th {
  padding: 1rem 1.5rem;
  text-align: left;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent-light);
}

.styled-table td {
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(108, 92, 231, 0.08);
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

.styled-table tbody tr:hover {
  background: rgba(108, 92, 231, 0.05);
}

/* --- Contact Form --- */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.form-group input,
.form-group textarea {
  padding: 1rem 1.25rem;
  border-radius: 12px;
  border: 1px solid rgba(108, 92, 231, 0.2);
  background: var(--color-bg-card);
  color: var(--color-text);
  font-family: var(--font-main);
  font-size: 1rem;
  transition: var(--transition);
}

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

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

/* --- Footer --- */
.footer {
  padding: 3rem 2rem;
  border-top: 1px solid rgba(108, 92, 231, 0.1);
  text-align: center;
  color: var(--color-text-muted);
  font-size: 1rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer a {
  color: var(--color-text-muted);
}

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

/* --- Divider --- */
.section-divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-accent), var(--color-secondary), transparent);
  margin: 0;
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeInUp 0.8s ease-out forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* --- Responsive --- */
@media (max-width: 768px) {
  .navbar-logo span {
    font-size: 2rem;
  }

  .navbar-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(10, 10, 15, 0.97);
    padding: 1.5rem 2rem;
    gap: 1rem;
    border-bottom: 1px solid rgba(108, 92, 231, 0.1);
  }

  .navbar-links.open {
    display: flex;
  }

  .hamburger {
    display: flex;
  }

  section {
    padding: 3rem 1.25rem;
  }

  .hero {
    padding-top: 6rem;
  }

  /* Todas las grids a una columna en móvil */
  .cards-grid {
    grid-template-columns: 1fr !important;
  }

  .profiles-row {
    grid-template-columns: 1fr !important;
  }

  .stats-row {
    grid-template-columns: 1fr !important;
  }

  .formula-visual {
    flex-direction: column;
  }

  .formula-operator {
    transform: rotate(90deg);
  }

  /* Tabla responsive: scroll horizontal */
  .styled-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .timeline {
    padding-left: 2rem;
  }

  .timeline-item::before {
    left: -2rem;
  }

  .highlight-box {
    padding: 1.5rem 1.5rem;
    font-size: 1rem;
  }

  .section-label {
    font-size: 1.2rem;
  }

  .phase-label {
    font-size: 1.2rem;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}
