/* ====== ESTILOS GENERALES ====== */
html {
    font-size: 62.5%;
}

body {
    background-color: #f5f3f3;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    margin: 0;
    padding-top: 140px; /* FIX: aumentado para cubrir header con 2 filas en móvil */
}

h1 {
    text-align: center;
    color: #2c3e50;
}

h2 {
    font-size: 3rem;
    color: #2c3e50;
}

h4 {
    font-size: 16px;
    font-weight: 700;
}

/* ====== HEADER ====== */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: white;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-row {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 0; /* FIX: padding para que el header no sea tan ajustado */
}

@media (min-width: 750px) {
    header {
        text-align: left;
    }
}

/* LOGO izquierda */
.logo-area {
    position: absolute;
    left: 0;
}

/* ====== ESTILOS DEL CARRITO ====== */
.borrar-curso {
    background-color: black;
    border-radius: 50%;
    padding: 5px 10px;
    text-decoration: none;
    color: white;
    font-weight: bold;
    transition: all 0.3s ease;
    margin: 0;
}

.borrar-curso:hover {
    background-color: black;
    transform: scale(1.1);
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#img-carrito {
    width: 30px;
    cursor: pointer;
    margin-bottom: 0px;
    margin-left: 20px;
}

/* ====== SLIDER ====== */
#hero {
    width: 100%;
    overflow: hidden;
}

.slider {
    position: relative;
    width: 100%;
    height: 60vh;
    max-height: 500px;
    overflow: hidden;
}

.slides {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    height: 100%;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Botones prev/next */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    z-index: 10;
}

.prev { left: 15px; }
.next { right: 15px; }

.prev:hover, .next:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* DOTS */
.dots {
    position: absolute;
    bottom: 15px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,0.6);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.dot.active {
    background: white;
    transform: scale(1.2);
}

#encabezado {
    margin: 30px 0;
    color: #2c3e50;
}

/* ====== CARRITO DESPLEGABLE ====== */
.submenu {
    position: relative;
    display: inline-block;
}

.submenu #carrito {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    z-index: 1000;
    background-color: white;
    padding: 20px;
    min-height: 400px;
    min-width: 350px;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid #eaeaea;
    overflow-y: auto;
    max-height: 80vh;
}

.submenu:hover #carrito {
    display: block;
}

/* FIX MÓVIL: carrito ocupa casi toda la pantalla y no se sale */
@media (max-width: 768px) {
    .submenu #carrito {
        position: fixed;
        top: 130px; /* FIX: debajo del header completo */
        left: 50%;
        transform: translateX(-50%);
        width: 95vw;       /* FIX: ancho ajustado al viewport */
        min-width: unset;
        max-height: 65vh;
        overflow-y: auto;
        padding: 15px;
    }
}

/* ====== CONTENIDO HERO ====== */
.mi-imagen {
    width: 70px;           /* FIX: más pequeño en móvil */
    height: auto;
    margin-top: -2px;
    left: 50px;
}

@media (min-width: 550px) {
    .mi-imagen {
        width: 120px;
    }
}

.contenido-hero {
    margin-top: 80px;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.contenido-hero form {
    position: relative;
    margin-bottom: 0;
}

/* ====== BUSCADOR ====== */
.search-container {
    margin-bottom: 13px;
    position: relative;
    margin-top: 25px;
}

/* FIX: ancho del buscador en móvil */
#buscador {
    width: 100px;          /* FIX: más pequeño en pantallas chicas */
    color: #000000;
    height: 38px;
    padding: 0 35px 0 15px;
    border-radius: 25px;
    border: 1px solid #ddd;
    font-size: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    box-sizing: border-box;
}

@media (min-width: 400px) {
    #buscador {
        width: 180px;
    }
}

@media (min-width: 550px) {
    #buscador {
        width: 300px;
    }
}

@media (min-width: 750px) {
    #buscador {
        width: 400px;
        height: 44px;
    }
}

