/* Hybrid additions on top of ai-styles.css */

/* ---------- Header brand logo (real image) ---------- */
.brand-logo-img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 24px rgba(168, 85, 247, 0.35);
  background: #1a0b2e;
}
.brand-name { letter-spacing: -0.005em; }

.header {
  transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease, padding 0.3s ease;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  position: sticky;
  top: 0;
  background: rgba(7, 5, 13, 0.75);
  backdrop-filter: blur(14px);
  border-bottom-color: rgba(168, 85, 247, 0.18);
  z-index: 80;
  padding: 14px 0;
}

/* ---------- Language toggle ---------- */
.lang-toggle {
  display: inline-flex;
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 999px;
  padding: 3px;
  background: rgba(88, 28, 135, 0.18);
  margin-right: 6px;
}
.lang-btn {
  border: 0;
  background: transparent;
  color: var(--gray-300);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}
.lang-btn:hover { color: #fff; }
.lang-btn.is-active {
  background: var(--purple-600);
  color: #fff;
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.45);
}

/* ---------- Hero stats — 4 columns ---------- */
@media (min-width: 1024px) {
  .stats.stats-4 { grid-template-columns: repeat(4, 1fr); gap: 28px; }
}
.stat-num { font-variant-numeric: tabular-nums; }

/* ---------- Servicios: 3 tracks grid ---------- */
.tracks-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  max-width: 1200px;
  margin: 0 auto;
}
@media (min-width: 900px) { .tracks-grid { grid-template-columns: repeat(3, 1fr); } }
.track-card {
  position: relative;
  background: rgba(88, 28, 135, 0.16);
  border: 1px solid rgba(168, 85, 247, 0.22);
  border-radius: 20px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  overflow: hidden;
}
.track-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--purple-400), transparent);
  opacity: 0.5;
}
.track-card:hover {
  transform: translateY(-4px);
  border-color: rgba(168, 85, 247, 0.55);
  background: rgba(88, 28, 135, 0.26);
}
.track-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.track-num {
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--purple-400);
}
.track-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple-300);
}
.track-name {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
  margin: 4px 0 0;
  line-height: 1.2;
}
.track-desc {
  color: var(--gray-300);
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0;
  text-wrap: pretty;
}

/* ---------- Plataforma section (NEW) ---------- */
.platform-card {
  position: relative;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(168, 85, 247, 0.25), transparent 60%),
    linear-gradient(to bottom right, rgba(126, 34, 206, 0.22), rgba(15, 5, 30, 0.4));
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 28px;
  padding: 56px 40px;
  overflow: hidden;
  max-width: 1240px;
  margin: 0 auto;
}
@media (max-width: 768px) { .platform-card { padding: 40px 24px; border-radius: 20px; } }
.platform-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(168, 85, 247, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 85, 247, 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  opacity: 0.6;
}
.platform-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
@media (min-width: 1024px) { .platform-grid { grid-template-columns: 1.1fr 1fr; gap: 64px; } }
.platform-copy .ai-badge { margin-bottom: 20px; }
.platform-title {
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0 0 24px;
  text-wrap: balance;
}
.platform-body {
  color: var(--gray-300);
  font-size: 16px;
  line-height: 1.65;
  margin: 0 0 18px;
  text-wrap: pretty;
}
.platform-cta {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.platform-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.platform-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.pstat {
  background: rgba(15, 5, 30, 0.5);
  border: 1px solid rgba(168, 85, 247, 0.22);
  border-radius: 14px;
  padding: 18px 16px;
  text-align: center;
}
.pstat-num {
  font-size: 28px;
  font-weight: 700;
  color: var(--purple-200);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}
.pstat-label {
  font-family: "Geist Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple-300);
  opacity: 0.8;
  line-height: 1.4;
}
.platform-graph {
  position: relative;
  height: 280px;
  border-radius: 16px;
  background: radial-gradient(circle, rgba(88, 28, 135, 0.4), transparent 70%);
  overflow: hidden;
  border: 1px solid rgba(168, 85, 247, 0.18);
}
.platform-graph > * {
  position: absolute;
  inset: 0;
}

/* ---------- Equipo: 4 áreas (instead of 16 people) ---------- */
.areas-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}
@media (min-width: 700px) { .areas-grid { grid-template-columns: repeat(2, 1fr); } }
.area-card {
  position: relative;
  background: rgba(88, 28, 135, 0.16);
  border: 1px solid rgba(168, 85, 247, 0.22);
  border-radius: 18px;
  padding: 32px 28px;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}
.area-card:hover {
  border-color: rgba(168, 85, 247, 0.5);
  background: rgba(88, 28, 135, 0.26);
  transform: translateY(-3px);
}
.area-num {
  position: absolute;
  top: 22px;
  right: 24px;
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--purple-400);
  opacity: 0.85;
}
.area-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple-300);
  margin-bottom: 18px;
}
.area-title {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
  margin: 0 0 10px;
  line-height: 1.2;
}
.area-body {
  color: var(--gray-300);
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0;
  text-wrap: pretty;
}

/* ---------- Publicaciones — categories + cards + email capture ---------- */
.pub-cats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  max-width: 1100px;
  margin: 0 auto 48px;
}
@media (min-width: 768px) { .pub-cats { grid-template-columns: 1fr 1fr; } }
.pub-cat {
  padding: 24px 26px;
  background: rgba(88, 28, 135, 0.1);
  border-left: 2px solid var(--purple-400);
  border-radius: 0 12px 12px 0;
}
.pub-cat h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--purple-200);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.pub-cat p {
  color: var(--gray-300);
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
  text-wrap: pretty;
}

