/*
 * Cumbrix en el teléfono: encabezado más bajo y las tarjetas en dos columnas, pequeñas y elegantes.
 * Se carga después de todos los demás estilos y solo cambia pantallas de menos de 600 px.
 */
@media (max-width: 599px) {
    /* Encabezado pequeño */
    .nav .wrap { height: 52px; gap: 10px; }
    .brand { gap: 8px; font-size: 17px; }
    .brand img { width: 28px; height: 28px; border-radius: 8px; }
    .nav-act { gap: 8px; }
    .nav .btn { padding: 7px 13px; font-size: 13px; }
    .nav-login { padding: 7px; }
    .nav-cart { width: 36px; height: 36px; }
    .nav-cart svg { width: 17px; height: 17px; }

    /* Secciones más compactas */
    .block { padding: 52px 0; }
    .kicker { font-size: 11px; }
    .h2 { font-size: 26px; line-height: 1.12; }
    .sub { margin-top: 10px; font-size: 15px; }

    /* Qué hacemos: 2 columnas */
    .cards { margin-top: 26px; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cards > :last-child:nth-child(odd) { grid-column: 1 / -1; }
    .card { padding: 15px 14px; border-radius: 18px; }
    .card .icon { width: 34px; height: 34px; border-radius: 10px; }
    .card .icon svg { width: 18px; height: 18px; }
    .card h3 { margin-top: 12px; font-size: 14.5px; line-height: 1.25; }
    .card p { margin-top: 5px; font-size: 12.5px; line-height: 1.45; }

    /* Productos: 2 columnas */
    .pgrid { margin-top: 24px; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pcard { padding: 14px 13px; border-radius: 18px; }
    .pcard-head { flex-direction: column; align-items: flex-start; gap: 8px; }
    .pcard-head img, .pcard-plus { width: 40px; height: 40px; border-radius: 11px; }
    .pcard h3 { font-size: 14.5px; margin-bottom: 4px; }
    .pcard .tag { font-size: 10.5px; padding: 2px 8px; }
    .pcard-text { margin-top: 9px; font-size: 12.5px; line-height: 1.45; }
    .pcard-features { margin-top: 9px; gap: 5px; }
    .pcard-features li { font-size: 11.5px; gap: 5px; }
    .pcard-features li:nth-child(n+3) { display: none; }
    .pcard-actions { flex-direction: column; align-items: stretch; gap: 6px; padding-top: 12px; }
    .pcard-actions .btn { justify-content: center; padding: 8px 10px; font-size: 12.5px; }
    .pcard-more { text-align: center; font-size: 12.5px; }
    .pcard-featured { grid-column: 1 / -1; padding: 20px 18px; border-radius: 22px; min-height: 0; }
    .pcard-featured .pcard-head { flex-direction: row; align-items: center; }
    .pcard-featured .pcard-actions { flex-direction: row; align-items: center; }

    /* Promociones: 2 columnas */
    .promos .promo-grid { margin-top: 24px; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .promos .promo-grid.one { grid-template-columns: minmax(0, 1fr); }
    .promo { gap: 7px; padding: 14px 12px 13px; border-radius: 20px; }
    .promo:hover { transform: none; }
    .promo-glow { width: 150px; height: 150px; right: -60px; top: -60px; }
    .promo-top { gap: 5px; }
    .promo-system { font-size: 9.5px; padding: 3px 8px; letter-spacing: .06em; }
    .promo-badge { font-size: 10.5px; }
    .promo-percent { margin-top: 2px; }
    .promo-percent span { font-size: 40px; }
    .promo-percent small { font-size: 18px; }
    .promo-title { font-size: 13.5px; line-height: 1.25; }
    .promo-text { font-size: 11.5px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
    .promo-code { align-self: stretch; justify-content: space-between; gap: 4px; padding: 6px 5px 6px 8px; border-radius: 11px; max-width: 100%; }
    .promo-code-label { display: none; }
    .promo-code strong { font-size: 10px; letter-spacing: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .promo-code-copy { flex: none; font-size: 9.5px; padding: 3px 6px; }
    .promo-ends { font-size: 10.5px; }
    .promo-foot { gap: 8px; }
    .promo-btn { padding: 8px 11px; font-size: 11.5px; gap: 5px; }

    /* Marketing (Studio y equipo): 2 columnas */
    .svb { padding: 48px 0 16px; }
    .svb-head h2 { font-size: 27px; }
    .svb-head p { font-size: 14.5px; }
    .svb-grid { margin-top: 22px; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .svb-grid.svb-one { grid-template-columns: minmax(0, 1fr); }
    .svb-card { gap: 8px; padding: 15px 13px; border-radius: 20px; }
    .svb-card:hover { transform: none; }
    .svb-tag { font-size: 9.5px; padding: 4px 8px; }
    .svb-card h3 { font-size: 18px; }
    .svb-card p { font-size: 11.5px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
    .svb-list { gap: 5px; }
    .svb-list li { flex-direction: column; gap: 1px; padding: 7px 9px; border-radius: 10px; font-size: 11px; }
    .svb-list li:nth-child(n+3) { display: none; }
    .svb-foot { flex-direction: column; align-items: stretch; gap: 8px; padding-top: 10px; font-size: 11px; }
    .svb-foot em { text-align: center; padding: 8px 10px; font-size: 12px; }

    /* Productos nuevos: tarjeta más compacta */
    .newp-card { margin-top: 22px; gap: 16px; padding: 22px 16px 0; border-radius: 24px; }
    .newp-head img { width: 46px; height: 46px; border-radius: 12px; }
    .newp-head h3 { font-size: 22px; }
    .newp-tagline { margin-top: 12px; font-size: 16.5px; }
    .newp-desc { font-size: 13.5px; }
    .newp-features { margin-top: 12px; gap: 6px; }
    .newp-features li { font-size: 13px; padding-left: 24px; }
    .newp-actions { margin-top: 16px; gap: 12px; }
    .newp-phones { --pw: 128px; }

    /* Cifras, testimonios y noticias */
    .numbers { padding: 40px 0 30px; }
    .numbers .wrap { gap: 10px; }
    .num { padding: 18px 10px 16px; border-radius: 18px; }
    .num b { font-size: 24px; }
    .num span { font-size: 12px; }
    /* Noticias: tarjetas pequeñas, título corto y resumen de 2 líneas */
    .post-card { border-radius: 18px; }
    .post-body { padding: 11px 12px 13px; }
    .post-body time { font-size: 10.5px; }
    .post-body h3 { margin-top: 4px; font-size: 13.5px; line-height: 1.28; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
    .post-body p { margin-top: 5px; font-size: 11.5px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .post-body .more { margin-top: 8px; font-size: 12px; }
    .post-cover-empty img, .post-cover-empty svg { max-width: 38px; max-height: 38px; }
    .testimonials, .posts { gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .testimonial { padding: 15px 13px; border-radius: 18px; }
    .testimonial blockquote { margin-top: 8px; font-size: 12.5px; line-height: 1.5; }
    .testimonial .t-avatar { width: 32px; height: 32px; }
    .testimonial strong { font-size: 13px; }
    .testimonial small { font-size: 11.5px; }
}

/*
 * Computadora y laptop: promociones y marketing más compactos.
 */
@media (min-width: 760px) {
    .promos .promo-grid { margin-top: 28px; gap: 14px; }
    .promo { gap: 8px; padding: 18px 16px 16px; border-radius: 22px; }
    .promo-glow { width: 200px; height: 200px; right: -70px; top: -80px; }
    .promo-system { font-size: 10.5px; padding: 4px 9px; }
    .promo-badge { font-size: 11.5px; }
    .promo-percent { margin-top: 2px; }
    .promo-percent span { font-size: 50px; }
    .promo-percent small { font-size: 22px; }
    .promo-title { font-size: 16px; line-height: 1.25; }
    .promo-text { font-size: 12.5px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
    .promo-code { gap: 7px; padding: 6px 7px 6px 10px; border-radius: 11px; }
    .promo-code-label { font-size: 9.5px; }
    .promo-code strong { font-size: 12px; }
    .promo-code-copy { font-size: 10.5px; padding: 3px 8px; }
    .promo-ends { font-size: 11px; }
    .promo-btn { padding: 8px 13px; font-size: 12.5px; }

    .svb { padding: 56px 0 20px; }
    .svb-head h2 { font-size: clamp(30px, 3.4vw, 40px); }
    .svb-head p { font-size: 15.5px; }
    .svb-grid { margin-top: 26px; gap: 14px; }
    .svb-card { gap: 9px; padding: 22px 22px 20px; border-radius: 24px; }
    .svb-tag { font-size: 11px; padding: 5px 10px; }
    .svb-card h3 { font-size: 25px; }
    .svb-card p { font-size: 13.5px; line-height: 1.5; }
    .svb-list { gap: 6px; }
    .svb-list li { padding: 8px 12px; border-radius: 11px; font-size: 13px; }
    .svb-foot { padding-top: 11px; font-size: 12.5px; }
    .svb-foot em { padding: 7px 14px; font-size: 13px; }
}
@media (min-width: 1040px) {
    .promos .promo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .promos .promo-grid:has(> .promo:nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .promos .promo-grid:has(> .promo:nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 360px)); justify-content: center; }
}
