:root {
  --teal-50: #e1f5ee;
  --teal-100: #9fe1cb;
  --teal-600: #0f6e56;
  --teal-400: #1d9e75;
  --blue-50: #e6f1fb;
  --blue-400: #378add;
  --blue-600: #185fa5;
}

/* ================================================================
   CARD LABELS Y ELEMENTOS BASE
   ================================================================ */
.card-label {
  font-size: 1.3rem;
  font-weight: 800;
  color: #440412;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.desc-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #334155;
  margin: 0;
}

/* ================================================================
   META GRID - Información del proceso
   ================================================================ */
.meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.meta-cell {
  background: rgba(255, 255, 255, 0.39);
  border: 1px solid rgba(0, 0, 0, 0.13);
  border-radius: 18px;
  padding: 15px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.meta-key {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.meta-val {
  font-weight: 700;
  color: #1e293b;
  font-size: 0.95rem;
}

/* ================================================================
   ACCORDION STYLES
   ================================================================ */
.acc-wrap {
  max-width: 760px;
  margin: 0 auto;
}

.acc-item {
  margin-bottom: 0.5rem;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  border-radius: 18px;
  overflow: hidden;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.acc-item:hover {
  border-color: #e2e8f0 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.acc-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 1rem;
  border: 0;
  background: transparent;
  font-size: clamp(0.8rem, 2.5vw, 0.875rem);
  font-weight: 500;
  color: inherit;
  cursor: pointer;
  transition: background 0.15s;
  text-align: left;
}

.acc-btn:hover {
  background: rgba(0, 0, 0, 0.02);
}

.acc-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  min-width: 26px;
  flex-shrink: 0;
}

.acc-arrow {
  color: var(--yellow, #f7b500);
  transition: transform 0.25s;
  display: block;
  width: 15px;
  height: 15px;
}

.acc-item .accordion-collapse {
  transition: max-height 0.3s ease;
}

.acc-item .accordion-collapse.collapse:not(.show) {
  max-height: 0;
  overflow: hidden;
}

.acc-item .accordion-collapse.show {
  max-height: 1000px;
}

.acc-item .accordion-collapse .accordion-body {
  padding: 0 1.5rem 1rem;
  font-size: clamp(0.8rem, 2.5vw, 0.875rem);
  line-height: 1.75;
  color: #475569;
}

.acc-item .accordion-collapse hr {
  margin: 0 0 1rem;
  opacity: 0.08;
}

.acc-item .accordion-collapse ul {
  margin: 0;
  padding-left: 1.5rem;
}

.acc-item .accordion-collapse li {
  margin-bottom: 0.5rem;
}

/* ================================================================
   SKYLET CARDS
   ================================================================ */
.skylet-card {
  position: relative;
  background: #ffffff;
  padding: 26px 30px;
  border-radius: 22px;
}

.skylet-label-sm {
  font-size: 1.2rem;
  font-weight: bold;
  color: #440412;
}

.skylet-text-muted {
  color: #64748b;
}

.skylet-divider {
  border-top: 1px solid #f0e4e7;
  opacity: 1;
}

/* ================================================================
   CONTACT SECTION
   ================================================================ */
.avatar-circle {
  width: 42px;
  height: 42px;
  background: #8b1238;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  flex-shrink: 0;
}

.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.contact-row i {
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.contact-name {
  font-weight: 600;
  color: #1e293b;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.contact-role {
  color: #64748b;
  font-size: 0.82rem;
}

.contact-detail {
  font-size: 0.9rem;
  color: #334155;
}

.contact-link {
  color: #8b1238;
  text-decoration: none;
  font-size: 0.9rem;
  transition: text-decoration 0.2s;
}

.contact-link:hover {
  text-decoration: underline;
}

/* ================================================================
   MODALITY PANEL - NEW DESIGN
   ================================================================ */
.modality-panel-new {
  width: 100%;
}

.modality-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.2rem;
  border: 1.5px solid #8b1238;
  border-radius: 50px;
  background: transparent;
  color: #8b1238;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.05em;
}

.modality-pill:hover {
  border-color: #8b1238;
  background: rgba(139, 18, 56, 0.05);
}

.modality-pill--active {
  background: #8b1238;
  color: #fff;
  border-color: #8b1238;
}

.modality-pill--active:hover {
  background: #6a0d41;
  border-color: #6a0d41;
}

.modality-cta-new {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: #440412;
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s ease;
  width: fit-content;
  max-width: 100%;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.05em;
  border: none;
}

.modality-cta-new:hover {
  background: #6a0d41;
  transform: translateX(5px);
  box-shadow: 0 8px 20px rgba(68, 4, 18, 0.25);
}

.modality-cta-new:active {
  transform: translateX(2px);
}

.cta-icon-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.modality-cta-new:hover .cta-icon-circle {
  background: rgba(255, 255, 255, 0.25);
  transform: rotate(90deg);
}

.cta-text {
  flex: 1;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 700;
}

/* ================================================================
   RESPONSIVO
   ================================================================ */
@media (max-width: 768px) {
  .meta-grid {
    grid-template-columns: 1fr;
  }

  .acc-btn {
    padding: 0.75rem;
    gap: 0.5rem;
  }

  .acc-icon {
    width: 22px;
    height: 22px;
    min-width: 22px;
  }

  .skylet-card {
    padding: 20px 18px;
    border-radius: 18px;
  }

  .modality-pill {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
  }

  .cta-icon-circle {
    width: 36px;
    height: 36px;
  }

  .modality-cta-new {
    padding: 0.85rem 1.2rem;
  }
}



/* Modalidad: diseño tipo tarjeta de referencia */
.modality-panel-title {
  margin: 0;
  font-size: clamp(1.65rem, 3.2vw, 2.05rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #1f232b;
}

.modality-panel-pill {
  margin-top: 0.9rem;
  background: #e6e8ee;
  color: #2a2f38;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.42rem 1rem;
  text-align: center;
}

.modality-card {
  margin-top: 1.15rem;
  border: 1px solid #cfd3db;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  display: flex;
  min-height: 160px;
}

.modality-card-accent {
  width: 5px;
  background: #b88e00;
  flex-shrink: 0;
}

.modality-card-inner {
  width: 100%;
  padding: 1.35rem 1.2rem 1rem;
}

.modality-main {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.modality-icon-wrap {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  background: #cfe8e0;
  color: #0d2b57;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
}

.modality-copy {
  min-width: 0;
}

.modality-name {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #121b3d;
  line-height: 1.05;
}

.modality-desc {
  margin: 0.55rem 0 0;
  line-height: 1.3;
  color: #151618;
}

.modality-divider {
  margin: 1rem 0 0.85rem;
  border: 0;
  border-top: 1px solid #d8dce3;
  opacity: 1;
}

.modality-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.modality-link {
  color: #1c1f24;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.modality-link:hover {
  color: #66051f;
}

.modality-link.is-disabled {
  color: #7a7f89;
  cursor: not-allowed;
}

.modality-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  max-width: 270px;
  margin: 0 auto;
  background: #990f3d;
  color: #fff;
  text-decoration: none;
  border-radius: 11px;
  padding: 0.72rem 1rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.modality-cta:hover {
  color: #fff;
  background: #7f0b33;
  transform: translateY(-1px);
  box-shadow: 0 7px 16px rgba(129, 11, 52, 0.27);
}

.modality-arrow {
  font-size: 1.1rem;
  line-height: 1;
}

.modality-card--presencial .modality-icon-wrap {
  background: #cfe8e0;
}

.modality-card--online .modality-icon-wrap {
  background: #cfe8e0;
}

.modality-card--hybrid .modality-icon-wrap {
  background: #cfe8e0;
}

@media (max-width: 576px) {
  .modality-panel-title {
    font-size: 1.9rem;
  }

  .modality-card {
    min-height: 0;
  }

  .modality-card-inner {
    padding: 1rem 0.95rem;
  }

  .modality-name {
    font-size: 1.55rem;
  }

  .modality-desc {
    font-size: 1rem;
  }

  .modality-links {
    gap: 1rem;
  }

  .modality-cta {
    max-width: 100%;
  }
}


/* ── Mode badges ── */
.mode-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.mode-badge {
  flex: 1 1 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--yellow);
}

.mode-badge > div {
  min-width: 0;
}

.mode-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mode-icon.online-icon {
  background: var(--teal-50);
}
.mode-icon.presencial-icon {
  background: var(--blue-50);
}
.mode-label {
  font-size: 0.7rem;
  color: var(--gray-400);
  margin-bottom: 2px;
}
.mode-value {
  font-size: 0.85rem;
  font-weight: 600;
}
@media (max-width: 991px) {
  .mode-badge {
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.9rem 1rem;
  }

  .mode-icon {
    width: 34px;
    height: 34px;
  }

  .mode-label {
    font-size: 0.72rem;
  }

  .mode-value {
    font-size: 0.88rem;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .mode-icon {
    display: none;
  }
}

.mode-pill {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 99px;
  margin-top: 3px;
}
.pill-online {
  background: var(--teal-50);
  color: var(--teal-600);
}
.pill-presencial {
  background: var(--blue-50);
  color: var(--blue-600);
}


/* ── Card ── */
.info-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}
/* Diseño personalizado para modalidad presencial */
.presencial-card {
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: 12px;
  position: relative;
  padding: 0.75rem;
  overflow: hidden;
  display: flex;
  align-items: stretch;
}
.presencial-accent {
  width: 6px;
  background: linear-gradient(180deg, var(--yellow) 0%, var(--yellow-900) 100%);
  border-radius: 6px;
  margin-right: 12px;
  box-shadow: 0 2px 0 rgba(0,0,0,0.06) inset;
}
.presencial-body {
  padding: 14px 12px;
  width: 100%;
  border: 1px solid rgba(0,0,0,0.04);
  border-radius: 10px;
  background: #fff;
}
.presencial-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--dark-red);
  margin-bottom: 6px;
}
.presencial-desc {
  font-size: 0.9rem;
  color: var(--gray-600);
}
.presencial-hr {
  border: none;
  border-top: 1px solid rgba(0,0,0,0.06);
  margin: 12px 0;
}
.presencial-link {
  color: var(--gray-700);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}
.presencial-link:hover { text-decoration: underline; }
.mode-icon.presencial-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-50);
  color: var(--blue-600);
  flex-shrink: 0;
}

