/* ================================================
   SECTIONS.CSS — Secciones intermedias: logos, video, pasos,
                  características, testimoniales, comparación, FAQ, desarrollo
   Proyecto: SmartDaga Landing
   Autor: e-DAGA Systems
================================================ */

/* ── Logos de integración ── */
#logos       { padding: 2.25rem 0; border-bottom: 1px solid var(--border); }
.logos-lbl   { font-size: .68rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #9CA3AF; text-align: center; margin-bottom: 1.1rem; }
.logos-row   { display: flex; align-items: center; justify-content: center; gap: 2.5rem; flex-wrap: wrap; }
.logo-item   { display: flex; align-items: center; gap: .35rem; opacity: .85; transition: opacity .2s; }
.logo-item:hover { opacity: 1; }
.logo-item svg  { width: 26px; height: 26px; flex-shrink: 0; }
.logo-item span { font-size: .8rem; font-weight: 800; letter-spacing: .04em; color: var(--dark); }

/* ── Video demo (oculto hasta tener YouTube ID) ── */
#video-demo  { background: var(--bg2); display: none; }
.video-wrap  { position: relative; border-radius: 20px; overflow: hidden; cursor: pointer; box-shadow: 0 24px 64px rgba(0,0,0,.15); max-width: 780px; margin: 2.5rem auto 0; }
.video-wrap img       { width: 100%; display: block; aspect-ratio: 16/9; object-fit: cover; }
.video-overlay        { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(10,36,99,.4); transition: background .2s; }
.video-wrap:hover .video-overlay { background: rgba(10,36,99,.55); }
.play-circle          { width: 72px; height: 72px; background: var(--green); border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 32px rgba(0,176,80,.45); transition: transform .2s; }
.video-wrap:hover .play-circle   { transform: scale(1.08); }
/* Modal de video */
#videoModal  { display: none; position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.88); align-items: center; justify-content: center; padding: 1rem; }
#videoModal.open { display: flex; }
.modal-box   { position: relative; width: 100%; max-width: 860px; aspect-ratio: 16/9; border-radius: 16px; overflow: hidden; background: #000; }
.modal-box iframe { width: 100%; height: 100%; border: none; }
.modal-close { position: absolute; top: -2.75rem; right: 0; background: rgba(255,255,255,.15); border: none; color: #fff; font-size: 1.1rem; cursor: pointer; padding: .35rem .9rem; border-radius: 8px; font-weight: 700; transition: background .2s; }
.modal-close:hover { background: rgba(255,255,255,.28); }

/* ── Cómo funciona ── */
.steps-wrap  { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 0; align-items: start; margin-top: 3rem; }
.step        { text-align: center; padding: 1.5rem 1rem; }
.step-n          { width: 52px; height: 52px; background: var(--navy); color: #fff; font-size: 1.2rem; font-weight: 900; border-radius: 14px; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.1rem; }
.step-n--accent  { background: var(--orange); }
.step-n--success { background: var(--green); }
.step-arrow  { display: flex; align-items: flex-start; padding-top: 2.5rem; color: #CBD5E1; }
.step-title  { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: .4rem; }
.step-desc   { font-size: .875rem; color: #6B7280; line-height: 1.6; }

/* ── Características ── */
#caracteristicas { background: var(--bg2); }
.feat-card       { background: #fff; border: 1px solid var(--border); border-radius: var(--r); padding: 1.75rem 1.5rem; transition: box-shadow .25s, transform .25s; }
.feat-card:hover { box-shadow: 0 12px 40px rgba(0,0,0,.08); transform: translateY(-3px); }
.feat-icon  { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.fi-navy    { background: rgba(10,36,99,.08); }
.fi-green   { background: rgba(0,176,80,.1); }
.fi-orange  { background: rgba(249,115,22,.1); }
.feat-title { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: .4rem; }
.feat-desc  { font-size: .875rem; color: #6B7280; line-height: 1.6; }

/* ── Testimoniales ── */
.testi-card   { background: #fff; border: 1px solid var(--border); border-radius: var(--r); padding: 1.75rem; display: flex; flex-direction: column; gap: .9rem; }
.testi-stars  { color: #F59E0B; font-size: .85rem; letter-spacing: .08em; }
.testi-q      { font-size: .925rem; color: var(--text); line-height: 1.7; flex: 1; }
.testi-author { display: flex; align-items: center; gap: .7rem; padding-top: .8rem; border-top: 1px solid var(--border); }
.testi-av     { width: 40px; height: 40px; border-radius: 50%; background: var(--navy); display: flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 800; color: #fff; flex-shrink: 0; }
.testi-name   { font-size: .85rem; font-weight: 700; color: var(--dark); }
.testi-biz    { font-size: .72rem; color: #9CA3AF; }

/* ── Comparación — desktop ── */
#comparacion  { background: var(--bg2); }
.comp-wrap    { overflow-x: auto; border-radius: 16px; box-shadow: 0 8px 32px rgba(0,0,0,.07); }
.comp-table   { width: 100%; border-collapse: collapse; min-width: 520px; }
.comp-table th { padding: 1.1rem 1rem; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.comp-table td { padding: .9rem 1rem; text-align: center; font-size: .875rem; border-bottom: 1px solid var(--border); }
.comp-table tr:last-child td { border-bottom: none; }
.th-us   { background: var(--navy); color: #fff; }
.th-them { background: #F3F4F6; color: #6B7280; }
.th-feat { background: #F9FAFB; text-align: left; color: var(--dark); }
.td-feat { text-align: left !important; font-weight: 500; color: var(--dark); padding-left: 1.25rem !important; }
.ck      { color: var(--green); font-weight: 900; font-size: 1rem; }
.xk      { color: #EF4444; font-size: 1rem; }
.pk      { color: #F59E0B; font-size: .8rem; font-weight: 600; }
.pk-label { color: #F59E0B; font-size: .82rem; font-weight: 700; white-space: nowrap; }

/* ── Comparación — mobile cards ── */
.comp-mobile     { display: none; flex-direction: column; gap: .7rem; }
.comp-card       { background: #fff; border-radius: 12px; border-left: 3px solid var(--orange); padding: 1.1rem 1.25rem; box-shadow: 0 4px 16px rgba(0,0,0,.06); }
.comp-card-feat  { font-size: .9rem; font-weight: 700; color: var(--dark); padding-bottom: .6rem; margin-bottom: .5rem; border-bottom: 1px solid var(--border); }
.comp-row        { display: flex; align-items: center; justify-content: space-between; padding: .4rem 0; font-size: .85rem; gap: .5rem; }
.comp-row + .comp-row { border-top: 1px solid #F3F4F6; }
.comp-row-lbl    { display: flex; align-items: center; gap: .45rem; font-weight: 500; color: var(--dark); min-width: 0; }
.comp-row-lbl.them { color: #9CA3AF; font-weight: 400; }
.comp-row-lbl img  { height: 20px; width: auto; mix-blend-mode: multiply; flex-shrink: 0; }

/* ── FAQ ── */
#faq          { background: #fff !important; }
.faq-list     { max-width: 700px; margin: 2.5rem auto 0; display: flex; flex-direction: column; gap: .65rem; }
.faq-item     { background: #fff; border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.faq-btn      { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 1.1rem 1.4rem; background: none; border: none; cursor: pointer; text-align: left; font-size: .95rem; font-weight: 600; color: var(--dark); gap: 1rem; font-family: var(--font-main); }
.faq-ico      { flex-shrink: 0; width: 24px; height: 24px; background: var(--bg2); border-radius: 6px; display: flex; align-items: center; justify-content: center; transition: background .2s; }
.faq-item.open .faq-ico { background: var(--navy); }
.faq-ico svg  { transition: transform .3s; }
.faq-item.open .faq-ico svg { transform: rotate(45deg); }
.faq-item.open .faq-ico svg path { stroke: #fff; }
.faq-body       { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-body-inner { padding: 0 1.4rem 1.1rem; font-size: .875rem; color: #6B7280; line-height: 1.72; }

