/* ===== Historia ===== */
#historia {
  position: relative;
  padding: 100px 48px;
  background: #0a0a0f;
}

.historia-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.historia-eyebrow {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #00d4ff;
  text-shadow: 0 0 12px rgba(0, 212, 255, 0.5);
  margin-bottom: 10px;
}

.historia-title {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 32px;
  line-height: 1.3;
  letter-spacing: 0.03em;
  color: #ffffff;
  text-shadow: 0 0 24px rgba(0, 212, 255, 0.2);
  margin-bottom: 22px;
}

.historia-text p {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.75;
  color: #a0aec0;
  margin-bottom: 16px;
}

.historia-text p:last-child { margin-bottom: 0; }

.historia-text strong {
  color: #c0c8d8;
  font-weight: 700;
}

/* Panel visual */
.historia-visual {
  position: relative;
  height: 420px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(0, 212, 255, 0.2);
  box-shadow: 0 0 40px rgba(0, 212, 255, 0.08);
}

.historia-visual-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.historia-visual-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,15,0.2) 0%, rgba(10,10,15,0.85) 100%);
}

.historia-visual-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: rgba(10, 10, 15, 0.7);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 10px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.historia-visual-badge span:first-child { font-size: 22px; }

.historia-visual-badge p {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
}

.historia-visual-badge p small {
  display: block;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: none;
  color: #8a9bb0;
  margin-top: 2px;
}

/* Fundadores */
.founders-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 12px;
}

.founder-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 26px 18px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.founder-card:hover { transform: translateY(-4px); }

.founder-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: rgba(255, 255, 255, 0.04);
}

.founder-card h4 {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
}

.founder-card p {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 500;
  font-size: 13px;
  color: #6a7a8e;
}