@media (max-width: 576px) {
  .presencial-card { flex-direction: column; gap: 8px; }
  .presencial-accent { width: 100%; height: 6px; margin-right: 0; margin-bottom: 6px; border-radius: 6px; }
}

/* Estilos para modalidad en línea (diseño tipo tarjeta con CTA) */
.online-card {
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: 12px;
  position: relative;
  padding: 0.75rem;
  overflow: hidden;
  display: flex;
  align-items: stretch;
}
.online-card .presencial-accent {
  width: 6px;
  background: linear-gradient(180deg, var(--yellow) 0%, var(--yellow-900) 100%);
  border-radius: 6px;
  margin-right: 12px;
}
.online-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--dark-red);
  margin-bottom: 6px;
}
.online-desc {
  font-size: 0.9rem;
  color: var(--gray-600);
}
.online-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(90deg, var(--red), var(--dark-red));
  color: #fff;
  padding: 10px 18px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  margin-left: auto;
}
.online-cta .fas { opacity: .9; }
.online-cta .btn-arrow { margin-left: 6px; opacity: .9; }
.online-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.12); }

@media (max-width: 576px) {
  .online-card { flex-direction: column; gap: 8px; }
  .online-card .presencial-accent { width: 100%; height: 6px; margin-right: 0; margin-bottom: 6px; }
  .online-cta { width: 100%; justify-content: center; }
}
.info-card:last-child {
  margin-bottom: 0;
}
.card-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.85rem;
}

