/* Gen Suite — ajustes responsive y nuevo selector de planes.
   Se carga después de main.css y gensuite.css, así que sus reglas tienen prioridad.
   Puntos de corte: 640 (celular grande), 768 (tablet), 1024 (laptop), 1280 (escritorio). */

/* ═════════════════════════ Precios: selector de planes ═════════════════════════ */
.gs-pricing { padding: 116px 0 8px; background: #f9fafb; }
.dark .gs-pricing { background: #0b1f29; }
@media (min-width: 768px) { .gs-pricing { padding-top: 150px; } }

.gs-pricing-head { display: grid; justify-items: center; gap: .85rem; max-width: 46rem; margin: 0 auto; text-align: center; }
.gs-pricing-head h1 { margin: 0; color: #0e3d51; font-size: clamp(1.85rem, 1.2rem + 2.6vw, 3rem); font-weight: 500; line-height: 1.15; letter-spacing: -.01em; text-wrap: balance; }
.dark .gs-pricing-head h1 { color: #fff; }
.gs-pricing-head p { max-width: 36rem; margin: 0; font-size: 1rem; line-height: 1.55; }

.gs-pricing-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .75rem 1rem; margin: 2rem auto 0; }
.gs-toggle button { cursor: pointer; }
.gs-toggle button:focus-visible { outline: 2px solid #FCB124; outline-offset: 2px; }
@media (max-width: 639px) {
  .gs-pricing-controls { flex-direction: column; align-items: stretch; max-width: 420px; }
  .gs-pricing-controls .gs-toggle { display: flex; width: 100%; }
  .gs-pricing-controls .gs-toggle button { flex: 1 1 0; min-height: 44px; padding: 8px 10px; font-size: 14px; line-height: 1.2; }
}

.gs-pp { margin-top: 2.25rem; }
.gs-pp-hint { margin: 0 0 1rem; color: #58717b; font-size: .875rem; text-align: center; }
.dark .gs-pp-hint { color: #c2d4d8; }

/* Botones de plan */
.gs-pp-tabs { display: grid; grid-template-columns: repeat(var(--gs-pp-count, 4), minmax(0, 1fr)); gap: .5rem; max-width: 1000px; margin: 0 auto; padding: .4rem; border: 1px solid #dfe8ea; border-radius: 1.35rem; background: #fff; box-shadow: 0 10px 30px -20px rgba(14, 61, 81, .35); }
.dark .gs-pp-tabs { border-color: #294650; background: #102c38; box-shadow: none; }
.gs-pp-tab { position: relative; display: flex; min-width: 0; min-height: 72px; flex-direction: column; align-items: center; justify-content: center; gap: .2rem; padding: .85rem .5rem .75rem; border: 1px solid transparent; border-radius: 1rem; background: transparent; color: #0e3d51; font-family: inherit; text-align: center; cursor: pointer; transition: background .2s ease, color .2s ease, box-shadow .2s ease; }
.gs-pp-tab:hover { background: #eef6f6; }
.gs-pp-tab:focus-visible { outline: 2px solid #FCB124; outline-offset: 2px; }
.gs-pp-tab-name { max-width: 100%; overflow: hidden; font-size: 1.05rem; font-weight: 700; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.gs-pp-tab-price { color: #58717b; font-size: .85rem; font-weight: 500; line-height: 1.2; white-space: nowrap; }
.gs-pp-tab-price small { margin-left: 1px; font-size: .75rem; }
.gs-pp-tab-badge { position: absolute; top: -.7rem; left: 50%; padding: .2rem .55rem; border-radius: 999px; background: #FCB124; color: #0e3d51; font-size: .625rem; font-weight: 800; letter-spacing: .03em; line-height: 1.2; text-transform: uppercase; white-space: nowrap; transform: translateX(-50%); box-shadow: 0 4px 10px -4px rgba(0, 0, 0, .35); }
.gs-pp-tab[aria-selected="true"] { background: #208591; color: #fff; box-shadow: 0 12px 24px -12px rgba(32, 133, 145, .75); }
.gs-pp-tab[aria-selected="true"] .gs-pp-tab-price { color: rgba(255, 255, 255, .85); }
.dark .gs-pp-tab { color: #e8f3f3; }
.dark .gs-pp-tab:hover { background: rgba(255, 255, 255, .05); }
.dark .gs-pp-tab-price { color: #a9c0c6; }
.dark .gs-pp-tab[aria-selected="true"] { background: #7fd0bd; color: #0e3d51; box-shadow: 0 12px 24px -14px rgba(127, 208, 189, .7); }
.dark .gs-pp-tab[aria-selected="true"] .gs-pp-tab-price { color: rgba(14, 61, 81, .8); }
[data-price].hidden { display: none !important; }
@media (max-width: 639px) {
  .gs-pp { margin-top: 1.75rem; }
  .gs-pp-tabs[data-count="4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1rem; }
  .gs-pp-tab { min-height: 64px; padding: .8rem .35rem .65rem; }
  .gs-pp-tab-name { font-size: .95rem; }
  .gs-pp-tab-price { font-size: .8rem; }
}
@media (max-width: 359px) {
  .gs-pp-tabs { gap: .3rem; padding: .3rem; }
  .gs-pp-tab { padding-left: .15rem; padding-right: .15rem; }
  .gs-pp-tab-name { font-size: .8rem; letter-spacing: -.01em; }
  .gs-pp-tab-price small { display: none; }
}

/* Detalle del plan seleccionado */
.gs-pp-panel { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; margin-top: 1.5rem; }
.gs-pp-panel[hidden] { display: none; }
.gs-pp-panel.is-entering { animation: gs-pp-in .35s ease both; }
@keyframes gs-pp-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .gs-pp-panel.is-entering { animation: none; } .gs-pp-tab { transition: none; } }
@media (min-width: 1024px) {
  .gs-pp-panel { grid-template-columns: minmax(300px, 370px) minmax(0, 1fr); gap: 1.5rem; align-items: start; margin-top: 2rem; }
  .gs-pp-summary { position: sticky; top: 104px; }
}

.gs-pp-summary { display: flex; min-width: 0; flex-direction: column; gap: 1.25rem; padding: 1.5rem; border: 1px solid #dbe4e7; border-radius: 1.5rem; background: #fff; color: #0e3d51; box-shadow: 0 14px 34px -22px rgba(14, 61, 81, .4); }
.gs-pp-panel--featured .gs-pp-summary { border: 2px solid #208591; }
.dark .gs-pp-summary { border-color: #31505b; background: #102c38; color: #eef7f7; box-shadow: 0 14px 34px -22px rgba(0, 0, 0, .6); }
.dark .gs-pp-panel--featured .gs-pp-summary { border-color: #7fd0bd; }
.gs-pp-summary-head { display: flex; align-items: flex-start; gap: .9rem; }
.gs-pp-icon { display: grid; width: 3rem; height: 3rem; flex: none; place-items: center; border-radius: .95rem; background: rgba(32, 133, 145, .1); color: #208591; }
.gs-pp-icon svg { width: 1.6rem; height: 1.6rem; }
.dark .gs-pp-icon { background: rgba(127, 208, 189, .12); color: #7fd0bd; }
.gs-pp-flag { display: inline-block; margin-bottom: .35rem; padding: .15rem .55rem; border-radius: 999px; background: rgba(252, 177, 36, .2); color: #8a5a00; font-size: .7rem; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; }
.dark .gs-pp-flag { color: #FCB124; }
.gs-pp-summary-head h3 { margin: 0; color: #0e3d51; font-size: 1.5rem; font-weight: 700; line-height: 1.2; }
.gs-pp-summary-head p { margin: .3rem 0 0; color: #58717b; font-size: .92rem; line-height: 1.45; }
.dark .gs-pp-summary-head h3 { color: #f1f8f8; }
.dark .gs-pp-summary-head p { color: #c2d4d8; }

.gs-pp-price-block { padding-top: 1.15rem; border-top: 1px solid #e4ebed; }
.dark .gs-pp-price-block { border-color: #31505b; }
.gs-pp-price > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem; }
.gs-pp-price strong { color: #0e3d51; font-size: 2.6rem; font-weight: 750; letter-spacing: -.04em; line-height: 1; }
.gs-pp-price span { color: #6c828a; font-size: 1rem; }
.gs-pp-price p { margin: .5rem 0 0; color: #6c828a; font-size: .82rem; line-height: 1.4; }
.gs-pp-panel--featured .gs-pp-price strong { color: #208591; }
.dark .gs-pp-price strong { color: #f1f8f8; }
.dark .gs-pp-panel--featured .gs-pp-price strong { color: #FCB124; }
.dark .gs-pp-price span, .dark .gs-pp-price p { color: #a9c0c6; }
.gs-pp-activation { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .2rem .75rem; margin-top: 1rem; padding: .7rem .85rem; border-radius: .85rem; background: #f2f7f7; color: #4d6872; font-size: .85rem; }
.gs-pp-activation strong { color: #0e3d51; font-weight: 700; }
.gs-pp-activation-note { margin: .55rem 0 0; color: #6a7f86; font-size: .8rem; line-height: 1.4; }
.dark .gs-pp-activation { background: #183b47; color: #c2d4d8; }
.dark .gs-pp-activation strong { color: #fff; }
.dark .gs-pp-activation-note { color: #a9c0c6; }

.gs-pp-cta { display: flex; width: 100%; min-height: 3.1rem; align-items: center; justify-content: center; border: 0; border-radius: 999px; background: #208591; color: #fff; font-family: inherit; font-size: .98rem; font-weight: 700; cursor: pointer; transition: background .2s ease, transform .2s ease; }
.gs-pp-cta:hover { background: #0e3d51; transform: translateY(-1px); }
.gs-pp-cta:focus-visible { outline: 2px solid #FCB124; outline-offset: 3px; }
.gs-pp-panel--featured .gs-pp-cta { background: #FCB124; color: #0e3d51; }
.gs-pp-panel--featured .gs-pp-cta:hover { background: #e59e14; }
.dark .gs-pp-cta:hover { background: #7fd0bd; color: #0e3d51; }
.dark .gs-pp-panel--featured .gs-pp-cta:hover { background: #e59e14; }

.gs-pp-limits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; margin: 0; padding: 0; list-style: none; }
.gs-pp-limits li { display: flex; min-width: 0; align-items: center; gap: .5rem; padding: .65rem .7rem; border: 1px solid #e6eef0; border-radius: .8rem; background: #f7fafa; color: #4d6872; font-size: .84rem; line-height: 1.25; }
.gs-pp-limits svg { width: 1.15rem; height: 1.15rem; flex: none; color: #208591; }
.gs-pp-limits strong { color: #0e3d51; font-weight: 700; }
.dark .gs-pp-limits li { border-color: #294650; background: #143342; color: #c2d4d8; }
.dark .gs-pp-limits svg { color: #7fd0bd; }
.dark .gs-pp-limits strong { color: #fff; }

/* Tablet: el resumen se acomoda en dos columnas */
@media (min-width: 768px) and (max-width: 1023px) {
  .gs-pp-summary { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 1.25rem 2rem; padding: 1.75rem; }
  .gs-pp-summary-head, .gs-pp-price-block { grid-column: 1; }
  .gs-pp-cta { grid-column: 2; grid-row: 1; }
  .gs-pp-limits { grid-column: 2; grid-row: 2; }
}

.gs-pp-detail { display: grid; min-width: 0; gap: 1.25rem; }
.gs-pp-highlights { padding: 1.5rem; border-radius: 1.5rem; background: linear-gradient(125deg, #0e3d51 0%, #14586a 58%, #208591 100%); color: #fff; }
.gs-pp-highlights h4 { margin: 0 0 1rem; color: #fff; font-size: 1.05rem; font-weight: 600; line-height: 1.4; }
.gs-pp-highlights ul { display: grid; gap: .8rem; margin: 0; padding: 0; list-style: none; }
.gs-pp-highlights li { display: flex; align-items: flex-start; gap: .65rem; }
.gs-pp-highlights p { margin: 0; color: rgba(255, 255, 255, .86); font-size: .95rem; line-height: 1.45; }
.gs-pp-highlights p strong { color: #fff; font-weight: 700; }
.gs-pp-check { display: grid; width: 1.4rem; height: 1.4rem; flex: none; place-items: center; margin-top: .05rem; border-radius: 50%; background: #7fd0bd; color: #0e3d51; }
.gs-pp-check svg { width: .85rem; height: .85rem; }
@media (min-width: 640px) { .gs-pp-highlights { padding: 1.75rem; } .gs-pp-highlights ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem 1.5rem; } }

.gs-pp-modules-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem 1rem; margin-top: .25rem; }
.gs-pp-modules-head h4 { margin: 0; color: #0e3d51; font-size: 1.2rem; font-weight: 700; line-height: 1.3; }
.gs-pp-modules-head span { color: #58717b; font-size: .875rem; font-weight: 600; }
.dark .gs-pp-modules-head h4 { color: #f1f8f8; }
.dark .gs-pp-modules-head span { color: #a9c0c6; }
.gs-pp-modules { display: grid; gap: .65rem; }
@media (min-width: 768px) { .gs-pp-modules { display: block; columns: 2; column-gap: 1rem; } .gs-pp-module { margin-bottom: 1rem; } }

.gs-pp-module { overflow: hidden; break-inside: avoid; border: 1px solid #e1e9eb; border-radius: 1.1rem; background: #fff; }
.dark .gs-pp-module { border-color: #294650; background: #102c38; }
.gs-pp-module summary { display: flex; min-height: 3.5rem; align-items: center; gap: .7rem; padding: .8rem 1rem; list-style: none; cursor: pointer; }
.gs-pp-module summary::-webkit-details-marker { display: none; }
.gs-pp-module summary:focus-visible { outline: 2px solid #FCB124; outline-offset: -2px; border-radius: 1.1rem; }
.gs-pp-module-icon { display: grid; width: 2.1rem; height: 2.1rem; flex: none; place-items: center; border-radius: .65rem; background: rgba(32, 133, 145, .1); color: #208591; }
.gs-pp-module-icon svg { width: 1.15rem; height: 1.15rem; }
.gs-pp-module-name { flex: 1; min-width: 0; color: #0e3d51; font-size: .98rem; font-weight: 700; line-height: 1.25; }
.gs-pp-module-count { flex: none; padding: .2rem .55rem; border-radius: 999px; background: rgba(32, 133, 145, .1); color: #16717b; font-size: .75rem; font-weight: 800; }
.gs-pp-module-chevron { width: 1.15rem; height: 1.15rem; flex: none; color: #58717b; transition: transform .2s ease; }
.gs-pp-module[open] .gs-pp-module-chevron { transform: rotate(180deg); }
.dark .gs-pp-module-icon { background: rgba(127, 208, 189, .12); color: #7fd0bd; }
.dark .gs-pp-module-name { color: #f1f8f8; }
.dark .gs-pp-module-count { background: rgba(127, 208, 189, .14); color: #a4e3d5; }
.dark .gs-pp-module-chevron { color: #a9c0c6; }
@media (min-width: 768px) { .gs-pp-module summary { cursor: default; } .gs-pp-module-chevron { display: none; } }
.gs-pp-module ul { display: grid; margin: 0; padding: 0 1rem .85rem; list-style: none; }
.gs-pp-module li { display: flex; align-items: flex-start; gap: .6rem; padding: .45rem 0; border-top: 1px solid #eef3f4; color: #234c5a; font-size: .9rem; line-height: 1.4; }
.gs-pp-module li:first-child { border-top: 0; }
.gs-pp-mark { display: grid; width: 1.2rem; height: 1.2rem; flex: none; place-items: center; margin-top: .08rem; border-radius: 50%; }
.gs-pp-module .is-included .gs-pp-mark { background: rgba(32, 133, 145, .14); color: #208591; }
.gs-pp-module .is-excluded { color: #8fa2a8; }
.gs-pp-module .is-excluded .gs-pp-mark { background: #eef2f3; color: #9fb0b5; }
.gs-pp-item em { display: inline-block; margin-left: .4rem; padding: .1rem .45rem; border-radius: 999px; background: rgba(252, 177, 36, .2); color: #8a5a00; font-size: .72rem; font-style: normal; font-weight: 700; vertical-align: 1px; }
.dark .gs-pp-module li { border-color: #1f3b4a; color: #d7e5e8; }
.dark .gs-pp-module .is-included .gs-pp-mark { background: rgba(127, 208, 189, .16); color: #7fd0bd; }
.dark .gs-pp-module .is-excluded { color: #7d97a0; }
.dark .gs-pp-module .is-excluded .gs-pp-mark { background: #183b47; color: #6b8790; }
.dark .gs-pp-item em { color: #FCB124; }

.gs-pricing-footnote { margin: 1.5rem auto 0; max-width: 46rem; color: #6a7f86; font-size: .82rem; line-height: 1.5; text-align: center; }
.dark .gs-pricing-footnote { color: #a9c0c6; }

/* Comparativa completa (plegable) */
.gs-compare-section { background: #f9fafb; }
.dark .gs-compare-section { background: #0b1f29; }
@media (min-width: 1280px) { main > section#comparar > .main-container { padding-left: 20px !important; padding-right: 20px !important; } }
@media (min-width: 1440px) { main > section#comparar > .main-container { padding-left: 0 !important; padding-right: 0 !important; } }
.gs-compare { overflow: hidden; border: 1px solid #dfe8ea; border-radius: 1.35rem; background: #fff; }
.dark .gs-compare { border-color: #294650; background: #102c38; }
.gs-compare > summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.15rem 1.35rem; list-style: none; cursor: pointer; }
.gs-compare > summary::-webkit-details-marker { display: none; }
.gs-compare > summary:focus-visible { outline: 2px solid #FCB124; outline-offset: -3px; border-radius: 1.35rem; }
.gs-compare-summary-text strong { display: block; color: #0e3d51; font-size: 1.1rem; font-weight: 700; }
.gs-compare-summary-text small { display: block; margin-top: .15rem; color: #58717b; font-size: .875rem; }
.dark .gs-compare-summary-text strong { color: #f1f8f8; }
.dark .gs-compare-summary-text small { color: #a9c0c6; }
.gs-compare-summary-action { display: inline-flex; flex: none; align-items: center; justify-content: center; gap: .4rem; min-height: 2.6rem; padding: .5rem 1rem; border-radius: 999px; background: rgba(32, 133, 145, .1); color: #16717b; font-size: .875rem; font-weight: 700; }
.gs-compare-summary-action svg { width: 1rem; height: 1rem; transition: transform .2s ease; }
.gs-compare[open] .gs-compare-summary-action svg { transform: rotate(180deg); }
.gs-compare-close, .gs-compare[open] .gs-compare-open { display: none; }
.gs-compare[open] .gs-compare-close { display: inline; }
.dark .gs-compare-summary-action { background: rgba(127, 208, 189, .14); color: #a4e3d5; }
@media (max-width: 639px) { .gs-compare > summary { flex-direction: column; align-items: stretch; padding: 1.1rem; } .gs-compare-summary-action { width: 100%; } }

.gs-compare-wrap { border-top: 1px solid #e6eef0; }
.dark .gs-compare-wrap { border-color: #294650; }
/* position: relative para que los textos .sr-only (absolutos) de las celdas no ensanchen la página */
.gs-compare-scroll { position: relative; overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.gs-compare-scroll:focus-visible { outline: 2px solid #FCB124; outline-offset: -2px; }
.gs-compare-table { width: max(100%, calc(240px + var(--gs-compare-cols, 4) * 130px)); table-layout: fixed; border-collapse: separate; border-spacing: 0; font-size: .875rem; }
.gs-compare-table thead th:first-child { width: 240px; }
.gs-compare-hint { display: none; margin: 0; padding: .65rem 1rem; border-bottom: 1px solid #e6eef0; color: #58717b; font-size: .8rem; text-align: center; }
.dark .gs-compare-hint { border-color: #294650; color: #a9c0c6; }
.gs-compare-table th, .gs-compare-table td { padding: .7rem .9rem; border-bottom: 1px solid #edf2f3; text-align: center; vertical-align: middle; }
.gs-compare-table thead th { padding-top: 1rem; padding-bottom: 1rem; background: #fff; }
.gs-compare-table thead th:first-child { color: #0e3d51; font-size: .95rem; font-weight: 700; text-align: left; }
.gs-compare-table thead th:first-child, .gs-compare-table tbody th[scope="row"] { position: sticky; left: 0; z-index: 1; min-width: 200px; background: #fff; box-shadow: 1px 0 0 #edf2f3; }
.gs-compare-table tbody th[scope="row"] { color: #234c5a; font-weight: 500; text-align: left; }
.gs-compare-plan { display: block; color: #208591; font-size: .95rem; font-weight: 700; }
.gs-compare-price { display: block; margin-top: .15rem; color: #58717b; font-size: .78rem; font-weight: 500; white-space: nowrap; }
.gs-compare-table .is-featured { background-color: rgba(32, 133, 145, .05); }
.gs-compare-cat th { padding: .6rem .9rem; background: #f3f8f8; color: #16717b; font-size: .78rem; font-weight: 800; letter-spacing: .05em; text-align: left; text-transform: uppercase; }
.gs-compare-yes { display: inline-grid; width: 1.45rem; height: 1.45rem; place-items: center; border-radius: 50%; background: rgba(32, 133, 145, .12); color: #208591; }
.gs-compare-no { color: #a3b3b8; }
.gs-compare-text { color: #0e3d51; font-size: .84rem; font-weight: 700; }
.gs-compare-table tbody tr:last-child > * { border-bottom: 0; }
.dark .gs-compare-table th, .dark .gs-compare-table td { border-color: #1f3b4a; }
.dark .gs-compare-table thead th, .dark .gs-compare-table thead th:first-child, .dark .gs-compare-table tbody th[scope="row"] { background: #102c38; box-shadow: 1px 0 0 #1f3b4a; }
.dark .gs-compare-table thead th:first-child { color: #f1f8f8; }
.dark .gs-compare-table tbody th[scope="row"] { color: #d7e5e8; }
.dark .gs-compare-plan { color: #7fd0bd; }
.dark .gs-compare-price { color: #a9c0c6; }
.dark .gs-compare-table .is-featured { background-color: rgba(127, 208, 189, .06); }
.dark .gs-compare-cat th { background: #183b47; color: #7fd0bd; }
.dark .gs-compare-yes { background: rgba(127, 208, 189, .16); color: #7fd0bd; }
.dark .gs-compare-no { color: #5d7a84; }
.dark .gs-compare-text { color: #fff; }
@media (max-width: 767px) {
  .gs-compare-table { width: max(100%, calc(140px + var(--gs-compare-cols, 4) * 104px)); font-size: .82rem; }
  .gs-compare-table th, .gs-compare-table td { padding: .6rem .55rem; }
  .gs-compare-table thead th:first-child, .gs-compare-table tbody th[scope="row"] { min-width: 0; }
  .gs-compare-table thead th:first-child { width: 140px; }
  .gs-compare-plan { font-size: .88rem; }
  .gs-compare-hint { display: block; }
}

/* Banner final de precios: mismo ancho que el selector de planes en escritorio */
@media (min-width: 1280px) { main > section.gs-pricing-contact-wrap > .main-container { padding-left: 20px !important; padding-right: 20px !important; } }
@media (min-width: 1440px) { main > section.gs-pricing-contact-wrap > .main-container { padding-left: 0 !important; padding-right: 0 !important; } }

/* ═════════════════════════ Global: header, menú móvil, footer ═════════════════════════ */
/* Header: mismo margen lateral que el contenido en celular y tablet, y fondo legible al hacer scroll */
@media (max-width: 1279px) { .gs-header, .gs-header.header-four-scroll { padding-left: 20px !important; padding-right: 20px !important; } }
.gs-header.header-four-scroll { top: 0 !important; }
.dark .gs-header.header-four-scroll { background-color: rgba(8, 24, 32, .84) !important; border-bottom-color: rgba(255, 255, 255, .08); }
@media (max-width: 767px) {
  .gs-header { min-height: 64px; }
  .gs-header .gs-logo-light, .gs-header .gs-logo-dark { width: 132px; }
  .gs-header .nav-hamburger { width: 44px; height: 44px; }
}
/* Celular: botón "Iniciar sesión" compacto junto al menú, como en la referencia */
@media (min-width: 360px) and (max-width: 639px) {
  .gs-header .hidden.sm\:block { display: block; }
  .gs-header .btn-md { min-width: 0; padding: 9px 14px; font-size: 13px; line-height: 1.2; }
}

/* Menú lateral en celular: opciones más grandes y botones de acción */
.gs-mobile-menu > li > a, .gs-mobile-menu .mobile-menu-toggle > span:first-child { font-size: 1.125rem; }
.gs-mobile-menu > li > a, .gs-mobile-menu .mobile-menu-toggle { min-height: 48px; display: flex; align-items: center; }
.gs-mobile-menu > li { border-bottom: 1px solid rgba(14, 61, 81, .08); }
.dark .gs-mobile-menu > li { border-color: rgba(255, 255, 255, .07); }
.gs-mobile-menu .mobile-submenu a { min-height: 44px; display: flex; align-items: center; }
.gs-mm-cta { display: grid; gap: .75rem; margin-top: 2rem; }
.gs-mm-btn { display: flex; min-height: 50px; align-items: center; justify-content: center; border-radius: 999px; font-size: 1rem; font-weight: 700; transition: background .2s ease, color .2s ease; }
.gs-mm-btn--primary { background: #ef3d31; color: #fff; }
.gs-mm-btn--primary:hover { background: #d62f24; color: #fff; }
.gs-mm-btn--ghost { border: 1.5px solid rgba(14, 61, 81, .25); color: #0e3d51; }
.dark .gs-mm-btn--ghost { border-color: rgba(255, 255, 255, .25); color: #fff; }
.gs-mm-btn--ghost:hover { background: #7fd0bd; border-color: #7fd0bd; color: #0e3d51; }

/* Footer: logo a tamaño fijo y enlaces en dos columnas en celular */
.gs-footer figure img[src*="logo-white"] { width: 170px; height: auto; }
@media (max-width: 767px) {
  .gs-footer figure img[src*="logo-white"] { width: 150px; }
  .gs-footer .main-container > .grid { row-gap: 2.5rem; padding-top: 3rem; padding-bottom: 2rem; }
  .gs-footer .main-container > .grid > .col-span-12.grid { row-gap: 2rem; }
  .gs-footer .main-container > .grid > .col-span-12.grid > div { grid-column: span 6 / span 6; }
  .gs-footer .main-container > .grid > .col-span-12.grid > div:last-child { grid-column: span 12 / span 12; }
  .gs-footer .space-y-8 { display: grid; gap: .6rem; }
  .gs-footer .space-y-8 > *, .gs-footer ul.space-y-3 > li { margin: 0 !important; }
  .gs-footer ul.space-y-3 { display: grid; gap: .1rem; }
  .gs-footer .footer-link { display: inline-flex; min-height: 36px; align-items: center; font-size: .95rem; }
  .gs-footer .relative.pt-\[26px\] { padding-top: 1.25rem; padding-bottom: calc(5rem + env(safe-area-inset-bottom)); }
  .gs-footer .relative.pt-\[26px\] p { font-size: .85rem; }
}

/* Botón de cambio de tema: más discreto en celular */
@media (max-width: 767px) {
  #theme-toggle { width: 40px; height: 40px; bottom: calc(16px + env(safe-area-inset-bottom)); border-radius: 12px 0 0 12px; }
  #theme-toggle svg { width: 20px; height: 20px; }
}

/* Saltos de línea que solo aplican desde tablet */
@media (max-width: 767px) { br.gs-br-md { display: none; } }

/* Títulos en celular: líneas equilibradas (sin una palabra sola al final) y sin cortes por palabras largas */
@media (max-width: 767px) { h1, h2, h3 { text-wrap: balance; overflow-wrap: break-word; } }

/* ═════════════════════════ Inicio ═════════════════════════ */
/* "Tecnología que se adapta": tarjeta con relleno adaptable (antes 85px fijos) */
.gs-ft-card { padding: 28px 20px; }
@media (min-width: 640px) { .gs-ft-card { padding: 48px 40px; } }
@media (min-width: 1024px) { .gs-ft-card { padding: 56px; } }
@media (min-width: 1280px) { .gs-ft-card { padding: 85px; } }
/* 1024–1279: la composición de 3 columnas no cabe; imagen arriba y beneficios en filas de 3 */
@media (min-width: 1024px) and (max-width: 1279px) {
  .gs-ft-wrap { flex-direction: column; gap: 2.5rem; }
  .gs-ft-col { flex-direction: row; gap: 2rem; margin: 0 !important; }
  .gs-ft-col > div { flex: 1 1 0; max-width: none !important; }
  .gs-ft-fig { order: -1; width: 100%; max-width: 760px; height: auto; margin: 0 auto !important; }
}
.gs-ft-intro { font-weight: 600; }
.gs-ft-title { line-height: 1.15; }
@media (min-width: 1280px) { .gs-ft-title { line-height: 60px; } }
.gs-ft-lead { font-size: 1.0625rem; line-height: 1.55; }
@media (min-width: 768px) { .gs-ft-lead { font-size: 20px; } }
/* Lista de beneficios: dos columnas en celular grande para no hacer la página tan larga */
@media (min-width: 480px) and (max-width: 767px) {
  .gs-ft-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 1.25rem; }
}
@media (max-width: 767px) {
  .gs-ft-wrap { gap: 2rem; }
  .gs-ft-col { margin-top: 0; padding: 0; }
  .gs-ft-col > div { max-width: none !important; }
  .gs-ft-fig { border-radius: 20px; }
}

/* Perfiles: las tarjetas flotantes no se salen de la pantalla en celular */
@media (max-width: 767px) {
  .gs-profile-stage { margin-left: 12px; margin-right: 12px; }
  .gs-profile--emp .gs-fc-0, .gs-profile--neg .gs-fc-1, .gs-profile--emp2 .gs-fc-1 { right: -10px; }
  .gs-profile--emp .gs-fc-1, .gs-profile--emp .gs-fc-2, .gs-profile--neg .gs-fc-0, .gs-profile--emp2 .gs-fc-0 { left: -10px; }
  .gs-profile--emp .gs-fc-3 { right: 0; }
  .gs-fc { max-width: 62%; }
}

/* Fondo de puntos del hero: sin salirse de la pantalla cuando no hay tarjetas flotantes */
@media (max-width: 1099px) { .gs-stage-dots { left: 0; width: 100%; transform: none; } }

/* Hero del inicio: el fondo se desvanece en vez de cortarse detrás del dashboard */
.gs-hero { background-image: linear-gradient(180deg, rgba(249, 250, 251, 0) 70%, #f9fafb 100%), url('/images/ns-img-295.jpg') !important; }
.dark .gs-hero { background-image: linear-gradient(180deg, rgba(11, 31, 41, 0) 70%, #0b1f29 100%), url('/images/ns-img-295.jpg') !important; }

/* ═════════════════════════ Farmacia ═════════════════════════ */
/* Pasos 01-02-03: mismo ancho en celular */
@media (max-width: 767px) {
  .gs-pharmacy-page .progress-container { gap: 1rem; align-items: stretch; }
  .gs-pharmacy-page .progress-container > div { width: 100%; max-width: none; }
}
/* Maquetas: textos legibles en modo oscuro */
html.dark .gs-pharma-expiry-row b, html.dark .gs-pharma-stock-row > strong { color: #eef7f7; }
html.dark .gs-pharma-expiry-row small, html.dark .gs-pharma-stock-row small, html.dark .gs-pharma-product-row small { color: #a9c0c6; }
html.dark .gs-pharma-expiry-summary small { color: #e2cfb8; }
@media (max-width: 479px) {
  .gs-pharmacy-page .gs-pharmacy-tools .col-span-12 { padding: 1.25rem !important; }
  .gs-pharmacy-page .gs-pharmacy-tools .gs-pharma-inventory-shell { padding: 8px; }
  .gs-pharma-preview { padding: 12px; }
  .gs-pharma-expiry-summary { flex-wrap: wrap; }
}

/* ═════════════════════════ Páginas legales ═════════════════════════ */
.terms-conditions-body { max-width: 860px; }
.terms-conditions-body p, .terms-conditions-body ul li { font-size: 15px; line-height: 1.7; }
@media (min-width: 640px) { .terms-conditions-body p, .terms-conditions-body ul li { font-size: 16px; } }
.terms-conditions-body ul li { position: relative; padding-left: 1.1rem; }
.terms-conditions-body ul li::before { position: absolute !important; top: .78em; left: 0; margin: 0 !important; }
@media (max-width: 767px) { .terms-conditions-body h3 { margin-top: 2.25rem; font-size: 1.35rem; line-height: 1.3; } }

/* ═════════════════════════ Áreas táctiles y textos mínimos en celular ═════════════════════════ */
.gs-header a[href="/"] { display: flex; min-height: 44px; align-items: center; }
@media (max-width: 767px) {
  .gs-header .btn-md { padding-top: 11px; padding-bottom: 11px; }
  [data-mobile-tab-button] { min-height: 44px; }
  .gs-contact-link { min-height: 44px; }
  .gs-footer .footer-link { min-height: 40px; }
  .gs-solutions-secondary-link { display: inline-flex; min-height: 44px; align-items: center; }
  .gs-ct-block a { min-height: 40px; display: flex; align-items: center; }
  .gs-ct-check { min-height: 44px; }
  .gs-ct-check input { width: 20px; height: 20px; flex: none; }
}
/* Soluciones: listas de cada módulo con texto más legible */
.gs-solution-copy li { font-size: .875rem; }
.gs-solution-meta > span:first-child { font-size: .75rem; }

/* Botón de menú sobre el hero oscuro (inicio): visible también en modo claro */
.gs-header[data-surface="dark"]:not(.header-four-scroll) .nav-hamburger { background: rgba(255, 255, 255, .14); }

/* Íconos de incluido / no incluido dibujados con CSS (evita cientos de SVG repetidos en precios) */
.gs-pp-mark::before, .gs-compare-yes::before { width: .75rem; height: .75rem; background: currentColor; content: ''; -webkit-mask: var(--gs-mark-icon) center / contain no-repeat; mask: var(--gs-mark-icon) center / contain no-repeat; }
.gs-pp-module .is-included .gs-pp-mark, .gs-compare-yes { --gs-mark-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.gs-pp-module .is-excluded .gs-pp-mark { --gs-mark-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M7 12h10'/%3E%3C/svg%3E"); }
.gs-compare-yes::before { width: .85rem; height: .85rem; }

/* El botón de tema no se monta sobre el formulario emergente ni sobre el menú móvil */
body:has(.gs-modal.open) #theme-toggle, body:has(.sidebar.show-sidebar) #theme-toggle { display: none; }