.search-container input {
    padding-left: 45px;
    padding-right: 15px;
    border-radius: 25px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.search-cart-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* FIX: lupa posicionada correctamente */
.search-icon {
    position: absolute;
    right: 12px;
    left: auto;            /* FIX: era left:220px fijo, ahora usa right */
    top: 40%;
    transform: translateY(-50%);
    color: #666;
    pointer-events: none;
}

/* ====== BARRA GRADIENTE ====== */
.barra {
    padding: 0px;
    background: black;
    background: linear-gradient(to right, #000000 0%, #8F8F8F 100%);
    color: white;
}

.barra p {
    margin: 0;
    color: white;
}

/* ====== INFORMACIÓN DE LA TIENDA ====== */
/* FIX: store-info no se posiciona absolute en móvil, queda oculta o causa desborde */
.store-info {
    background: rgba(255,255,255,0.15);
    padding: 6px 12px;
    border-radius: 5px;
    border-left: 3px solid rgba(255,255,255,0.5);
    text-align: center;
    white-space: nowrap;
}

/* Ocultar store-info en pantallas muy pequeñas para no saturar el header */
@media (max-width: 500px) {
    .store-area {
        display: none;
    }
}

.status-open {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    font-weight: bold;
    font-size: 12px;
}

.schedule {
    font-size: 11px;
    color: rgba(255,255,255,0.85);
    margin: 3px 0 0 0;
}

/* FIX: center-area con flex-wrap para que no desborde */
.center-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 6px;
    padding: 6px 0;
}

@media (min-width: 550px) {
    .center-area {
        flex-direction: row;
        justify-content: center;
        gap: 15px;
    }
}

/* ====== CONTADOR DEL CARRITO ====== */
#cart-count {
    position: absolute;
    top: -10px;
    right: -10px;
    background: black;
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    z-index: 100;
}

#cart-count.empty {
    background: #95a5a6;
    opacity: 0.7;
}

/* ====== LISTA DE CURSOS ====== */
/* FIX: el contenedor principal necesita box-sizing y no desbordar */
#lista-cursos {
    box-sizing: border-box;
    padding: 0 10px;
}

#lista-cursos .row {
    margin-bottom: 20px;
}

.agregar-carrito {
    margin: 10px 0;
    background: linear-gradient(to right, #000000 0%, #000000 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
    box-sizing: border-box; /* FIX: evita desborde */
}

.agregar-carrito:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(116, 29, 81, 0.3);
}

/* ====== CARDS ====== */
.card {
    text-align: center;
    border: 1px solid #e1e1e1;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;  /* FIX: espacio entre cards en móvil */
    width: 100%;
    box-sizing: border-box;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* FIX: imagen del producto no desborda */
.imagen-curso {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

@media (min-width: 550px) {
    .card {
        text-align: left;
    }
}

.info-card {
    padding: 15px 20px;
}

.info-card p,
.card h4 {
    margin-bottom: 5px;
}

.info-card .precio {
    text-decoration: line-through;
    font-size: 16px;
    margin-top: 10px;
    color: #7f8c8d;
    display: flex;           /* FIX: precio y precio-oferta en fila */
    justify-content: space-between;
    align-items: center;
}

.info-card .precio span {
    font-weight: 700;
    font-size: 20px;
    color: #e44e52;
    text-decoration: none;
}

/* ====== BARRA DE CATEGORÍAS ====== */
.categories-bar {
    background: #f8f9fa;
    padding: 10px 0;
    margin-bottom: 0px;
    border-bottom: 1px solid #eee;
}

.categories {
    display: flex;
    justify-content: center; /* FIX: scroll horizontal funciona mejor con flex-start */
    gap: 8px;
    overflow-x: auto;
    padding: 5px 0;
    -webkit-overflow-scrolling: touch; /* FIX: scroll suave en iOS */
    scrollbar-width: none; /* oculta scrollbar feo */
}

.categories::-webkit-scrollbar {
    display: none;
}

.category-btn {
    padding: 8px 20px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 25px;
    cursor: pointer;
    white-space: nowrap;   /* FIX: no rompe el texto del botón */
    transition: all 0.3s;
    font-weight: 500;
    font-size: 13px;
    flex-shrink: 0;        /* FIX: los botones no se comprimen */
     text-align: center; 
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
}

.category-btn:hover,
.category-btn.active {
    background: linear-gradient(to right, #000000 0%, #8F8F8F 100%);
    color: white;
    border-color: #741d51;
}

/* ====== SECCIONES POR CATEGORÍA ====== */
.category-section {
    margin-bottom: 40px;
}

.category-title {
    border-bottom: 3px solid #741d51;
    padding-bottom: 10px;
    margin-bottom: 20px;
    color: #333;
    font-size: 22px;
    font-weight: 600;
}

/* ====== MODAL ====== */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.modal-content {
    background-color: #fff;
    margin: 20px auto;
    padding: 30px;
    width: 90%;
    max-width: 600px;
    border-radius: 15px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid #eaeaea;
    top: 50%;
    transform: translateY(-50%);
    max-height: 85vh;
    overflow-y: auto;
    box-sizing: border-box; /* FIX */
}

@media (max-width: 768px) {
    .modal-content {
        margin: 10px auto;
        padding: 20px 15px;
        width: 95%;
        max-height: 90vh;
        top: 0;
        transform: none;
        box-sizing: border-box;
    }
}

.modal-content h3 {
    text-align: center;
    color: #2c3e50;
    font-size: 22px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid #f0f0f0;
    font-weight: 600;
    padding-right: 35px; /* FIX: espacio para el botón X */
}

.close-modal {
    position: absolute;
    right: 15px;
    top: 12px;
    font-size: 28px;
    font-weight: 300;
    color: #999;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    line-height: 1;
    z-index: 10;
}

.close-modal:hover {
    color: #e44e52;
    background-color: #f9f9f9;
    transform: rotate(90deg);
}

/* ====== TRANSFERENCIA (MODAL) ====== */
.transferencia-header {
    text-align: center;
    margin-bottom: 20px;
}

.transferencia-header i {
    font-size: 48px;
    background: linear-gradient(to right, #000000 0%, #8F8F8F 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    display: block; /* FIX: evita problemas de inline en iOS */
}

.transferencia-header h4 {
    color: #2c3e50;
    font-size: 20px;
    margin-bottom: 10px;
}

.bank-details {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid #eaeaea;
}

.bank-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    background: white;
    border-radius: 8px;
    border: 1px solid #eee;
}

.info-item i {
    font-size: 22px;
    color: #741d51;
    width: 35px;
    text-align: center;
    flex-shrink: 0;
}

.info-item .label {
    font-size: 12px;
    color: #666;
    margin: 0;
}

.info-item .value {
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
    margin: 4px 0 0 0;
}

.info-item .amount {
    color: #e44e52;
    font-size: 18px;
    font-weight: 700;
}

.transfer-instructions {
    background: white;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #eaeaea;
    margin-bottom: 20px;
}

.transfer-instructions ol {
    margin: 15px 0 0 20px;
    padding: 0;
    list-style: decimal;   /* FIX: skeleton lo resetea, restaurar */
}

.transfer-instructions li {
    margin-bottom: 10px;
    color: #555;
    line-height: 1.5;
    padding-left: 5px;
    list-style: decimal;
}

.confirmation-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.confirmation-buttons .button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    font-size: 15px;
    font-weight: 600;
    min-height: 48px;
    min-width: 140px;
    box-sizing: border-box;
}

/* FIX: en móvil los botones van uno debajo del otro */
@media (max-width: 480px) {
    .confirmation-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .confirmation-buttons .button {
        min-width: 100%;
        width: 100%;
    }
}

#cancelar-pedido {
    background: #e70202;
    color: white;
    border: none;
}

#cancelar-pedido:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

#confirmar-whatsapp {
    background: #25D366 !important;
    color: white !important;
    border: none !important;
}

