/* ============================================================
   feature-tabs.css  v1
   Componente de funcionalidades por pestañas (desktop) / accordion (mobile)
   Tipografía: Lato (corporativa)
   Colores: #11b3a2 teal · #CE2676 buganvilla · #0b4943 dark teal
   Folder: css/components/
   Filosofía: mobile-first
     · ≤991px → accordion colapsable
     · ≥992px → tabs horizontales + panel 2 columnas (texto | visual)
   ============================================================ */

/* ── Sección wrapper ─────────────────────────────────────── */
.ft-section {
  padding: 3.5rem 1rem 2.5rem;
  background: #f8fafb;
  font-family: 'Lato', sans-serif;
}

.ft-container {
  max-width: 1100px;
  margin: 0 auto;
}

/* ── Cabecera de sección ─────────────────────────────────── */
.ft-header {
  text-align: center;
  margin-bottom: 2.25rem;
}

.ft-header h2 {
  font-family: 'Lato', sans-serif;
  font-size: clamp(1.55rem, 3.5vw, 2.2rem);
  font-weight: 900;
  color: #111827;
  line-height: 1.3;
  margin: 0;
}

/* ── Tab navigation (solo desktop ≥992px) ──────────────── */
.ft-tabs-nav {
  display: none;
}

/* ── Panels container ─────────────────────────────────────── */
.ft-panels {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* ── Panel individual ─────────────────────────────────────── */
/* Mobile: tarjeta accordion */
.ft-panel {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  overflow: hidden;
}

/* ── Accordion button (visible solo en mobile) ──────────── */
.ft-acc-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: #fff;
  border: none;
  cursor: pointer;
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: #374151;
  text-align: left;
  transition: background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.ft-acc-btn:hover {
  background: #f9fffe;
}

.ft-acc-btn[aria-expanded="true"] {
  color: #11b3a2;
  border-bottom: 1px solid #e5e7eb;
  background: #f9fffe;
}

.ft-acc-icon {
  width: 34px;
  height: 34px;
  background: #f0fdf9;
  border: 1px solid rgba(17, 179, 162, 0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #11b3a2;
  font-size: 0.9rem;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
}

.ft-acc-btn[aria-expanded="true"] .ft-acc-icon {
  background: #11b3a2;
  border-color: #11b3a2;
  color: #fff;
}

.ft-acc-label {
  flex: 1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.78rem;
}

.ft-acc-chevron {
  font-size: 0.72rem;
  color: #9ca3af;
  transition: transform 0.28s ease, color 0.15s;
  flex-shrink: 0;
}

.ft-acc-btn[aria-expanded="true"] .ft-acc-chevron {
  transform: rotate(180deg);
  color: #11b3a2;
}

/* ── Panel body: contenido colapsable (mobile) ──────────── */
.ft-panel-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.42s ease;
}

.ft-panel--active .ft-panel-body {
  max-height: 1200px;
}

/* ── Inner layout (mobile: columna única) ───────────────── */
.ft-panel-inner {
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* ── Chip de categoría ───────────────────────────────────── */
.ft-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #e8faf8;
  border: 1px solid rgba(17, 179, 162, 0.3);
  border-radius: 999px;
  padding: 4px 12px;
  font-family: 'Lato', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: #0b4943;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.6rem;
  white-space: nowrap;
}

.ft-chip i {
  color: #11b3a2;
  font-size: 0.72rem;
}

/* ── Título del panel ────────────────────────────────────── */
.ft-panel-title {
  font-family: 'Lato', sans-serif;
  font-size: 1.2rem;
  font-weight: 900;
  color: #111827;
  line-height: 1.3;
  margin: 0 0 0.65rem;
}

/* ── Descripción ─────────────────────────────────────────── */
.ft-panel-desc {
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.7;
  margin: 0 0 1rem;
}

/* ── Bullets ─────────────────────────────────────────────── */
.ft-bullets {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 0.5rem !important;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.ft-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-family: 'Lato', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  line-height: 1.4;
}

.ft-bullets li i {
  color: #11b3a2;
  font-size: 0.9rem;
  margin-top: 2px;
  flex-shrink: 0;
}

/* ── Visual / imagen ─────────────────────────────────────── */
.ft-visual {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
}

.ft-visual img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0 0 10px 10px;
}

/* ── Browser bar decorativa ──────────────────────────────── */
.ft-browser-bar {
  background: #f3f4f6;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 5px;
  border-bottom: 1px solid #e5e7eb;
  flex-shrink: 0;
}

.ft-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ft-url-bar {
  flex: 1;
  height: 14px;
  background: #e5e7eb;
  border-radius: 999px;
  margin-left: 6px;
}

/* Placeholder hasta disponer de imagen real */
.ft-visual-placeholder {
  background: linear-gradient(135deg, #0b4943 0%, #11b3a2 100%);
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.45);
  font-size: 3rem;
}

/* ── CTA footer de la sección ────────────────────────────── */
.ft-cta-wrap {
  text-align: center;
  margin-top: 2rem;
}

/* ═══════════════════════════════════════════════════════════
   DESKTOP ≥992px: layout de tabs + 2 columnas
   ═══════════════════════════════════════════════════════════ */
@media (min-width: 992px) {

  /* Mostrar barra de tabs */
  .ft-tabs-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 2.25rem;
  }

  /* Botón tab */
  .ft-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.4rem;
    border: 1.5px solid #d1d5db;
    border-radius: 999px;
    background: #fff;
    font-family: 'Lato', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
  }

  .ft-tab i {
    font-size: 0.82rem;
  }

  .ft-tab:hover {
    border-color: #11b3a2;
    color: #11b3a2;
    background: #f9fffe;
  }

  .ft-tab.ft-tab--active {
    background: #11b3a2;
    border-color: #11b3a2;
    color: #fff;
  }

  /* Stack de panels: mostrar solo el activo */
  .ft-panels {
    gap: 0;
  }

  .ft-panel {
    display: none;
    border: none;
    border-radius: 0;
    background: transparent;
    overflow: visible;
  }

  .ft-panel.ft-panel--active {
    display: block;
  }

  /* Ocultar accordion headers en desktop */
  .ft-acc-btn {
    display: none;
  }

  /* Panel body: siempre visible y sin transición en desktop */
  .ft-panel-body {
    max-height: none !important;
    overflow: visible;
    transition: none;
  }

  /* Inner layout: 2 columnas (texto | visual) */
  .ft-panel-inner {
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
  }

  /* Título más grande en desktop */
  .ft-panel-title {
    font-size: 1.6rem;
  }

  .ft-panel-desc {
    font-size: 0.95rem;
  }

  .ft-bullets li {
    font-size: 0.92rem;
  }

  .ft-visual-placeholder {
    min-height: 260px;
  }

  .ft-cta-wrap {
    margin-top: 2.75rem;
  }
}

/* ── Tablet intermedia 768-991px (accordion, pero más espacio) */
@media (min-width: 768px) and (max-width: 991px) {
  .ft-panel-inner {
    padding: 1.75rem 1.5rem;
  }

  .ft-panel-title {
    font-size: 1.3rem;
  }
}