/* ── Meta grid ── */
.meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
@media (max-width: 767px) {
  .meta-grid {
    grid-template-columns: 1fr;
  }
}
.meta-cell {
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: 10px;
  padding: 10px 12px;
}
.meta-key {
  font-size: 0.7rem;
  color: var(--gray-600);
  margin-bottom: 3px;
}
.meta-val {
  font-size: 0.85rem;
  font-weight: 600;
}

/* ── Description ── */
.desc-text {
  font-size: 0.875rem;
  color: var(--gray-600);
  line-height: 1.7;
}
.dep-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--teal-600);
  text-decoration: none;
  border: 1px solid var(--teal-100);
  padding: 3px 12px;
  border-radius: 99px;
  transition: background 0.15s;
}
.dep-link:hover {
  background: var(--teal-50);
}

/* ── Requirements ── */
.req-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.req-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--gray-600);
}
.req-num {
  min-width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--gray-600);
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── Sidebar buttons ── */
.btn-primary-teal {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--teal-100);
  background: var(--teal-50);
  color: var(--teal-600);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
  margin-bottom: 8px;
}
.btn-primary-teal:hover {
  background: var(--teal-100);
  color: var(--teal-600);
}
.btn-outline-gray {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px;
  border-radius: 10px;
  border: 1px solid var(--gray-200);
  background: transparent;
  color: var(--gray-600);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
}
.btn-outline-gray:hover {
  background: var(--gray-100);
  color: var(--gray-900);
}