#confirmar-whatsapp:hover {
    background: #128C7E !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(18, 140, 126, 0.3);
}

/* ====== BOTONES GENERALES ====== */
.button-primary {
    background: linear-gradient(to right, #000000 0%, #8F8F8F 100%); !important;
    color: white !important;
    border: none !important;
    transition: all 0.3s ease !important;
    border-radius: 5px !important;
    padding: 12px 20px !important;
    font-weight: 600 !important;
}

.button-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(116, 29, 81, 0.3) !important;
}

.button {
    border-radius: 5px !important;
    padding: 12px 20px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    cursor: pointer;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: none;
    font-family: inherit;
    box-sizing: border-box;
}

/* ====== OPCIONES DE ENTREGA ====== */
.delivery-options {
    margin: 15px 0;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 5px;
    border: 1px solid #eee;
}

.delivery-label {
    display: block;
    margin-bottom: 10px;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    background: white;
}

.delivery-label:hover {
    border-color: #741d51;
    background: #fcfcfc;
}

.delivery-label input[type="radio"]:checked+span {
    color: #741d51;
    font-weight: bold;
}

#distance-container {
    margin-top: 12px;
    padding: 10px;
    background: white;
    border-radius: 5px;
    border: 1px solid #eee;
}

#distance-container input {
    width: 100%;
    padding: 8px;
    margin: 5px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

/* ====== TOTAL DEL CARRITO ====== */
.cart-totals {
    margin: 15px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
    border: 1px solid #eee;
}

.total-row {
    border-top: 2px solid #ddd;
    padding-top: 10px;
    margin-top: 10px;
}

.text-right {
    text-align: right;
}

/* ====== BOTÓN WHATSAPP ====== */
.whatsapp-button {
    background-color: #25D366 !important;
    color: white !important;
    margin-top: 10px;
    border: none !important;
    transition: all 0.3s ease !important;
}

.whatsapp-button:hover {
    background-color: #128C7E !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(18, 140, 126, 0.3);
}