.founder-card:nth-child(1) { border-color: rgba(0,212,255,0.25); }
.founder-card:nth-child(1) .founder-avatar { color: #00d4ff; text-shadow: 0 0 12px rgba(0,212,255,0.6); }
.founder-card:nth-child(1):hover { box-shadow: 0 8px 24px rgba(0,212,255,0.12); border-color: rgba(0,212,255,0.5); }

.founder-card:nth-child(2) { border-color: rgba(160,102,255,0.25); }
.founder-card:nth-child(2) .founder-avatar { color: #a066ff; text-shadow: 0 0 12px rgba(123,47,255,0.6); }
.founder-card:nth-child(2):hover { box-shadow: 0 8px 24px rgba(123,47,255,0.12); border-color: rgba(123,47,255,0.5); }

.founder-card:nth-child(3) { border-color: rgba(0,255,180,0.25); }
.founder-card:nth-child(3) .founder-avatar { color: #00ffb4; text-shadow: 0 0 12px rgba(0,255,180,0.6); }
.founder-card:nth-child(3):hover { box-shadow: 0 8px 24px rgba(0,255,180,0.12); border-color: rgba(0,255,180,0.5); }

/* ===== Trayectoria ===== */
#trayectoria {
  position: relative;
  padding: 90px 48px;
  background: #07070d;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.trayectoria-inner {
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
}

.trayectoria-title {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 30px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 0 24px rgba(0, 212, 255, 0.25);
  margin-bottom: 12px;
}

.trayectoria-subtitle {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: #8a9bb0;
  max-width: 560px;
  margin: 0 auto 48px;
}

.trayectoria-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 30px 16px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover { transform: translateY(-5px); }

.stat-icon { font-size: 26px; }

.stat-value {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.04em;
  color: #ffffff;
}

.stat-label {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: #6a7a8e;
  line-height: 1.4;
}

.stat-card:nth-child(1) .stat-icon { color: #00d4ff; text-shadow: 0 0 12px rgba(0,212,255,0.5); }
.stat-card:nth-child(1):hover { box-shadow: 0 8px 24px rgba(0,212,255,0.1); }

.stat-card:nth-child(2) .stat-icon { color: #a066ff; text-shadow: 0 0 12px rgba(123,47,255,0.5); }
.stat-card:nth-child(2):hover { box-shadow: 0 8px 24px rgba(123,47,255,0.1); }

.stat-card:nth-child(3) .stat-icon { color: #00ffb4; text-shadow: 0 0 12px rgba(0,255,180,0.5); }
.stat-card:nth-child(3):hover { box-shadow: 0 8px 24px rgba(0,255,180,0.1); }

.stat-card:nth-child(4) .stat-icon { color: #ffb400; text-shadow: 0 0 12px rgba(255,180,0,0.5); }
.stat-card:nth-child(4):hover { box-shadow: 0 8px 24px rgba(255,180,0,0.1); }

/* ===== Contacto directo ===== */
#contacto-directo {
  position: relative;
  padding: 100px 48px;
  background: #0a0a0f;
}

.directo-inner {
  max-width: 1120px;
  margin: 0 auto;
  text-align: center;
}

.directo-title {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 30px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 0 24px rgba(0, 212, 255, 0.25);
  margin-bottom: 12px;
}

.directo-subtitle {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: #8a9bb0;
  margin-bottom: 44px;
}

.directo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.direct-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 32px 20px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  text-decoration: none;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.direct-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.04);
}

.direct-card-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: rgba(255, 255, 255, 0.04);
}

.direct-card h4 {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
}

.direct-card p {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: #8a9bb0;
  word-break: break-word;
}

.direct-card-whatsapp { border-color: rgba(37,211,102,0.2); }
.direct-card-whatsapp .direct-card-icon { color: #25d366; text-shadow: 0 0 12px rgba(37,211,102,0.5); }
.direct-card-whatsapp:hover { border-color: rgba(37,211,102,0.5); box-shadow: 0 8px 24px rgba(37,211,102,0.12); }

.direct-card-email { border-color: rgba(0,212,255,0.2); }
.direct-card-email .direct-card-icon { color: #00d4ff; text-shadow: 0 0 12px rgba(0,212,255,0.5); }
.direct-card-email:hover { border-color: rgba(0,212,255,0.5); box-shadow: 0 8px 24px rgba(0,212,255,0.12); }

.direct-card-instagram { border-color: rgba(255,60,120,0.2); }
.direct-card-instagram .direct-card-icon { color: #ff3c78; text-shadow: 0 0 12px rgba(255,60,120,0.5); }
.direct-card-instagram:hover { border-color: rgba(255,60,120,0.5); box-shadow: 0 8px 24px rgba(255,60,120,0.12); }

.direct-card-facebook { border-color: rgba(160,102,255,0.2); }
.direct-card-facebook .direct-card-icon { color: #a066ff; text-shadow: 0 0 12px rgba(123,47,255,0.5); }
.direct-card-facebook:hover { border-color: rgba(123,47,255,0.5); box-shadow: 0 8px 24px rgba(123,47,255,0.12); }

/* 1440px+ */
@media (min-width: 1440px) {
  #historia { padding: 100px 64px; }
  .historia-inner { max-width: 1320px; }
  #trayectoria { padding: 90px 64px; }
  #contacto-directo { padding: 100px 64px; }
}

/* Laptop */
@media (max-width: 1280px) {
  #historia { padding: 88px 40px; }
  .historia-inner { gap: 48px; }
  #trayectoria { padding: 80px 40px; }
  #contacto-directo { padding: 88px 40px; }
}

/* Tablet landscape */
@media (max-width: 1024px) {
  .historia-inner { grid-template-columns: 1fr; gap: 36px; }
  .historia-visual { height: 320px; order: -1; }
  .founders-row { grid-template-columns: repeat(3, 1fr); }
  .trayectoria-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .directo-grid { grid-template-columns: repeat(2, 1fr); max-width: 460px; margin: 0 auto; }
}

/* Tablet portrait */
@media (max-width: 768px) {
  #historia { padding: 72px 24px; }
  .historia-title { font-size: 26px; }
  .founders-row { grid-template-columns: 1fr; gap: 14px; }
  #trayectoria { padding: 64px 24px; }
  .trayectoria-title { font-size: 24px; }
  #contacto-directo { padding: 72px 24px; }
  .directo-title { font-size: 24px; }
}

/* Móvil */
@media (max-width: 480px) {
  #historia { padding: 56px 16px; }
  .historia-eyebrow { font-size: 12px; }
  .historia-title { font-size: 22px; }
  .historia-text p { font-size: 15px; }
  .historia-visual { height: 240px; }
  #trayectoria { padding: 48px 16px; }
  .trayectoria-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .stat-card { padding: 22px 12px; }
  #contacto-directo { padding: 56px 16px; }
  .directo-subtitle { margin-bottom: 32px; }
}
