/* ═══════════════════════════════════════════════
   PÁGINAS DE INFORMACIÓN — Coco Galaxy
   (Términos, Privacidad, FAQ, Soporte, Contacto…)
   ═══════════════════════════════════════════════ */

/* ── Variables de inputs (modo claro) ────────────── */
:root {
  --ip-input-bg:      #ffffff;
  --ip-input-border:  #e2e8f0;
  --ip-input-text:    #1a1a2e;
  --ip-input-ph:      #a0aec0;
  --ip-label:         #4a5568;
}

[data-theme="dark"] {
  --ip-input-bg:      #1e1e3a;
  --ip-input-border:  rgba(255,255,255,0.12);
  --ip-input-text:    #ffffff;
  --ip-input-ph:      #6060a0;
  --ip-label:         #a0a0c0;
}

/* ── Página ─────────────────────────────────────── */
.ip-page {
  min-height: calc(100vh - 62px);
  padding-bottom: 80px;
}

/* ── Hero ───────────────────────────────────────── */
.ip-hero {
  text-align: center;
  padding: 60px 16px 44px;
}

.ip-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 50px;
  margin-bottom: 14px;
}

.ip-label--legal { color: #ff3d6b; background: rgba(255,61,107,0.1); }
.ip-label--ayuda { color: #7c3aed; background: rgba(124,58,237,0.1); }
.ip-label--nos   { color: #06b6d4; background: rgba(6,182,212,0.1); }

.ip-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  color: var(--text-primary);
  margin: 0 0 12px;
  letter-spacing: -0.5px;
}

.ip-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.7;
  max-width: 560px;
  margin-inline: auto;
}

.ip-updated {
  font-size: 0.78rem;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 40px;
}

/* ── Contenido principal ─────────────────────────── */
.ip-content {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px;
}

.ip-content--wide {
  max-width: 1060px;
}

/* ── Sección de texto (legal/docs) ───────────────── */
.ip-section {
  margin-bottom: 44px;
}

.ip-section-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 12px;
  padding-left: 13px;
  border-left: 3px solid #ff3d6b;
}

.ip-section p {
  font-size: 0.93rem;
  line-height: 1.85;
  color: var(--text-secondary);
  margin: 0 0 10px;
}

.ip-section ul {
  margin: 8px 0 12px 18px;
  padding: 0;
}

.ip-section ul li {
  font-size: 0.93rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 5px;
}

/* ── Cards de soporte / nosotros ─────────────────── */
.ip-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

.ip-card {
  background: var(--card-bg, #fff);
  border: 1px solid var(--nav-border);
  border-radius: 18px;
  padding: 28px 24px;
  box-shadow: 0 4px 20px var(--card-shadow, rgba(0,0,0,0.06));
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.ip-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 34px var(--card-shadow, rgba(0,0,0,0.1));
}

.ip-card-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ip-card-icon--pos  { background: rgba(255,61,107,0.1); }
.ip-card-icon--web  { background: rgba(124,58,237,0.1); }
.ip-card-icon--arch { background: rgba(6,182,212,0.1); }

.ip-card-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
}

.ip-card-desc {
  font-size: 0.87rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
  flex: 1;
}

.ip-card-link {
  display: inline-block;
  font-size: 0.83rem;
  font-weight: 700;
  text-decoration: none;
  margin-top: 6px;
  transition: opacity 0.15s;
}

