/**
 * Product Blocks - Marco visual compartido
 * ------------------------------------------------------------
 * Marco base para los bloques de producto en /products/*.php.
 * Cada archivo de producto aporta su propio CSS scoped dentro
 * del mismo archivo; aquí viven solo los patrones comunes:
 * variables de marca, grids, full-bleed, botones y animaciones.
 *
 * Variables (DESIGN-SPEC):
 *  teal #55c3c3 · blue #22496b · yellow #FCBD30 ·
 *  orange #f89c1c · dark #171f2a · light #f8f9fa
 */

.mexipol-pb {
    --mpb-teal: #55c3c3;
    --mpb-blue: #22496b;
    --mpb-yellow: #FCBD30;
    --mpb-orange: #f89c1c;
    --mpb-dark: #171f2a;
    --mpb-light: #f8f9fa;
    --mpb-white: #ffffff;

    box-sizing: border-box;
}

.mexipol-pb *,
.mexipol-pb *::before,
.mexipol-pb *::after {
    box-sizing: inherit;
}

.mexipol-pb img {
    max-width: 100%;
    height: auto;
}

/* ---------- Full-bleed: rompe el contenedor del tema ---------- */
.mexipol-pb-bleed {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    position: relative;
}

/* ---------- Grids ---------- */
.mpb-grid {
    display: grid;
}

.mpb-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.mpb-cols-4 {
    grid-template-columns: 1fr 1fr 2fr;
    gap: 30px;
}

@media (max-width: 767px) {
    .mpb-cols-2,
    .mpb-cols-4 {
        grid-template-columns: 1fr;
    }

    .mpb-cols-4 {
        gap: 30px 0;
    }
}