/* ── Contact ── */
.avatar-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--teal-50);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--teal-600);
  flex-shrink: 0;
}
.contact-name {
  font-size: 0.85rem;
  font-weight: 600;
}
.contact-role {
  font-size: 0.72rem;
  color: var(--gray-400);
  margin-top: 2px;
}
.contact-divider {
  border: none;
  border-top: 1px solid var(--gray-100);
  margin: 12px 0;
}
.contact-row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-bottom: 10px;
}
.contact-detail {
  font-size: 0.78rem;
  color: var(--gray-600);
  line-height: 1.5;
}
.contact-link {
  font-size: 0.78rem;
  color: var(--teal-600);
  text-decoration: none;
}
.contact-link:hover {
  text-decoration: underline;
}


/* ── Horario ── */
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal-400);
  display: inline-block;
  flex-shrink: 0;
  margin-top: 3px;
}

/* ── Print button ── */
.btn-print {
  background: transparent;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.78rem;
  color: var(--gray-600);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: background 0.15s;
  white-space: nowrap;
}
.btn-print:hover {
  background: var(--gray-100);
}

/* ── Modern Tabs ── */
.nav-tabs {
  border: none !important;
  display: flex;
  gap: 8px;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--gray-200) !important;
  flex-wrap: wrap;
}

.nav-item {
  margin: 0 !important;
}

.nav-link {
  border: none !important;
  background: transparent !important;
  color: var(--gray-600) !important;
  padding: 0.75rem 1.25rem !important;
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  margin-bottom: -2px;
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--red), var(--dark-red));
  transition: width 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* .nav-link:hover {
  color: var(--dark-red) !important;
  background: var(--red-100) !important;
  border-radius: 8px 8px 0 0;
} */

.nav-link:hover::after {
  width: 100%;
}

.nav-link.active {
  color: var(--red) !important;
  background: transparent !important;
  border: none !important;
  font-weight: 600;
}

/* Tab Content */
.tab-content {
  margin-top: 0;
}