.ip-card-link:hover { opacity: 0.75; }
.ip-card-link--pos  { color: #ff3d6b; }
.ip-card-link--web  { color: #7c3aed; }
.ip-card-link--arch { color: #06b6d4; }

/* ── Estadísticas (nosotros) ─────────────────────── */
.ip-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 56px;
  padding: 36px 24px;
  background: var(--card-bg, #fff);
  border: 1px solid var(--nav-border);
  border-radius: 20px;
  box-shadow: 0 4px 20px var(--card-shadow, rgba(0,0,0,0.06));
}

.ip-stat-value {
  font-size: 2rem;
  font-weight: 900;
  color: #ff3d6b;
  display: block;
  letter-spacing: -1px;
}

.ip-stat-label {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ── FAQ (details/summary) ───────────────────────── */
.ip-faq {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ip-faq-item {
  background: var(--card-bg, #fff);
  border: 1px solid var(--nav-border);
  border-radius: 14px;
  overflow: hidden;
}

.ip-faq-item summary {
  list-style: none;
  padding: 18px 20px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  user-select: none;
}

.ip-faq-item summary::-webkit-details-marker { display: none; }

.ip-faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  font-weight: 400;
  color: #ff3d6b;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.ip-faq-item[open] summary::after {
  transform: rotate(45deg);
}

.ip-faq-answer {
  padding: 0 20px 18px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
  border-top: 1px solid var(--nav-border);
  padding-top: 14px;
}

/* ── Formulario de contacto ──────────────────────── */
.ip-form-wrap {
  background: var(--card-bg, #fff);
  border: 1px solid var(--nav-border);
  border-radius: 22px;
  padding: 44px 48px;
  box-shadow: 0 4px 24px var(--card-shadow, rgba(0,0,0,0.07));
}

.ip-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.ip-form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 4px;
}

.ip-form-field--full {
  grid-column: 1 / -1;
}

.ip-form-field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ip-label);
  letter-spacing: 0.2px;
}

.ip-form-field input,
.ip-form-field select,
.ip-form-field textarea {
  width: 100%;
  padding: 11px 16px;
  border: 1.5px solid var(--ip-input-border);
  border-radius: 10px;
  font-size: 0.93rem;
  font-family: inherit;
  color: var(--ip-input-text);
  background: var(--ip-input-bg);
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
  resize: vertical;
}

.ip-form-field input::placeholder,
.ip-form-field textarea::placeholder {
  color: var(--ip-input-ph);
}

.ip-form-field select option {
  background: var(--ip-input-bg);
  color: var(--ip-input-text);
}

.ip-form-field input:focus,
.ip-form-field select:focus,
.ip-form-field textarea:focus {
  outline: none;
  border-color: #ff3d6b;
  box-shadow: 0 0 0 3px rgba(255,61,107,0.12);
}

.ip-form-field textarea {
  min-height: 130px;
}

.ip-form-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 32px;
  background: #ff3d6b;
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  margin-top: 20px;
  box-shadow: 0 4px 20px rgba(255,61,107,0.3);
  transition: transform 0.15s, box-shadow 0.15s;
}

.ip-form-btn:hover  { transform: translateY(-2px); box-shadow: 0 6px 28px rgba(255,61,107,0.45); }
.ip-form-btn:active { transform: scale(0.98); }

/* ── Contacto aside ──────────────────────────────── */
.ip-contact-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
}

.ip-contact-aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ip-contact-item {
  background: var(--card-bg, #fff);
  border: 1px solid var(--nav-border);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.ip-contact-item-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255,61,107,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ip-contact-item-text strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.ip-contact-item-text span {
  font-size: 0.83rem;
  color: var(--text-secondary);
}

/* ── Comunidad — redes ───────────────────────────── */
.ip-social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 48px;
}

.ip-social-card {
  background: var(--card-bg, #fff);
  border: 1px solid var(--nav-border);
  border-radius: 16px;
  padding: 28px 20px;
  text-align: center;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 12px var(--card-shadow, rgba(0,0,0,0.05));
}

.ip-social-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px var(--card-shadow, rgba(0,0,0,0.1));
}

.ip-social-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ip-social-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
}

.ip-social-handle {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* ════════════════════════════════════════════════
   TIMELINE DE ACTUALIZACIONES
   ════════════════════════════════════════════════ */

/* Filtros de producto */
.ip-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 48px;
}

.ip-filter-btn {
  padding: 7px 18px;
  border-radius: 50px;
  border: 1.5px solid var(--nav-border);
  background: transparent;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.18s;
}

.ip-filter-btn:hover,
.ip-filter-btn.active {
  border-color: #ff3d6b;
  color: #ff3d6b;
  background: rgba(255,61,107,0.07);
}

/* Timeline */
.ip-timeline {
  position: relative;
  padding-left: 28px;
}

.ip-timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 0;
  width: 2px;
  background: var(--nav-border);
  border-radius: 2px;
}

/* Entrada individual */
.ip-tl-entry {
  position: relative;
  margin-bottom: 40px;
  transition: opacity 0.2s;
}

.ip-tl-entry.hidden { display: none; }

