/* ═══════════════════════════════════════════════
   COLOQUIA APPS — página principal
   Carga después de main.css. No redefine variables del sistema.
═══════════════════════════════════════════════ */
:root {
  --amber: #F59E0B;        /* badge "en desarrollo" */
  --amber-dim: #D97706;
  --amber-pale: #FEF3C7;
  --amber-bg: #FFFBEB;
}

/* ══ HERO ══ */
.apps-hero {
  position: relative;
  background: var(--ink);
  padding: 210px 0 170px;
  clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
  margin-bottom: -60px;
  overflow: hidden;
}
.apps-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}
/* Velo oscuro para garantizar contraste del texto sobre el vídeo */
.apps-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(90deg, rgba(9,16,14,.92) 0%, rgba(9,16,14,.78) 50%, rgba(9,16,14,.6) 100%);
}
.apps-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--mint) 1px, transparent 1.5px);
  background-size: 30px 30px;
  opacity: .04;
  pointer-events: none;
}
.apps-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(135deg, var(--mint) 0, var(--mint) 1px, transparent 1px, transparent 90px);
  opacity: .04;
  pointer-events: none;
}
.apps-hero .wrap { position: relative; z-index: 1; }
.apps-hero-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin-bottom: 26px;
}
.apps-hero-label::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  flex-shrink: 0;
}
.apps-hero h1 {
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -.04em;
  color: var(--white);
  margin-bottom: 30px;
  max-width: 820px;
}
/* Juego de tonos en el titular (como en el hero de servicios) */
.apps-hero h1 em { font-style: normal; color: var(--mint); }
.apps-hero h1 span { display: block; color: rgba(255,255,255,.25); }
.apps-hero p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(255,255,255,.6);
  max-width: 560px;
}

/* ══ QUÉ ES COLOQUIA APPS ══ */
.apps-pilares {
  background: var(--off);
  padding: 110px 0;
}
.pilares-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 56px;
}
.pilar {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  padding: 36px 30px;
  transition: all .3s var(--ease);
}
.pilar:hover {
  border-color: var(--mint);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(18,227,188,.08);
}
.pilar-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--mint-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.pilar-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--mint-dim);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pilar h3 {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--ink);
  margin-bottom: 10px;
}
.pilar p {
  font-size: .88rem;
  line-height: 1.7;
  color: var(--mid);
  margin: 0;
}

/* ══ GRID DE APPS ══ */
.apps-grid-sec {
  background: var(--white);
  padding: 170px 0 120px;
}
.apps-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 56px;
}

/* Card grande 2 columnas (60/40) */
.app-card {
  display: grid;
  grid-template-columns: 60fr 40fr;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all .35s var(--ease);
}
.app-card:hover {
  border-color: var(--mint);
  box-shadow: 0 16px 48px rgba(18,227,188,.08);
  transform: translateY(-4px);
}
.app-card-content {
  padding: 52px 48px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.app-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 50px;
  margin-bottom: 22px;
}
.app-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.app-badge.disponible {
  color: var(--mint-dim);
  background: var(--mint-pale);
}
.app-badge.disponible::before { background: var(--mint); }
.app-badge.desarrollo {
  color: var(--amber-dim);
  background: var(--amber-pale);
}
.app-badge.desarrollo::before { background: var(--amber); }
.app-card-content h3 {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ink);
  margin-bottom: 8px;
}
.app-card-tagline {
  font-size: 1rem;
  font-weight: 600;
  color: var(--mint-dim);
  margin-bottom: 16px;
}
.app-card-desc {
  font-size: .92rem;
  line-height: 1.75;
  color: var(--mid);
  margin-bottom: 24px;
}
.app-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
}
.app-tag {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--mid);
  background: var(--off);
  border: 1px solid var(--line);
  padding: 6px 13px;
  border-radius: 50px;
}
.app-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .9rem;
  font-weight: 800;
  color: var(--ink);
  border-bottom: 2px solid var(--mint);
  padding-bottom: 3px;
  margin-top: auto;
  transition: color .2s;
}
.app-card-cta:hover { color: var(--mint-dim); }