.pub-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  max-width: 1200px;
  margin: 0 auto;
}
@media (min-width: 768px) { .pub-list { grid-template-columns: repeat(3, 1fr); } }
.pub-card {
  background: rgba(88, 28, 135, 0.16);
  border: 1px solid rgba(168, 85, 247, 0.22);
  border-radius: 16px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  min-height: 320px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.pub-card:hover {
  transform: translateY(-4px);
  border-color: rgba(168, 85, 247, 0.55);
}
.pub-tag {
  font-family: "Geist Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--purple-300);
  margin-bottom: 18px;
}
.pub-title {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 10px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #fff;
}
.pub-summary {
  color: var(--gray-300);
  font-size: 14px;
  line-height: 1.55;
  margin: 0 0 20px;
  flex-grow: 1;
  text-wrap: pretty;
}
.pub-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid rgba(168, 85, 247, 0.18);
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--purple-300);
  opacity: 0.85;
}
.pub-format {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.pub-cta-row {
  margin-top: 14px;
}
.pub-cta-soon {
  display: inline-block;
  font-family: "Geist Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--purple-400);
  padding: 6px 10px;
  border: 1px dashed rgba(168, 85, 247, 0.4);
  border-radius: 999px;
  opacity: 0.85;
}

/* Email capture (pub footer) */
.pub-footer {
  margin-top: 56px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding: 32px 36px;
  background: linear-gradient(to right, rgba(88, 28, 135, 0.22), rgba(126, 34, 206, 0.14));
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: 18px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}
@media (min-width: 768px) { .pub-footer { grid-template-columns: 1.2fr 1fr; gap: 36px; padding: 36px 44px; } }
.pub-footer-copy h3 {
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.pub-footer-copy p {
  color: var(--gray-300);
  font-size: 14px;
  margin: 0;
  line-height: 1.55;
}
.pub-footer-form {
  display: flex;
  gap: 10px;
  align-items: center;
}
.pub-footer-form input {
  flex: 1;
  background: rgba(15, 5, 30, 0.5);
  border: 1px solid rgba(168, 85, 247, 0.3);
  padding: 13px 16px;
  font-family: inherit;
  font-size: 14px;
  color: #fff;
  border-radius: 10px;
  outline: none;
  transition: border-color 0.2s ease;
  min-width: 0;
}
.pub-footer-form input::placeholder { color: rgba(203, 213, 225, 0.5); }
.pub-footer-form input:focus { border-color: var(--purple-400); }
.pub-footer-form .btn { white-space: nowrap; padding: 12px 18px; font-size: 14px; }

/* ---------- Contact form: add select styling ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-info h3 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--purple-300);
  margin: 0 0 12px;
}
.contact-info a, .contact-info span {
  display: block;
  font-size: 18px;
  color: #fff;
  margin-bottom: 22px;
  transition: color 0.2s ease;
}
.contact-info a:hover { color: var(--purple-300); }
.contact-form {
  display: grid;
  gap: 14px;
}
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form input, .contact-form textarea, .contact-form select {
  background: rgba(88, 28, 135, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.25);
  padding: 14px 16px;
  font-family: inherit;
  font-size: 15px;
  color: #fff;
  border-radius: 10px;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
  resize: none;
  width: 100%;
}
.contact-form input::placeholder, .contact-form textarea::placeholder {
  color: rgba(203, 213, 225, 0.5);
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
  border-color: var(--purple-400);
  background: rgba(88, 28, 135, 0.25);
}
.contact-form select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%23d8b4fe' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 42px;
}
.contact-form select option {
  background: #1a0b2e;
  color: #fff;
}
.contact-form select:invalid { color: rgba(203, 213, 225, 0.5); }
.contact-form button { justify-self: start; margin-top: 8px; }
@media (max-width: 600px) {
  .contact-form .row { grid-template-columns: 1fr; }
}

/* ---------- Approach band ---------- */
.approach {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 1080px;
  margin: 0 auto;
}
@media (min-width: 768px) { .approach { grid-template-columns: repeat(3, 1fr); } }
.approach-step {
  padding: 28px 26px;
  border-radius: 16px;
  background: rgba(88, 28, 135, 0.14);
  border: 1px solid rgba(168, 85, 247, 0.22);
  position: relative;
}
.approach-step .step-num {
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--purple-400);
  margin-bottom: 16px;
}
.approach-step h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.approach-step p {
  color: var(--gray-300);
  font-size: 14px;
  margin: 0;
  line-height: 1.55;
}

/* ---------- Footer: 4 columns ---------- */
@media (min-width: 768px) {
  .footer-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .footer-grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Header responsive: hide some nav on small ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-actions .btn:not(.btn-primary) { display: none; }
}
@media (max-width: 480px) {
  .lang-toggle { padding: 2px; }
  .lang-btn { padding: 5px 9px; font-size: 11px; }
  .brand-name { display: none; }
}

/* ---------- Mobile: prevent overflow & resize hero ---------- */
@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .hero { padding: 40px 0 60px; }
  .hero h1 {
    font-size: clamp(32px, 9vw, 48px);
    line-height: 1.05;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
  }
  .hero-desc { font-size: 16px; }
  .hero-subhead { font-size: 14px; }
  .block-head h2 { font-size: clamp(24px, 6vw, 34px); overflow-wrap: break-word; }
  .block-head p { font-size: 15px; }
  .stat-num { font-size: 26px; }
  .ai-card { padding: 32px 20px; }
  .platform-card { padding: 32px 18px; }
}

@media (max-width: 480px) {
  .container { padding: 0 14px; }
  .hero h1 { font-size: clamp(28px, 8.5vw, 40px); }
  .header { padding: 14px 0; }
  .nav-actions { gap: 6px; }
  .nav-actions .btn { padding: 7px 12px; font-size: 13px; }
  .btn-lg { padding: 12px 22px; font-size: 15px; }
}
