/* Planes al estilo de una página de precios SaaS: interruptor Mensual/Anual, tarjetas y tabla */

.pre__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.pre__head h2 { font-size: clamp(2.2rem, 1.4rem + 3vw, 3.6rem); line-height: 1; font-weight: 800; }

/* Interruptor */
.per { display: inline-flex; align-items: center; gap: 4px; padding: 5px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--linea-osc); flex: none; }
.per button { border: 0; cursor: pointer; padding: 10px 18px; border-radius: 999px; background: transparent; color: rgba(255, 255, 255, 0.65); font: 700 0.95rem var(--f-display); transition: background 0.25s, color 0.25s; }
.per button[aria-pressed="true"] { background: var(--blanco); color: var(--tinta); }
.per__ahorro { padding: 0 12px 0 8px; font: 700 0.85rem var(--f-display); color: #7ee2a8; white-space: nowrap; }

/* Qué se ve en cada periodo (sin JS queda el anual) */
.solo-mensual { display: none !important; }
[data-periodo="mensual"] .solo-mensual { display: flex !important; }
[data-periodo="mensual"] .solo-anual { display: none !important; }

/* Tarjetas */
.pre { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.pre__plan { position: relative; display: flex; flex-direction: column; border-radius: 26px; background: #121730; border: 1px solid var(--linea-osc); overflow: hidden; }
.pre__top { display: flex; flex-direction: column; gap: 14px; padding: 28px 26px 26px; border-bottom: 1px solid var(--linea-osc); }
.pre__plan h3 { font-size: 2.1rem; font-weight: 800; letter-spacing: -0.03em; }
.pre__para { color: rgba(255, 255, 255, 0.6); margin-top: -8px; }
.pre__precio { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 4px 10px; min-height: 64px; }
.pre__precio b { font: 800 clamp(2.6rem, 2.1rem + 1.4vw, 3.3rem)/1 var(--f-display); letter-spacing: -0.04em; }
.pre__precio s { align-self: center; font: 600 1.3rem var(--f-display); color: rgba(255, 255, 255, 0.4); }
.pre__precio span { color: rgba(255, 255, 255, 0.6); font-size: 0.88rem; line-height: 1.3; padding-bottom: 4px; }
.pre__precio--solo b { font-size: 2.2rem; }

.pre__btn {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; min-height: 52px; padding: 8px 18px;
  border-radius: 14px; border: 0; cursor: pointer; text-decoration: none; text-align: center;
  background: rgba(255, 255, 255, 0.92); color: var(--tinta); font: 700 1rem var(--f-display);
  transition: transform 0.3s var(--ease), background 0.2s;
}
.pre__btn:hover { transform: translateY(-2px); background: var(--blanco); }
.pre__btn em { font-style: normal; padding: 4px 10px; border-radius: 999px; background: var(--grad); color: var(--blanco); font-size: 0.78rem; }

/* Pro: la tarjeta que brilla */
.pre__plan--pro { border-color: rgba(255, 138, 76, 0.7); background: linear-gradient(180deg, rgba(239, 82, 15, 0.28) 0%, #161a36 45%); box-shadow: 0 0 0 1px rgba(255, 138, 76, 0.25), 0 40px 90px -40px rgba(239, 82, 15, 0.9); }
.pre__plan--pro .pre__btn { background: var(--grad); color: var(--blanco); box-shadow: 0 14px 34px -12px rgba(239, 82, 15, 0.8); }
.pre__sello { position: absolute; top: 22px; right: 22px; padding: 6px 12px; border-radius: 999px; background: var(--grad); font: 700 0.78rem/1 var(--f-display); }

/* Pro IA: el plan con el bot */
.pre__plan--ia { border-color: rgba(129, 140, 248, 0.6); background: linear-gradient(180deg, rgba(99, 102, 241, 0.26) 0%, #141836 45%); }
.pre__plan--ia .pre__btn { background: linear-gradient(135deg, #818cf8, #6366f1); color: var(--blanco); }
.pre__sello--ia { background: linear-gradient(135deg, #818cf8, #6366f1); }
.pre__plan--ia .pre__lista > li::before { background: rgba(129, 140, 248, 0.22); color: #c7d2fe; }
.pre__plan--ia .pre__grupo--todo { color: #c7d2fe; }

/* Adicionales: fila completa bajo los tres planes */
.pre__plan--extra { grid-column: 1 / -1; }
.pre__plan--extra .pre__top { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
.pre__plan--extra h3, .pre__plan--extra .pre__para { grid-column: 1 / -1; }
.pre__plan--extra .pre__top > .pre__btn { grid-column: 1 / -1; justify-self: start; padding-inline: 28px; }
/* Adicionales */
.pre__plan--extra { background: radial-gradient(120% 80% at 100% 0%, rgba(126, 226, 168, 0.12), transparent 60%), #121730; }
.pre__plan--extra .pre__top { border-bottom: 0; flex: 1; }
.pre__plan--extra .pre__btn { margin-top: auto; background: var(--verde-wa); color: #06351b; }
.pre__add { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--linea-osc); }
.pre__add:not(:has(img)) { grid-template-columns: 1fr auto; }
.pre__add img { width: 48px; height: 48px; }
.pre__add b { display: block; font: 800 1.02rem var(--f-display); }
.pre__add span { font-size: 0.84rem; color: rgba(255, 255, 255, 0.65); }
.pre__add p { font: 800 1.3rem/1 var(--f-display); white-space: nowrap; }
.pre__add .pre__incl { font: 700 0.85rem var(--f-display); color: #7ee2a8; padding: 5px 10px; border-radius: 999px; background: rgba(126, 226, 168, 0.12); }
.pre__add small { font: 500 0.78rem var(--f-texto); color: rgba(255, 255, 255, 0.55); }

/* Lista con ramas */
.pre__lista { list-style: none; margin: 0; padding: 22px 26px 28px; display: grid; gap: 10px; font-size: 0.93rem; color: rgba(255, 255, 255, 0.82); }
.pre__lista > li { position: relative; padding-left: 28px; }
.pre__lista > li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: rgba(239, 82, 15, 0.22); color: var(--naranja-claro); font: 800 0.65rem/1 var(--f-display); }
.pre__grupo { font-weight: 600; color: var(--blanco); }
.pre__grupo--todo { color: var(--naranja-claro); }
.pre__grupo--todo::before { content: "+" !important; }
.pre__grupo ul { list-style: none; margin: 8px 0 2px; padding: 0 0 0 4px; display: grid; gap: 6px; border-left: 1px solid rgba(255, 255, 255, 0.15); }
.pre__grupo ul li { position: relative; padding-left: 16px; font-weight: 400; color: rgba(255, 255, 255, 0.65); }
.pre__grupo ul li::before { content: ""; position: absolute; left: -1px; top: 0.75em; width: 10px; border-top: 1px solid rgba(255, 255, 255, 0.15); }

/* Tabla de especificaciones */
.comp { margin-top: 56px; }
.comp__h { font-size: 1.6rem; font-weight: 800; margin-bottom: 18px; }
.comp__tabla { overflow-x: auto; border-radius: 20px; border: 1px solid var(--linea-osc); }
.comp table { width: 100%; border-collapse: collapse; min-width: 600px; font-size: 0.93rem; }
.comp th, .comp td { padding: 13px 18px; text-align: left; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.comp td { text-align: center; width: 17%; color: rgba(255, 255, 255, 0.85); font-weight: 600; }
.comp tbody th { font-weight: 400; color: rgba(255, 255, 255, 0.75); }
.comp thead th { background: #161a36; font: 800 1rem var(--f-display); }
.comp thead th:not(:first-child) { text-align: center; }
.comp thead th:nth-child(3), .comp td:nth-child(3) { background: rgba(239, 82, 15, 0.08); }
.comp__grupo th { padding-top: 22px; font: 700 0.78rem var(--f-display) !important; letter-spacing: 0.12em; text-transform: uppercase; color: var(--naranja-claro) !important; background: rgba(255, 255, 255, 0.02); }

/* Varios locales */
.locales { margin-top: 40px; display: grid; grid-template-columns: minmax(0, 0.6fr) minmax(0, 1.4fr); gap: 28px; align-items: center; padding: 28px; border-radius: 26px; background: #121730; border: 1px solid var(--linea-osc); }
.locales h3 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); line-height: 1.1; font-weight: 800; }
.locales__copy { display: grid; gap: 14px; justify-items: start; }
.locales__copy p:not(.eyebrow) { color: rgba(255, 255, 255, 0.7); }
.locales__copy .eyebrow { margin-bottom: 0; }
.locales__tabla table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 0.92rem; }
.locales__tabla th, .locales__tabla td { padding: 12px 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); text-align: center; }
.locales__tabla tbody th { text-align: left; font-weight: 600; color: var(--blanco); }
.locales__tabla td { color: rgba(255, 255, 255, 0.85); font-weight: 600; white-space: nowrap; }
.locales__tabla thead th { background: #161a36; font: 800 0.95rem var(--f-display); }
.locales__tabla thead th:first-child { text-align: left; }
.locales__tabla tbody tr:last-child th, .locales__tabla tbody tr:last-child td { border-bottom: 0; }
.locales__tabla thead th small { display: block; font: 500 0.75rem var(--f-texto); color: rgba(255, 255, 255, 0.55); }
.locales__tabla tbody tr:last-child td { color: var(--naranja-claro); }

.chip-pro { margin-left: 8px; padding: 4px 9px; border-radius: 999px; background: var(--grad); color: var(--blanco); letter-spacing: 0.06em; font-size: 0.7rem; vertical-align: 1px; }

@media (max-width: 980px) {
  .pre { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .pre__plan--pro { order: -1; }
  .pre__head { flex-direction: column; align-items: flex-start; }
  .locales { grid-template-columns: 1fr; padding: 22px; }
  .pre__plan--extra .pre__top { display: flex; }
}
@media (max-width: 560px) {
  .per { width: 100%; flex-wrap: wrap; justify-content: center; border-radius: 22px; }
  .per__ahorro { width: 100%; text-align: center; padding: 6px 0 2px; }
  .comp th, .comp td { padding: 11px 12px; }
}