.tab-pane {
  animation: fadeInUp 0.3s ease-in-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Tab content styling */
.tab-pane .p-3 {
  background: linear-gradient(135deg, var(--gray-50) 0%, #fff 100%);
  border-radius: 0 0 12px 12px;
  padding: 1.5rem !important;
  border: 1px solid var(--gray-100);
  border-top: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Responsive tabs */
@media (max-width: 768px) {
  .nav-tabs {
    gap: 4px;
  }

  .nav-link {
    padding: 0.6rem 1rem !important;
    font-size: 0.85rem;
  }
}

/* Accordions Section */
.acc-btn[aria-expanded="true"] .acc-arrow { transform: rotate(90deg); }
/* .acc-btn:hover { background: rgba(0,0,0,.03) !important; } */
/* Móvil: reducir padding del ítem */
@media (max-width: 576px) {
    .acc-item { border-radius: .5rem !important; }
    .acc-btn  { padding: .65rem .75rem !important; }
    .acc-wrap { padding: 0 .25rem; }
}
/* Evita que contenido interno (tablas, imágenes) rompa el layout */
.accordion-collapse img  { max-width: 100%; height: auto; }
.accordion-collapse table { width: 100%; display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.accordion-collapse pre  { white-space: pre-wrap; word-break: break-all; }

/* Cuando un item contiene HTML, ocultar el bullet para que el contenido
   embebido (p. ej. cajas, secciones o listas) controle su propio layout. */
.no-bullet {
  list-style: none !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
}

/* Button animation for 'Iniciar Trámite' */
.btn-animate {
  display: inline-block;
  padding: .75rem 1.25rem;
  border-radius: 10rem;
  color: #fff !important;
  text-transform: uppercase;
  font-size: 1rem;
  letter-spacing: .15rem;
  transition: all .3s;
  position: relative;
  overflow: hidden;
  z-index: 1;
  background: transparent;
  border: none;
}

.btn-animate:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--btn-color, #ab0a3d);
  border-radius: 10rem;
  z-index: -2;
}

.btn-animate:before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background-color: var(--btn-color-dark, #440412);
  transition: all .3s;
  border-radius: 10rem;
  z-index: -1;
}

.btn-animate:hover {
  color: #fff !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.btn-animate:hover:before {
  width: 100%;
}

.btn-animate:active {
  transform: translateY(0);
}

/* subtle arrow motion */
.btn-animate .btn-arrow {
  display: inline-block;
  transition: transform .25s ease;
  margin-left: .5rem;
}

.btn-animate:hover .btn-arrow {
  transform: translateX(6px);
}

.btn-animate.pop {
   animation: pop .36s cubic-bezier(.2,.8,.2,1);
}

/* ─────────────────────────────────────────────────
   NUEVO DISEÑO PARA MODALIDAD EN LÍNEA (iid === 1)
   ───────────────────────────────────────────────── */

.online-card-new {
   background: #ffffff;
   border: 1px solid var(--gray-100);
   border-radius: 16px;
   padding: 1.5rem;
   display: flex;
   flex-direction: column;
   transition: all 0.3s ease;
   box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.online-card-new:hover {
   box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
   transform: translateY(-2px);
}

.online-header-new {
   margin-bottom: 1.25rem;
}

.online-title-new {
   font-size: 1.1rem;
   font-weight: 800;
   color: #1a1a1a;
   margin-bottom: 0.75rem;
   text-transform: uppercase;
   letter-spacing: 0.02em;
}

.online-label-new {
   display: inline-block;
   background-color: #f0f0f0;
   color: #666;
   font-size: 0.7rem;
   font-weight: 700;
   letter-spacing: 0.04em;
   padding: 0.4rem 0.9rem;
   border-radius: 20px;
   text-transform: uppercase;
}

.online-inner-card-new {
   border: 2px solid #e8dcc8;
   border-left: 5px solid #d4a574;
   border-radius: 14px;
   padding: 1.25rem;
   background: #fafafa;
   margin-bottom: 1.25rem;
   flex-grow: 1;
   display: flex;
   align-items: center;
   justify-content: center;
}

.online-content-new {
   display: flex;
   align-items: center;
   gap: 1rem;
   width: 100%;
}

.online-icon-wrapper {
   background: #d4edda;
   border-radius: 12px;
   width: 56px;
   height: 56px;
   display: flex;
   align-items: center;
   justify-content: center;
   flex-shrink: 0;
   color: #28a745;
   font-size: 26px;
}

.online-text-content {
   flex: 1;
   min-width: 0;
}

.online-subtitle-new {
   font-size: 0.95rem;
   font-weight: 700;
   color: #1a1a1a;
   margin-bottom: 0.35rem;
   text-transform: uppercase;
   letter-spacing: 0.01em;
}

.online-description-new {
   font-size: 0.85rem;
   color: #666;
   margin: 0;
   line-height: 1.4;
}

.btn-online-new {
   background-color: #a91d3a;
   border: none;
   color: #ffffff;
   font-weight: 700;
   padding: 0.85rem 1.5rem;
   border-radius: 25px;
   transition: all 0.3s ease;
   text-transform: uppercase;
   font-size: 0.9rem;
   letter-spacing: 0.03em;
   display: flex;
   align-items: center;
   justify-content: center;
   gap: 0.65rem;
}

.btn-online-new:hover {
   background-color: #8b1830;
   color: #ffffff;
   text-decoration: none;
   transform: translateY(-2px);
   box-shadow: 0 6px 16px rgba(169, 29, 58, 0.3);
}

.btn-online-new:active {
   transform: translateY(0);
}

.btn-online-new i {
   font-size: 0.9rem;
}

/* Responsive design para modalidad en línea */
@media (max-width: 576px) {
   .online-card-new {
      padding: 1.25rem;
   }

   .online-title-new {
      font-size: 0.95rem;
   }

   .online-inner-card-new {
      padding: 1rem;
      flex-direction: column;
      text-align: center;
   }

   .online-content-new {
      flex-direction: column;
      gap: 0.75rem;
   }

   .online-icon-wrapper {
      width: 52px;
      height: 52px;
      font-size: 22px;
   }

   .btn-online-new {
      width: 100%;
      padding: 0.8rem 1.25rem;
      font-size: 0.85rem;
   }
}

@keyframes pop {
  0% { transform: scale(.97); opacity: .6; }
  60% { transform: scale(1.02); opacity: 1; }
  100% { transform: scale(1); }
}

.btn-animate.w-100 {
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-animate.btn-sm {
  padding: .45rem .9rem;
  font-size: .85rem;
}

.btn-animate:focus {
  outline: 3px solid rgba(0,204,255,0.18);
  outline-offset: 2px;
}

/* Reutiliza la animacion legacy en el CTA de modalidad,
   manteniendo la forma y medidas del nuevo diseno. */
.modality-cta.btn-animate {
  --btn-color: #990f3d;
  --btn-color-dark: #7f0b33;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  max-width: 240px;
  margin: 0 auto;
  padding: 0.72rem 1rem;
  border-radius: 11px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.modality-cta.btn-animate:after,
.modality-cta.btn-animate:before {
  border-radius: 11px;
}

@media (max-width: 576px) {
  .modality-cta.btn-animate {
    max-width: 100%;
  }
}

/* ================================================================
   HERO GLASS CARD FULL
   ================================================================ */
.hero-glass-card-full {
  border-radius: 0;
}

@media (min-width: 768px) {
  .hero-glass-card-full {
    border-radius: 32px;
  }

  .skylet-slide-wrapper-BTN,
  .skylet-slide-wrapper-BTN.floating,
  .skylet-slide-wrapper-BTN.snap-card {
    animation: none !important;
    transform: none !important;
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    transition: none !important;
  }
}

/* ================================================================
   HERO TITLE FLUID
   ================================================================ */
.hero-title-fluid {
  letter-spacing: -0.01em;
  line-height: 1.15;
  text-transform: uppercase;
}

/* ================================================================
   HERO SUBTITLE FLUID
   ================================================================ */
.hero-subtitle-fluid {
  font-size: clamp(0.8rem, 1.5vw, 0.95rem);
}

/* ================================================================
   INTERNAL HERO SECTION (Detalles page)
   ================================================================ */
.internal-hero-section {
  background-color: #440412;
  position: relative;
  overflow: hidden;
  min-height: 18vh;
  padding-top: 110px;
}

.internal-hero-section::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(125, 80, 147, 0.3) 0%, rgba(68, 4, 18, 0) 70%);
  border-radius: 50%;
  filter: blur(80px);
  z-index: 1;
  pointer-events: none;
}

.internal-hero-section::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(247, 181, 0, 0.1) 0%, rgba(68, 4, 18, 0) 70%);
  border-radius: 50%;
  filter: blur(80px);
  z-index: 1;
  pointer-events: none;
}

/* ================================================================
   SVG GLOW ANIMATION (used by inline SVG styles)
   ================================================================ */
@keyframes techGlowFlow {
  from { stroke-dashoffset: 200; }
  to   { stroke-dashoffset: 0; }
}

/* ================================================================
   BREADCRUMB HERO
   ================================================================ */
.internal-hero-section .breadcrumb {
  background: transparent;
  margin-bottom: 0;
  padding: 0;
}

.internal-hero-section .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.5);
  content: "/";
}