/* ---------- Botones ---------- */
.mpb-btn {
    display: inline-block;
    padding: 8px 22px;
    font-size: 14px;
    line-height: 1.5;
    text-decoration: none !important;
    border: 2px solid var(--mpb-white, #ffffff);
    background: transparent;
    color: var(--mpb-white, #ffffff) !important;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.mpb-btn:hover,
.mpb-btn:focus {
    background-color: var(--mpb-white, #ffffff);
    border-color: var(--mpb-white, #ffffff);
    color: #666666 !important;
}

/* ---------- Animaciones (reemplazo de VC animate) ---------- */
@keyframes mpb-fade-up-anim {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes mpb-fade-in-anim {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes mpb-fade-left-anim {
    from { opacity: 0; transform: translateX(-24px); }
    to   { opacity: 1; transform: translateX(0); }
}

.mpb-fade-up   { animation: mpb-fade-up-anim .7s ease both; }
.mpb-fade-in   { animation: mpb-fade-in-anim .7s ease .15s both; }
.mpb-fade-left { animation: mpb-fade-left-anim .7s ease .3s both; }

@media (prefers-reduced-motion: reduce) {
    .mpb-fade-up,
    .mpb-fade-in,
    .mpb-fade-left {
        animation: none;
    }
}

/* ---------- Contenedor y secciones ---------- */
.mpb-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.mpb-section {
    padding: 64px 0;
}

.mpb-section--alt {
    background: var(--mpb-light, #f8f9fa);
}

.mpb-kicker {
    display: inline-block;
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--mpb-teal, #55c3c3);
}

.mpb-h2 {
    margin: 0 0 16px;
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.2;
    color: var(--mpb-dark, #171f2a);
}

.mpb-h2::after {
    content: "";
    display: block;
    width: 64px;
    height: 4px;
    margin-top: 14px;
    background: var(--mpb-teal, #55c3c3);
    border-radius: 2px;
}

.mpb-lead {
    margin: 0 0 40px;
    max-width: 900px;
    color: #556;
    line-height: 1.65;
}

/* ---------- Chips de estadísticas ---------- */
.mpb-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.mpb-chip {
    padding: 10px 16px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 8px;
    background: rgba(255, 255, 255, .08);
    color: #ffffff;
    font-size: 13px;
    line-height: 1.35;
}

.mpb-chip strong {
    display: block;
    font-size: 18px;
    color: var(--mpb-yellow, #FCBD30);
}

/* ---------- Tarjetas ---------- */
.mpb-grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.mpb-card {
    padding: 24px;
    background: #ffffff;
    border: 1px solid #e6e8ec;
    border-top: 3px solid var(--mpb-teal, #55c3c3);
    border-radius: 10px;
    box-shadow: 0 2px 14px rgba(23, 31, 42, .06);
}

.mpb-card h3 {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.3;
    color: var(--mpb-dark, #171f2a);
}

.mpb-card p {
    margin: 0;
    color: #4a5568;
    font-size: 15px;
    line-height: 1.6;
}

/* ---------- Lista con check (bullets de héroe) ---------- */
.mpb-checklist {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.mpb-checklist li {
    position: relative;
    padding-left: 30px;
    color: #e8eef2;
    font-size: 14.5px;
    line-height: 1.55;
}

.mpb-checklist li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--mpb-teal, #55c3c3);
    color: #0b1f2c;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    line-height: 20px;
}

/* ---------- Callout / nota técnica ---------- */
.mpb-callout {
    padding: 18px 20px;
    background: var(--mpb-light, #f8f9fa);
    border-left: 4px solid var(--mpb-teal, #55c3c3);
    border-radius: 0 8px 8px 0;
    font-size: 14.5px;
    line-height: 1.6;
    color: #445;
}

.mpb-callout strong {
    color: var(--mpb-dark, #171f2a);
}

/* ---------- Tabla de especificaciones ---------- */
.mpb-table-wrap {
    overflow-x: auto;
    border: 1px solid #e6e8ec;
    border-radius: 10px;
    background: #ffffff;
}

.mpb-table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    font-size: 14.5px;
}

.mpb-table caption {
    padding: 14px 20px;
    text-align: left;
    font-weight: 600;
    color: var(--mpb-dark, #171f2a);
    background: #f4f6f8;
}

.mpb-table th,
.mpb-table td {
    padding: 12px 24px;
    text-align: left;
    border-bottom: 1px solid #eef0f3;
}

.mpb-table thead th {
    background: var(--mpb-blue, #22496b);
    color: #ffffff;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.mpb-table tbody tr:nth-child(even) {
    background: #fafbfc;
}

.mpb-table tfoot td {
    font-size: 13px;
    color: #667;
    background: #f4f6f8;
    border-bottom: 0;
}

.mpb-table tfoot ol {
    margin: 0;
    padding-left: 18px;
}

/* ---------- Carrusel ---------- */
.mpb-carousel {
    position: relative;
}

.mpb-carousel-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.mpb-carousel-track::-webkit-scrollbar {
    display: none;
}

.mpb-carousel-slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    position: relative;
}

.mpb-carousel-slide img {
    display: block;
    width: 100%;
    height: clamp(300px, 58vh, 560px);
    object-fit: cover;
}

.mpb-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: rgba(23, 31, 42, .55);
    color: #ffffff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: background-color .2s ease;
}

.mpb-carousel-btn:hover {
    background: var(--mpb-teal, #55c3c3);
    color: #0b1f2c;
}

.mpb-carousel-btn--prev { left: 16px; }
.mpb-carousel-btn--next { right: 16px; }

.mpb-carousel-counter {
    position: absolute;
    right: 18px;
    bottom: 16px;
    z-index: 2;
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(23, 31, 42, .6);
    color: #ffffff;
    font-size: 13px;
}

/* ---------- FAQ (acordeón nativo, sin JS) ---------- */
.mpb-faq details {
    margin-bottom: 12px;
    background: #ffffff;
    border: 1px solid #e6e8ec;
    border-radius: 10px;
    overflow: hidden;
}

.mpb-faq summary {
    position: relative;
    padding: 18px 52px 18px 20px;
    font-weight: 600;
    color: var(--mpb-dark, #171f2a);
    cursor: pointer;
    list-style: none;
}

.mpb-faq summary::-webkit-details-marker {
    display: none;
}

.mpb-faq summary::after {
    content: "+";
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--mpb-teal, #55c3c3);
    color: #0b1f2c;
    text-align: center;
    line-height: 26px;
    font-size: 18px;
}

.mpb-faq details[open] summary::after {
    content: "\2212";
}

.mpb-faq .mpb-faq-a {
    padding: 0 20px 18px;
    color: #4a5568;
    line-height: 1.65;
}

/* ---------- Variantes de botón ---------- */
.mpb-btn-primary {
    background: var(--mpb-teal, #55c3c3);
    border-color: var(--mpb-teal, #55c3c3);
    color: #0b1f2c !important;
    font-weight: 700;
}

.mpb-btn-primary:hover,
.mpb-btn-primary:focus {
    background: #ffffff;
    border-color: #ffffff;
    color: #0b1f2c !important;
}

.mpb-btn-lg {
    padding: 14px 34px;
    font-size: 15px;
}

