
/* ═══════════════════════════════════════════
   FEATURE CARDS — Proyecto + 24h
═══════════════════════════════════════════ */

.cta-project-card {
  background: linear-gradient(135deg, rgba(14,165,233,.06) 0%, rgba(10,10,15,1) 50%, rgba(139,92,246,.04) 100%);
  border: 1px solid rgba(56,189,248,.12);
  transition: border-color 0.4s, box-shadow 0.4s;
}
.cta-project-card:hover {
  border-color: rgba(56,189,248,.25);
  box-shadow: 0 0 60px rgba(14,165,233,.08), 0 20px 40px rgba(0,0,0,.4);
}

.timer-ring-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.timer-ring-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: #a78bfa;
}

@keyframes arcDraw {
  from { stroke-dashoffset: 188.5; }
  to   { stroke-dashoffset: 47; }
}
.timer-arc { animation: arcDraw 1.8s cubic-bezier(0.25,0.46,0.45,0.94) both; }

@keyframes barFill {
  from { width: 0%; }
  to   { width: 75%; }
}
.response-bar { animation: barFill 1.6s 0.4s cubic-bezier(0.25,0.46,0.45,0.94) both; }

/* ═══════════════════════════════════════════
   LIGHTBOX
═══════════════════════════════════════════ */

.lightbox-trigger { position: relative; }
.lightbox-trigger:hover .lb-hint { opacity: 1 !important; }

.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(5,5,10,.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.lightbox-overlay:not([hidden]) { opacity: 1; }
.lightbox-overlay[hidden] { display: none; }

.lightbox-inner {
  position: relative;
  width: 100%;
  max-width: 1000px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.lightbox-img-wrap {
  width: 100%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.lightbox-img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 40px 80px rgba(0,0,0,.6);
  transform: scale(0.96);
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
.lightbox-overlay:not([hidden]) .lightbox-img { transform: scale(1); }

.lightbox-caption {
  font-size: 0.75rem;
  color: rgba(255,255,255,.4);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: -3rem;
  right: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.7);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}
.lightbox-close:hover { background: rgba(255,255,255,.16); color: #fff; }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.6);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 10;
}
.lightbox-nav:hover { background: rgba(56,189,248,.2); border-color: rgba(56,189,248,.4); color: #38bdf8; }
.lightbox-prev { left: -3.5rem; }
.lightbox-next { right: -3.5rem; }

@media (max-width: 768px) {
  .lightbox-prev { left: 0.25rem; }
  .lightbox-next { right: 0.25rem; }
}

.lightbox-dots { display: flex; gap: 6px; justify-content: center; }
.lightbox-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  transition: background 0.2s, transform 0.2s;
  cursor: pointer;
}
.lightbox-dot.active { background: #38bdf8; transform: scale(1.4); }

/* ═══════════════════════════════════════════
   COURSE MODAL
═══════════════════════════════════════════ */

.course-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(5,5,10,.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  overflow-y: auto;
}
.course-modal-overlay:not([hidden]) { opacity: 1; }
.course-modal-overlay[hidden] { display: none; }

.course-modal-box {
  position: relative;
  width: 100%;
  max-width: 860px;
  background: #111118;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 24px;
  overflow: hidden;
  transform: translateY(20px) scale(0.98);
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
  margin: auto;
}
.course-modal-overlay:not([hidden]) .course-modal-box { transform: translateY(0) scale(1); }

.cm-close {
  position: absolute;
  top: 1rem; right: 1rem;
  z-index: 10;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.6);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}
.cm-close:hover { background: rgba(255,255,255,.14); color: #fff; }

.cm-grid { display: grid; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cm-grid { grid-template-columns: 260px 1fr; } }

.cm-left { background: #0d0d16; border-right: 1px solid rgba(255,255,255,.05); }
.cm-thumb { height: 180px; background-size: cover; background-position: center; background-color: #1a1a28; }
.cm-meta-grid { padding: 1.25rem; display: flex; flex-direction: column; gap: 1rem; }

.cm-meta-item { display: flex; align-items: flex-start; gap: 0.75rem; }
.cm-meta-label { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,.25); margin-bottom: 0.15rem; }
.cm-meta-val { font-size: 0.82rem; font-weight: 600; color: rgba(255,255,255,.8); line-height: 1.4; }
.cm-price { font-family: 'Syne', sans-serif; font-size: 1.1rem; color: #38bdf8; }
.cm-right { padding: 2rem; }

.cm-section { margin-top: 1.5rem; }
.cm-section-title { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: rgba(255,255,255,.3); margin-bottom: 0.75rem; }
.cm-syllabus { display: flex; flex-direction: column; gap: 0.5rem; }
.cm-syllabus li { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.82rem; color: rgba(255,255,255,.6); line-height: 1.4; }
.cm-syllabus li::before { content: ''; display: block; flex-shrink: 0; margin-top: 0.45rem; width: 5px; height: 5px; border-radius: 50%; background: #38bdf8; }

/* ═══════════════════════════════════════════
   FAQ ACCORDION
═══════════════════════════════════════════ */

.faq-item { padding: 0; }

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,.65);
  font-size: 0.9rem;
  font-weight: 500;
  text-align: left;
  transition: color 0.2s;
  font-family: 'Inter', sans-serif;
}
.faq-trigger:hover,
.faq-trigger[aria-expanded="true"] { color: #fff; }

.faq-chevron {
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
  color: rgba(255,255,255,.25);
  flex-shrink: 0;
}
.faq-trigger[aria-expanded="true"] .faq-chevron { transform: rotate(180deg); color: #38bdf8; }

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.25,0.46,0.45,0.94),
              opacity 0.3s ease;
  opacity: 0;
}
.faq-body.open {
  max-height: 400px;
  opacity: 1;
}
.faq-body p { padding-bottom: 0.75rem; font-size: 0.85rem; color: rgba(255,255,255,.4); line-height: 1.75; }
.faq-body p strong { color: rgba(255,255,255,.7); font-weight: 600; }

.faq-cta {
  display: inline-flex;
  align-items: center;
  margin-bottom: 1.25rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #38bdf8;
  text-decoration: none;
  transition: color 0.2s;
  gap: 4px;
}
.faq-cta:hover { color: #7dd3fc; }

/* Course card — pointer cursor to invite click */
.course-card { cursor: pointer; }

/* Lightbox — iOS Safari requiere cursor:pointer en divs para disparar click/tap */
.lightbox-trigger { cursor: pointer; }

/* iOS Safari — elimina delay de 300ms y resalta de tap en elementos interactivos */
.lightbox-trigger,
.course-card,
.faq-trigger,
.lightbox-nav,
.lightbox-close,
.cm-close {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* lb-hint overlay — no debe interceptar toques */
.lb-hint {
  pointer-events: none;
}