/* Punto en la línea */
.ip-tl-dot {
  position: absolute;
  left: -25px;
  top: 14px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ff3d6b;
  border: 3px solid var(--card-bg, #fff);
  box-shadow: 0 0 0 2px #ff3d6b;
  flex-shrink: 0;
}

.ip-tl-dot--web  { background: #7c3aed; box-shadow: 0 0 0 2px #7c3aed; }
.ip-tl-dot--arch { background: #06b6d4; box-shadow: 0 0 0 2px #06b6d4; }
.ip-tl-dot--all  { background: var(--text-secondary); box-shadow: 0 0 0 2px var(--text-secondary); }

/* Tarjeta de la entrada */
.ip-tl-card {
  background: var(--card-bg, #fff);
  border: 1px solid var(--nav-border);
  border-radius: 16px;
  padding: 22px 26px;
  box-shadow: 0 2px 14px var(--card-shadow, rgba(0,0,0,0.05));
}

/* Cabecera de la entrada */
.ip-tl-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.ip-tl-version {
  font-size: 1rem;
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

.ip-tl-date {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Badges de producto */
.ip-tl-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }

.ip-tl-badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 50px;
}

.ip-tl-badge--pos  { background: rgba(255,61,107,0.1);  color: #ff3d6b; }
.ip-tl-badge--web  { background: rgba(124,58,237,0.1);  color: #7c3aed; }
.ip-tl-badge--arch { background: rgba(6,182,212,0.1);   color: #06b6d4; }
.ip-tl-badge--core { background: rgba(100,116,139,0.1); color: var(--text-secondary); }

/* Lista de cambios */
.ip-tl-changes {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.ip-tl-change {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Tipo de cambio */
.ip-tl-type {
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 50px;
  flex-shrink: 0;
  margin-top: 1px;
}

.ip-tl-type--new  { background: rgba(34,197,94,0.12);  color: #16a34a; }
.ip-tl-type--imp  { background: rgba(59,130,246,0.12); color: #2563eb; }
.ip-tl-type--fix  { background: rgba(234,179,8,0.12);  color: #b45309; }
.ip-tl-type--sec  { background: rgba(239,68,68,0.12);  color: #dc2626; }

[data-theme="dark"] .ip-tl-type--new { color: #4ade80; }
[data-theme="dark"] .ip-tl-type--imp { color: #60a5fa; }
[data-theme="dark"] .ip-tl-type--fix { color: #fbbf24; }
[data-theme="dark"] .ip-tl-type--sec { color: #f87171; }

/* ── Círculos acordeón (ocultos en desktop) ──────── */
.ip-ctabs  { display: none; }
.ip-cpanel { display: none; }

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 768px) {
  .ip-contact-layout { grid-template-columns: 1fr; }
  .ip-form-wrap { padding: 28px 20px; }
  .ip-form-grid { grid-template-columns: 1fr; }
  .ip-stats { gap: 24px; }

  /* Ocultar lista de desktop en móvil */
  .ip-contact-aside .ip-contact-item { display: none; }

  /* Fila de círculos */
  .ip-ctabs {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
  }

  .ip-ctab {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--card-bg, #fff);
    border: 1.5px solid var(--nav-border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px var(--card-shadow, rgba(0,0,0,0.08));
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.15s;
    flex-shrink: 0;
  }

  .ip-ctab:hover {
    border-color: #ff3d6b;
    transform: translateY(-2px);
  }

  .ip-ctab.active {
    background: #ff3d6b;
    border-color: #ff3d6b;
    box-shadow: 0 4px 18px rgba(255,61,107,0.4);
    transform: translateY(-2px);
  }

  .ip-ctab svg { transition: stroke 0.2s; }
  .ip-ctab.active svg { stroke: #fff !important; }

  /* Panel expandible */
  .ip-cpanel {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: var(--card-bg, #fff);
    border: 1px solid var(--nav-border);
    border-radius: 14px;
    padding: 16px 20px;
    margin-top: 12px;
    animation: ipPanelIn 0.18s ease;
  }

  .ip-cpanel[hidden] { display: none !important; }

  .ip-cpanel strong {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
  }

  .ip-cpanel span {
    font-size: 0.88rem;
    color: var(--text-secondary);
  }

  @keyframes ipPanelIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
  }
}

@media (max-width: 520px) {
  .ip-content { padding: 0 16px; }
  .ip-hero { padding: 44px 16px 32px; }
}

/* ════════════════════════════════════════════════
   UTILIDADES EXTRAÍDAS DE ESTILOS INLINE
   ════════════════════════════════════════════════ */

/* Variantes de color en título de sección */
.ip-section-title--web  { border-color: #7c3aed; }
.ip-section-title--arch { border-color: #06b6d4; }

/* Botones */
.ip-btn-primary {
  display: inline-block;
  padding: 12px 30px;
  background: #ff3d6b;
  color: #fff;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(255,61,107,0.3);
}

.ip-btn-outline {
  display: inline-block;
  padding: 12px 30px;
  background: transparent;
  color: #ff3d6b;
  border: 1.5px solid #ff3d6b;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
}

.ip-btn-arch {
  display: inline-block;
  padding: 12px 30px;
  background: #06b6d4;
  color: #fff;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(6,182,212,0.3);
}

/* Caja CTA inferior (documentacion) */
.ip-cta-box {
  text-align: center;
  margin-top: 16px;
  padding: 36px 24px;
  background: var(--card-bg);
  border: 1px solid var(--nav-border);
  border-radius: 18px;
}

.ip-cta-box p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.ip-cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Envoltura CTA centrada */
.ip-cta-wrap { text-align: center; margin-top: 48px; }

.ip-cta-text {
  font-size: 0.93rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

/* Enlace inline destacado */
.ip-link-primary { color: #ff3d6b; font-weight: 600; }

/* Sección con fondo de card */
.ip-section--card {
  background: var(--card-bg);
  border: 1px solid var(--nav-border);
  border-radius: 18px;
  padding: 32px 36px;
}

/* Cards sin margen inferior */
.ip-cards--no-mb { margin-bottom: 0; }

/* Stats — centrar texto de cada ítem */
.ip-stats > div { text-align: center; }

/* Margen superior pequeño sobre ip-content */
.ip-content--mt8 { margin-top: 8px; }