.internal-hero-section .breadcrumb-item.active {
  color: rgba(255, 255, 255, 0.7);
}

.internal-hero-section .breadcrumb-item a {
  color: #fff;
  text-decoration: none;
  transition: opacity 0.2s;
}

.internal-hero-section .breadcrumb-item a:hover {
  opacity: 0.8;
  text-decoration: none;
}

/* ================================================================
   BREADCRUMB SCROLL (Mobile horizontal scroll)
   ================================================================ */
.breadcrumb-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.breadcrumb-scroll::-webkit-scrollbar {
  display: none;
}

.breadcrumb-scroll .breadcrumb {
  flex-wrap: nowrap;
  min-width: max-content;
}

@media (max-width: 768px) {
  .breadcrumb-scroll {
    margin-left: -8px;
    margin-right: -8px;
    padding-bottom: 4px;
    cursor: grab;
  }

  .breadcrumb-scroll .breadcrumb-item {
    font-size: 0.75rem;
  }

  .internal-hero-section {
    min-height: 15vh;
  }
}

.breadcrumb-item + .breadcrumb-item::before {
  --bs-breadcrumb-divider-color: #666666;
}

/* ================================================================
   PROCESS INFO CARD - Orb Animations
   ================================================================ */
.process-info-card {
  position: relative;
  overflow: hidden;
  padding: 0 !important;
}