/* Columna visual derecha */
.app-card-visual {
  position: relative;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
/* Imagen a sangre completa — sustituye al visual CSS cuando exista */
.app-card-visual > img.app-visual-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
/* Captura de móvil flotando sobre el gradiente (alternativa) */
.app-card-visual > img.app-visual-shot {
  position: relative;
  z-index: 1;
  width: auto;
  max-height: 320px;
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
}

/* Visual Silabea — gradiente ink → verde profundo + sílabas + estrellas */
.visual-silabea {
  background: linear-gradient(135deg, var(--ink) 0%, #0d2a1f 100%);
}
.visual-silabea-name {
  font-size: clamp(2.2rem, 3.6vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--mint);
  position: relative;
  z-index: 1;
}
.visual-silabea-name .silaba-dot {
  color: rgba(255,255,255,.45);
  font-weight: 400;
  padding: 0 4px;
}
.visual-star {
  position: absolute;
  color: var(--mint);
  font-size: 14px;
  opacity: .5;
  animation: starTwinkle 3s ease-in-out infinite alternate;
}
.visual-star:nth-child(1) { top: 18%; left: 16%; font-size: 12px; animation-delay: 0s; }
.visual-star:nth-child(2) { top: 28%; right: 18%; font-size: 18px; animation-delay: .6s; }
.visual-star:nth-child(3) { bottom: 24%; left: 24%; font-size: 16px; animation-delay: 1.2s; }
.visual-star:nth-child(4) { bottom: 16%; right: 26%; font-size: 11px; animation-delay: 1.8s; }
.visual-star:nth-child(5) { top: 14%; right: 40%; font-size: 13px; animation-delay: 2.4s; }
@keyframes starTwinkle {
  from { opacity: .2; transform: scale(.85); }
  to { opacity: .8; transform: scale(1.1); }
}

/* Visual CronoGuía — gradiente ink → ámbar profundo + arco nazarí */
.visual-crono {
  background: linear-gradient(135deg, var(--ink) 0%, #1a0f00 100%);
}
.visual-crono::before {
  content: 'الحمراء';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 7rem;
  font-weight: 700;
  color: var(--amber);
  opacity: .05;
  pointer-events: none;
}
.arco-nazari {
  position: relative;
  width: 130px;
  height: 150px;
  margin-bottom: 22px;
  z-index: 1;
}
.arco-nazari::before,
.arco-nazari::after {
  content: '';
  position: absolute;
  bottom: 0;
  border-bottom: none;
  border-radius: 50% 50% 0 0 / 64% 64% 0 0;
}
.arco-nazari::before {
  inset: 0;
  border: 2px solid rgba(18,227,188,.75);
  border-bottom: none;
}
.arco-nazari::after {
  inset: 14px 14px 0 14px;
  border: 1.5px solid rgba(245,158,11,.6);
  border-bottom: none;
}
.visual-crono-name {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--white);
  position: relative;
  z-index: 1;
}
.visual-crono-name em {
  font-style: normal;
  color: var(--amber);
}

/* ══ CTA FINAL ══ */
.apps-cta {
  background: var(--mint);
  padding: 110px 0;
  text-align: center;
}
.apps-cta h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -.025em;
  color: var(--ink);
  margin-bottom: 20px;
}
.apps-cta p {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(9,16,14,.65);
  max-width: 520px;
  margin: 0 auto 36px;
}

/* ══ Variantes claras para fondos oscuros ══ */
.sec-label-light { color: rgba(18,227,188,.6); }
.sec-title-light { color: var(--white); }
.sec-title-light em { color: var(--mint); }

/* ══ RESPONSIVE ══ */
@media (max-width: 960px) {
  .pilares-grid { grid-template-columns: 1fr; gap: 18px; }
  .app-card { grid-template-columns: 1fr; }
  .app-card-visual { min-height: 280px; order: -1; }
}
@media (max-width: 640px) {
  .apps-hero { padding: 160px 0 130px; }
  .app-card-content { padding: 36px 26px; }
  .visual-crono::before { font-size: 4.5rem; }
}