/* ====== BOTONES VACIAR / PAGAR ====== */
#vaciar-carrito,
#pagar,
#whatsapp-order {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 8px;
}

#whatsapp-order i {
    margin-right: 8px;
}

/* ====== FOOTER ====== */
.footer {
    margin-top: 40px;
    border-top: 1px solid #aaa;
    padding-top: 40px;
    background: #2c3e50;
    color: white;
}

.footer .menu a {
    display: block;
    margin-bottom: 10px;
    text-decoration: none;
    color: #ecf0f1;
    transition: color 0.3s ease;
}

.footer .menu a:hover {
    color: #e44e52;
}

/* FIX: columnas del footer en móvil */
@media (max-width: 549px) {
    .footer .four.columns {
        width: 100%;
        float: none;
        margin-left: 0;
        margin-bottom: 25px;
    }
}

/* ====== WHATSAPP FLOTANTE ====== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 20px;
    z-index: 1000;
}

.whatsapp-float a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    background-color: #25D366;
    border-radius: 50%;
    color: white;
    font-size: 28px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.whatsapp-float a:hover {
    background-color: #128C7E;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* ====== TABLAS (carrito) ====== */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

table th {
    background-color: #f8f9fa;
    padding: 8px 6px;
    text-align: left;
    border-bottom: 2px solid #ddd;
    color: #2c3e50;
    font-size: 13px;
}

table td {
    padding: 8px 6px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
    font-size: 13px;
}

/* FIX: tabla del carrito scrolleable en móvil */
#lista-carrito {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ====== INPUTS ====== */
input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: #741d51;
    box-shadow: 0 0 0 2px rgba(116, 29, 81, 0.1);
}

input[type="radio"] {
    margin-right: 8px;
}

/* ====== ENLACES ====== */
a {
    color: #741d51;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #e44e52;
}

/* ====== UTILIDADES ====== */
.u-full-width {
    width: 100% !important;
    box-sizing: border-box;
}

.u-pull-right {
    float: right !important;
}

/* ====== CART SUMMARY ====== */
.cart-summary {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #eee;
}

.cart-empty-state {
    text-align: center;
    padding: 30px 20px;
    color: #7f8c8d;
}

.cart-empty-state i {
    font-size: 40px;
    margin-bottom: 15px;
    color: #bdc3c7;
    display: block;
}

.cart-empty-state p {
    font-size: 15px;
    margin: 0;
}

/* ====== NOTIFICACIÓN PRODUCTO AÑADIDO ====== */
.product-added-notification {
    position: fixed;
    top: 100px;
    right: 15px;
    background: #2ecc71;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideInRight 0.3s ease forwards;
    max-width: 90vw; /* FIX: no se sale de la pantalla en móvil */
    font-size: 14px;
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to   { transform: translateX(0);    opacity: 1; }
}

/* ====== CONTROLES DE CANTIDAD ====== */
.cantidad-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-cantidad {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: 16px;
    flex-shrink: 0;
}

.btn-cantidad:hover {
    background: #f0f0f0;
    transform: scale(1.1);
}

.btn-cantidad.menos { color: #e74c3c; }
.btn-cantidad.mas   { color: #2ecc71; }

.cantidad {
    font-weight: bold;
    min-width: 25px;
    text-align: center;
    font-size: 15px;
}

/* ====== RESPONSIVE GENERAL ====== */
@media (max-width: 549px) {
    html { font-size: 55%; }

    /* FIX: columnas en móvil ocupan 100% y no flotan */
    .four.columns,
    .six.columns,
    .eight.columns,
    .twelve.columns {
        width: 100% !important;
        float: none !important;
        margin-left: 0 !important;
        margin-bottom: 15px;
    }

    /* FIX: body padding para header más alto en móvil */
    body {
        padding-top: 155px;
    }

    #hero .slider {
        height: 45vw;
        min-height: 160px;
    }

    .prev, .next {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    h1#encabezado {
        font-size: 2rem;
    }

    .category-title {
        font-size: 18px;
    }
}

/* ====== FIX PARA iOS ====== */
@supports (-webkit-touch-callout: none) {
    .modal {
        position: fixed;
        height: 100vh;
        overflow: hidden;
    }

    .modal-content {
        max-height: calc(100vh - 40px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    body.modal-open {
        position: fixed;
        width: 100%;
        height: 100%;
    }
}

/* ====== FORZAR TEXTO NEGRO EN EL CARRITO ====== */
#carrito,
#carrito p,
#carrito span,
#carrito strong,
#carrito td,
#carrito th {
    color: #000 !important;
}