.process-info-card::before,
.process-info-card::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(35px);
  z-index: 0;
}

.process-info-card::before {
  width: 240px;
  height: 240px;
  right: -90px;
  top: -80px;
  background: radial-gradient(circle, rgba(247, 181, 0, 0.22) 0%, rgba(68, 4, 18, 0) 65%);
  animation: processOrb 5s ease-in-out infinite;
}

.process-info-card::after {
  width: 180px;
  height: 180px;
  left: -70px;
  bottom: -70px;
  background: radial-gradient(circle, rgba(20, 120, 75, 0.25) 0%, rgba(4, 68, 18, 0) 75%);
  animation: processOrb2 6s ease-in-out infinite;
}

@keyframes processOrb {
  0%, 100% { transform: translate(0); }
  50%      { transform: translate(-15px, 15px); }
}

@keyframes processOrb2 {
  0%, 100% { transform: translate(0); }
  50%      { transform: translate(20px, -10px); }
}

.process-info-card > * {
  position: relative;
  z-index: 2;
}

.process-info-card .card-label {
  padding: 24px 0 0 24px;
  font-size: 1.3em;
  font-weight: 800;
  color: #440412;
  text-transform: uppercase;
}

.process-info-card .meta-grid {
  padding: 10px 28px 28px;
}

.process-info-card .meta-cell {
  background: rgba(255, 255, 255, 0.39);
  border: 1px solid rgba(0, 0, 0, 0.13);
  border-radius: 18px;
  padding: 15px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.process-info-card .meta-val {
  font-weight: 700;
}

/* ================================================================
   SKYLET MODALITY PANEL
   ================================================================ */
.skylet-card {
  position: relative;
  background: #fff;
  padding: 26px 30px;
}

.skylet-text-muted {
  color: #64748b;
}

.skylet-divider {
  border-top: 1px solid #f0e4e7;
  opacity: 1;
}

.modality-name {
  font-weight: 700;
  color: #1e293b;
  font-size: 1.1rem;
}

.modality-desc {
  color: #64748b;
  font-size: 0.88rem;
}

.skylet-filters {
  border-top: 1px solid #f0e4e7;
  padding-top: 21px;
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  justify-content: center;
}

.skylet-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border: 1px solid #e2e2e8;
  border-radius: 50px;
  background: transparent;
  color: #64748b;
  font-size: 0.76rem;
  cursor: pointer;
  transition: 0.22s;
}

.skylet-filter-chip:hover {
  border-color: #440412;
  color: #440412;
}

