/* ============================================================================
   SOLAR Y PUNTO · Componentes de las páginas de PACKS (bloque nuevo)
   ----------------------------------------------------------------------------
   Se carga SOLO en las páginas nuevas (/css/packs.css), así no se toca nada de
   lo que ya funciona en el resto de la web.
   Todo está construido con los tokens de marca del sitio (estilos.css):
   --sy-deep #216F2C, --sy-green, --sy-sun, --sy-ink, --sy-bg, --sy-mint,
   --sy-muted, --sy-line, --f-display Archivo, --f-texto Inter,
   --r-boton 12px, --r-tarjeta 18px, --r-tarjeta-g 22px, --sombra-pack.
   ========================================================================= */

/* --- Accesibilidad: texto solo para lectores de pantalla ------------------- */
.syp-sr {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* --- Migas de pan ---------------------------------------------------------- */
.syp-breadcrumbs {
  font-family: var(--f-texto, 'Inter', sans-serif);
  font-size: 14px;
  color: var(--sy-muted);
  padding: 18px 0 0;
}
.syp-breadcrumbs a { color: var(--sy-muted); text-decoration: none; }
.syp-breadcrumbs a:hover { color: var(--sy-deep); text-decoration: underline; }
.syp-breadcrumbs span { color: var(--sy-ink); font-weight: 600; }

/* --- Hero de las páginas de packs ----------------------------------------- */
.syp-hero {
  background: var(--sy-bg, #F6F7F3);
  border-bottom: 1px solid var(--sy-line, #DDE5DD);
  padding: 40px 0 42px;
}
.syp-hero h1 {
  font-family: var(--f-display, 'Archivo', sans-serif);
  font-size: clamp(30px, 1.9vw + 24px, 50px);
  line-height: 1.1;
  color: var(--sy-ink, #132427);
  margin: 0 0 16px;
  max-width: 26ch;
}
.syp-lead {
  font-family: var(--f-texto, 'Inter', sans-serif);
  font-size: clamp(17px, .5vw + 15px, 20px);
  line-height: 1.55;
  color: var(--sy-muted, #5A6A63);
  max-width: 68ch;
  margin: 0 0 22px;
}
.syp-price {
  font-family: var(--f-texto, 'Inter', sans-serif);
  font-size: 17px;
  color: var(--sy-ink);
  margin: 0 0 18px;
}
.syp-price strong {
  font-family: var(--f-display, 'Archivo', sans-serif);
  font-size: clamp(24px, 1vw + 20px, 32px);
  color: var(--sy-deep, #216F2C);
}
.syp-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 22px;
}
.syp-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: var(--f-texto, 'Inter', sans-serif);
  font-size: 14.5px;
  color: var(--sy-muted);
}
.syp-trust li { position: relative; padding-left: 20px; }
.syp-trust li::before {
  content: "✓";
  position: absolute; left: 0;
  color: var(--sy-deep, #216F2C);
  font-weight: 700;
}

/* --- Botones (mismos colores y medidas que los .btn del sitio) ------------ */
.syp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 26px;
  border-radius: var(--r-boton, 12px);
  font-family: var(--f-texto, 'Inter', sans-serif);
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
  border: 1px solid var(--sy-line, #DDE5DD);
  background: #fff;
  color: var(--sy-ink, #132427);
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.syp-btn:hover { border-color: #C4CFC6; }
.syp-btn--primary {
  background: var(--sy-deep, #216F2C);
  border-color: var(--sy-deep, #216F2C);
  color: #fff;
}
.syp-btn--primary:hover { background: var(--sy-deep-hover, #1A5A23); }
.syp-btn--whatsapp {
  background: #25D366;
  border-color: #25D366;
  color: #08331B;
}
.syp-btn--whatsapp:hover { background: #1FBE5B; border-color: #1FBE5B; }
.syp-btn--tel {
  background: #fff;
  border-color: var(--sy-deep, #216F2C);
  color: var(--sy-deep, #216F2C);
}
.syp-btn--tel:hover { background: var(--sy-mint, #E8F2E9); }

/* --- Secciones ------------------------------------------------------------ */
.syp-section {
  padding: 40px 0;
  border-bottom: 1px solid var(--sy-line, #DDE5DD);
}
.syp-section:last-of-type { border-bottom: 0; }
.syp-section h2 {
  font-family: var(--f-display, 'Archivo', sans-serif);
  font-size: clamp(24px, 1.5vw + 18px, 36px);
  line-height: 1.15;
  color: var(--sy-ink, #132427);
  margin: 0 0 18px;
  max-width: 30ch;
}
.syp-section h3 {
  font-family: var(--f-display, 'Archivo', sans-serif);
  font-size: 20px;
  color: var(--sy-ink, #132427);
  margin: 0 0 8px;
}
.syp-section p,
.syp-section li {
  font-family: var(--f-texto, 'Inter', sans-serif);
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--sy-ink, #132427);
}
.syp-section ul { padding-left: 22px; }
.syp-section ul li { margin-bottom: 8px; }
.syp-small {
  font-size: 14px !important;
  color: var(--sy-muted) !important;
  line-height: 1.55 !important;
}
.syp-notes { font-size: 14px; color: var(--sy-muted); padding-left: 22px; }
.syp-notes li { font-size: 14px; color: var(--sy-muted); margin-bottom: 6px; }
.syp-links { padding: 0 0 26px; font-size: 16px; }
.syp-links a { color: var(--sy-deep, #216F2C); }

/* --- Tarjetas de pack (4, una por pack; en móvil se apilan) --------------- */
.syp-cards,
.syp-pack-cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  margin: 22px 0 0;
}
.syp-card,
.syp-pack-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--sy-line, #DDE5DD);
  border-radius: var(--r-tarjeta-g, 22px);
  padding: 24px 22px;
  box-shadow: var(--sombra-pack, 0 18px 46px rgba(22,36,28,.07));
  text-decoration: none;
  color: inherit;
}
.syp-card h3,
.syp-pack-card h3 {
  font-family: var(--f-display, 'Archivo', sans-serif);
  font-size: 22px;
  margin: 0 0 6px;
  color: var(--sy-ink, #132427);
}
.syp-card p,
.syp-pack-card p {
  margin: 0 0 10px;
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--sy-muted);
}
.syp-card-price {
  margin-top: auto !important;
  font-size: 17px !important;
  color: var(--sy-ink, #132427) !important;
}
.syp-card-price strong {
  font-family: var(--f-display, 'Archivo', sans-serif);
  font-size: 25px;
  color: var(--sy-deep, #216F2C);
}
.syp-card--recomendado,
.syp-pack-card--recomendado {
  border-color: var(--sy-deep, #216F2C);
  border-width: 2px;
  background: var(--sy-mint, #E8F2E9);
}
.syp-badge {
  display: inline-block;
  align-self: flex-start;
  background: var(--sy-deep, #216F2C);
  color: #fff;
  font-family: var(--f-texto, 'Inter', sans-serif);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 10px;
}

/* --- Tabla comparativa: en móvil se desplaza (primera columna fija) ------- */
.syp-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 20px 0 6px;
  border: 1px solid var(--sy-line, #DDE5DD);
  border-radius: var(--r-tarjeta, 18px);
  background: #fff;
}
.syp-table-wrap::-webkit-scrollbar { height: 8px; }
.syp-table-wrap::-webkit-scrollbar-thumb { background: var(--sy-line); border-radius: 8px; }
.syp-pack-table,
.syp-table {
  width: 100%;
  min-width: 720px;
  border-collapse: separate;
  border-spacing: 0;
  font-family: var(--f-texto, 'Inter', sans-serif);
}
.syp-pack-table th,
.syp-pack-table td,
.syp-table th,
.syp-table td {
  padding: 13px 14px;
  text-align: left;
  font-size: 14.5px;
  color: var(--sy-ink, #132427);
  border-top: 1px solid var(--sy-line, #DDE5DD);
  vertical-align: middle;
}
.syp-pack-table thead th,
.syp-table thead th {
  border-top: 0;
  font-size: 12.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--sy-muted);
  background: #fff;
}
.syp-pack-table tbody th[scope="row"],
.syp-table tbody th[scope="row"],
.syp-pack-table tbody td:first-child {
  font-weight: 600;
  text-align: left;
  background: #fff;
}
.syp-pack-table td:first-child,
.syp-table td:first-child { position: sticky; left: 0; background: #fff; }
.syp-pack--recomendado { background: var(--sy-mint, #E8F2E9) !important; }
.syp-pack-table thead th.syp-pack--recomendado { color: var(--sy-deep); }
.syp-row-precio td strong {
  font-family: var(--f-display, 'Archivo', sans-serif);
  font-size: 20px;
  color: var(--sy-deep, #216F2C);
}
.syp-pack-table .syp-btn { padding: 11px 16px; font-size: 14px; }

/* --- Pasos numerados ------------------------------------------------------ */
.syp-steps { padding-left: 22px; }
.syp-steps li { margin-bottom: 10px; font-size: 16.5px; line-height: 1.6; }

/* --- Preguntas frecuentes (acordeón nativo) ------------------------------- */
.syp-faq {
  border: 1px solid var(--sy-line, #DDE5DD);
  border-radius: var(--r-tarjeta, 18px);
  background: #fff;
  overflow: hidden;
}
.syp-faq details { border-bottom: 1px solid var(--sy-line, #DDE5DD); }
.syp-faq details:last-child { border-bottom: 0; }
.syp-faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  padding: 18px 20px;
  font-family: var(--f-texto, 'Inter', sans-serif);
  font-weight: 700;
  font-size: 16.5px;
  color: var(--sy-ink, #132427);
  list-style: none;
}
.syp-faq summary::-webkit-details-marker { display: none; }
.syp-faq summary::after {
  content: "+";
  flex: none;
  color: var(--sy-deep, #216F2C);
  font-size: 22px;
  line-height: 1;
}
.syp-faq details[open] summary::after { content: "–"; }
.syp-faq details p {
  margin: 0;
  padding: 0 20px 18px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--sy-muted);
}

/* --- Supuestos (cómo calculamos las cifras) -------------------------------- */
.syp-supuestos {
  border: 1px solid var(--sy-line, #DDE5DD);
  border-radius: var(--r-tarjeta, 18px);
  background: #fff;
  padding: 0;
  margin: 26px 0 40px;
}
.syp-supuestos summary {
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 700;
  font-size: 15px;
  color: var(--sy-ink, #132427);
}
.syp-supuestos p {
  margin: 0;
  padding: 0 20px 18px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--sy-muted);
}

/* --- Formulario en 2 pasos ------------------------------------------------ */
.syp-form-slot { background: var(--sy-mint, #E8F2E9); }
.syp-form {
  display: block;
  max-width: 640px;
  margin-top: 20px;
}
.syp-step {
  border: 1px solid var(--sy-line, #DDE5DD);
  border-radius: var(--r-tarjeta, 18px);
  background: #fff;
  padding: 22px 20px;
  margin: 0 0 16px;
}
.syp-step legend {
  font-family: var(--f-display, 'Archivo', sans-serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--sy-deep, #216F2C);
  padding: 0 6px;
}
.syp-q {
  font-weight: 700;
  font-size: 15.5px;
  color: var(--sy-ink, #132427);
  margin: 16px 0 8px;
}
.syp-q:first-of-type { margin-top: 4px; }
.syp-form label { font-family: var(--f-texto, 'Inter', sans-serif); font-size: 15.5px; }
.syp-form label:not(.syp-field):not(.syp-check) {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--sy-line, #DDE5DD);
  border-radius: 999px;
  padding: 10px 15px;
  margin: 0 7px 8px 0;
  cursor: pointer;
  background: #fff;
}
.syp-form input[type="radio"] { accent-color: var(--sy-deep, #216F2C); }
.syp-form label:has(input:checked) {
  border-color: var(--sy-deep, #216F2C);
  background: var(--sy-mint, #E8F2E9);
  font-weight: 600;
}
.syp-field {
  display: block;
  margin: 12px 0;
  font-weight: 600;
  color: var(--sy-ink, #132427);
}
.syp-field input {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 13px 14px;
  font-family: var(--f-texto, 'Inter', sans-serif);
  font-size: 16px;
  border: 1px solid var(--sy-line, #DDE5DD);
  border-radius: var(--r-boton, 12px);
  background: #fff;
  color: var(--sy-ink, #132427);
}
.syp-field input:focus { outline: 2px solid var(--sy-deep, #216F2C); outline-offset: 1px; }
.syp-check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 16px 0;
  font-size: 14.5px;
  color: var(--sy-muted);
  line-height: 1.5;
}
.syp-check input { margin-top: 3px; accent-color: var(--sy-deep, #216F2C); }
.syp-form .syp-btn { width: 100%; margin-top: 6px; }
.syp-ok {
  border: 2px solid var(--sy-deep, #216F2C);
  border-radius: var(--r-tarjeta, 18px);
  background: #fff;
  padding: 26px 22px;
  margin-top: 20px;
}
.syp-ok h3 { color: var(--sy-deep, #216F2C); }

/* --- Bloque de portada ---------------------------------------------------- */
.syp-home-packs { padding: 40px 0; }

/* --- Escritorio ----------------------------------------------------------- */
@media (min-width: 700px) {
  .syp-hero { padding: 54px 0 50px; }
  .syp-section { padding: 56px 0; }
  .syp-cards,
  .syp-pack-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
  .syp-form .syp-btn { width: auto; }
}
@media (min-width: 1024px) {
  .syp-cards,
  .syp-pack-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .syp-section { padding: 66px 0; }
  .syp-form label:not(.syp-field):not(.syp-check) { margin-bottom: 6px; }
}

/* --- Móvil: la tabla avisa de que se puede deslizar ----------------------- */
@media (max-width: 699px) {
  .syp-table-wrap::after {
    content: "Desliza para ver los 4 packs →";
    display: block;
    padding: 8px 14px 12px;
    font-size: 13px;
    color: var(--sy-muted);
    font-family: var(--f-texto, 'Inter', sans-serif);
  }
  .syp-pack-table td:first-child,
  .syp-table td:first-child { min-width: 150px; }
}
/* ---------- 07-11-2026 · aire entre bloques (páginas de packs) ---------- */
.syp-section { padding: 40px 0; }
.syp-section h2 { margin: 0 0 14px; }
.syp-section p + p,
.syp-section p + ul,
.syp-section p + ol,
.syp-section ul + p,
.syp-section ol + p,
.syp-section ul + ul { margin-top: 12px; }
@media (max-width: 767px) {
  .syp-section { padding: 26px 0; }
  .syp-section h2 { margin: 0 0 12px; }
  .syp-section p + p,
  .syp-section p + ul,
  .syp-section p + ol,
  .syp-section ul + p,
  .syp-section ol + p,
  .syp-section ul + ul { margin-top: 10px; }
}