.skylet-filter-chip.selected {
  background: #440412;
  border-color: #440412;
  color: #fff;
}

.skylet-filter-chip.selected i {
  color: #f7b500;
}

/* ================================================================
   SWIPE TO UNLOCK BUTTON
   ================================================================ */
.skylet-slide-wrapper-BTN {
  display: flex;
  justify-content: center;
}

.skylet-slide-track {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 40px;
  border: none;
  border-radius: 50px;
  background: linear-gradient(135deg, #440412 0%, #1a0108 100%);
  text-decoration: none;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 4px 15px rgba(68, 4, 18, 0.35);
  overflow: hidden;
  user-select: none;
  touch-action: none;
}

.skylet-slide-track.unlocked {
  background: linear-gradient(135deg, #1a5c3a 0%, #0d3520 100%);
}

.skylet-slide-track.swiping {
  cursor: grabbing;
}

.skylet-slide-handle {
  position: absolute;
  left: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid rgba(0, 0, 0, 0.1);
  color: #1a5c3a;
  font-size: 0.85rem;
  cursor: grab;
  z-index: 10;
  transition: background 0.2s, border-color 0.2s;
}

.skylet-slide-handle:active {
  cursor: grabbing;
}

.skylet-slide-handle i {
  color: #1a5c3a;
  transition: color 0.2s;
}

.skylet-slide-track.unlocked .skylet-slide-handle {
  background: #fff;
  border-color: #1a5c3a;
}

.skylet-slide-track.unlocked .skylet-slide-handle i {
  color: #1a5c3a;
}

.skylet-slide-text {
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-flex;
  gap: 0;
  pointer-events: none;
}

/* Progress bar behind the handle */
.skylet-slide-track::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  height: 36px;
  width: 0;
  max-width: calc(100% - 12px);
  background: rgba(26, 92, 58, 0.25);
  border-radius: 50px;
  transition: width 0.1s;
}

/* Letter blink animation */
@keyframes letterBlink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.3; }
}

.skylet-slide-text .letter {
  display: inline-block;
  animation: letterBlink 2.5s ease-in-out infinite;
}

.skylet-slide-text .letter.space {
  width: 0.35em;
}

/* ================================================================
   CONTACT SECTION (Detalles)
   ================================================================ */
.skylet-label-sm {
  font-size: 1.2rem;
  font-weight: bold;
  color: #440412;
}

.skylet-card .avatar-circle {
  width: 42px;
  height: 42px;
  background: #8b1238;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.skylet-card .contact-name {
  font-weight: 600;
  color: #1e293b;
  font-size: 0.95rem;
}

.skylet-card .contact-role {
  color: #64748b;
  font-size: 0.82rem;
}

.skylet-card .contact-link {
  color: #8b1238;
  text-decoration: none;
  font-size: 0.9rem;
}

.skylet-card .contact-link:hover {
  text-decoration: underline;
}

.skylet-card .contact-detail {
  font-size: 0.9rem;
  color: #334155;
}

/* ================================================================
   RESPONSIVE - Detalles page
   ================================================================ */
@media (min-width: 768px) and (max-width: 991.98px) {
  .container.p-3 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .row.g-4 {
    --bs-gutter-x: 1.25rem;
  }

  .col-md-8,
  .col-md-4 {
    width: 100%;
  }

  .skylet-card,
  .card {
    padding: 1.25rem !important;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .skylet-slide-text {
    font-size: 0.75rem;
    letter-spacing: 0.03em;
  }
}

@media (max-width: 767px) {
  .container.p-3 {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
  }

  .row.g-4 {
    --bs-gutter-x: 0.6rem;
  }

  .card {
    padding: 1rem !important;
  }

  .card.p-5 {
    padding: 1.25rem !important;
  }

  .process-info-card .meta-grid {
    padding: 10px 16px 20px;
  }

  .skylet-slide-wrapper-BTN {
    bottom: 14px !important;
    left: 10px !important;
    right: 10px !important;
    width: calc(100% - 20px) !important;
  }

  .skylet-slide-text {
    font-size: 0.72rem;
    letter-spacing: 0.5px;
    padding-left: 28px;
  }
}