                                                                            /* === HEADER GENERAL === */
header {
    position: relative;
    width: 100%;
    height: 260px; /* incluye info-bar */
    background: radial-gradient(circle at 40% 20%, #0e2d6d, #030a1a 85%);
    overflow: hidden;
    color: #fff;
    z-index: 1;
    font-family: 'Poppins', sans-serif;
}

/* === TOP BAR (anuncios rotativos) === */
.top-bar {
    position: relative;
    background: linear-gradient(90deg, #0e2460, #15306e);
    height: 38px;
    overflow: hidden;
    z-index: 3;
}

.ticker {
    position: relative;
    overflow: hidden;
    height: 38px;
}

.ticker__inner {
    display: flex;
    width: max-content;
    animation: tickerScroll 18s linear infinite;
}

.ticker__item {
    padding: 0 60px;
    font-size: 15px;
    line-height: 38px;
    white-space: nowrap;
    color: #ffffff;
    font-weight: 500;
}

@keyframes tickerScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* === SUBMENÚ INFORMATIVO === */
.info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.07);
    padding: 10px 60px;
    font-size: 0.95rem;
    backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #d6e4ff;
    font-weight: 400;
}

    .info-item i {
        color: #6cb2ff;
        font-size: 1rem;
    }

.info-links a {
    color: #c8d8ff;
    margin-left: 22px;
    text-decoration: none;
    transition: all 0.3s ease;
}

    .info-links a i {
        color: #6cb2ff;
        margin-right: 5px;
    }

    .info-links a:hover {
        color: #6cb2ff;
        transform: translateY(-2px);
    }

/* === CIELO DE ESTRELLAS === */
.stars {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

/* Estrellas normales */
.star {
    position: absolute;
    width: 3px;
    height: 3px;
    background: white;
    border-radius: 50%;
    opacity: 0.8;
    animation: twinkle 3s infinite ease-in-out;
    box-shadow: 0 0 8px 3px rgba(255, 255, 255, 0.4);
}

    .star:nth-child(odd) {
        width: 4px;
        height: 4px;
        opacity: 1;
    }

    .star:nth-child(3n) {
        width: 2px;
        height: 2px;
        opacity: 0.6;
    }

@keyframes twinkle {
    0%, 100% {
        opacity: 0.4;
        transform: scale(0.9);
    }

    50% {
        opacity: 1;
        transform: scale(1.4);
    }
}

/* Estrellas fugaces o en movimiento */
.moving-star {
    position: absolute;
    width: 3px;
    height: 3px;
    background: radial-gradient(circle, #fff 0%, #b7d8ff 70%, transparent 100%);
    border-radius: 50%;
    opacity: 0.9;
    animation: riseStar linear infinite;
    box-shadow: 0 0 10px 5px rgba(255, 255, 255, 0.6);
}

.stars,
.moving-star {
    pointer-events: none; /* evita bloquear clics */
}

@keyframes riseStar {
    0% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    100% {
        transform: translateY(-400px) translateX(150px) scale(1.2);
        opacity: 0;
    }
}

/* === CURVAS INFERIORES (más notorias) === */
header .curve {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 180px;
    background: linear-gradient(to bottom, #0b1f40 40%, #07132a 100%);
    clip-path: path("M 0 120 Q 500 240, 1000 160 T 2000 220 T 3000 160 T 4000 220 V 300 H 0 Z");
    z-index: 3;
    filter: drop-shadow(0 -4px 10px rgba(0,0,0,0.6));
    animation: waveMotion 10s ease-in-out infinite alternate;
}

    header .curve::after {
        content: "";
        position: absolute;
        bottom: 0;
        width: 100%;
        height: 120px;
        background: linear-gradient(to bottom, #15306e 30%, transparent 100%);
        clip-path: path("M 0 80 Q 500 160, 1000 120 T 2000 160 T 3000 120 T 4000 160 V 200 H 0 Z");
        opacity: 0.8;
        animation: waveMotion 12s ease-in-out infinite alternate-reverse;
    }

@keyframes waveMotion {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(12px);
    }
}

/* === NAV PRINCIPAL === */
.nav-main {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 70px;
    backdrop-filter: blur(8px);
}

/* === LOGO === */
.logo {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 18px rgba(255, 255, 255, 0.3);
}

    .logo:hover {
        transform: scale(1.1);
        box-shadow: 0 0 35px rgba(111, 177, 252, 0.7);
    }

    .logo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
    }

/* === MENÚ CATEGORÍAS === */
.menu-categories ul {
    display: flex;
    gap: 40px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-categories a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    position: relative;
    transition: color 0.3s, transform 0.3s;
}

    .menu-categories a::after {
        content: "";
        position: absolute;
        bottom: -5px;
        left: 0;
        width: 0%;
        height: 2px;
        background: #6cb2ff;
        transition: width 0.3s ease;
    }

    .menu-categories a:hover {
        color: #6cb2ff;
        transform: translateY(-3px);
    }

        .menu-categories a:hover::after {
            width: 100%;
        }

/* === BUSCADOR === */
.search-bar input {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    color: #fff;
    width: 200px;
    transition: all 0.3s ease;
}

    .search-bar input::placeholder {
        color: #bbb;
    }

    .search-bar input:focus {
        width: 250px;
        outline: none;
        background: rgba(255, 255, 255, 0.25);
        box-shadow: 0 0 10px rgba(108, 178, 255, 0.5);
    }

/* === ICONOS === */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-menu a,
.cart-icon i {
    color: #fff;
    font-size: 1.4rem;
    transition: color 0.3s, transform 0.3s;
}

    .user-menu a:hover,
    .cart-icon i:hover {
        color: #6cb2ff;
        transform: scale(1.2);
    }

.cart-icon {
    position: relative;
    cursor: pointer;
}

    .cart-icon span {
        position: absolute;
        top: -8px;
        right: -10px;
        background: #ff3b3b;
        color: #fff;
        font-size: 0.75rem;
        padding: 2px 6px;
        border-radius: 50%;
        font-weight: 600;
    }

/* === RESPONSIVE === */
@media (max-width: 768px) {
    header {
        height: auto;
    }

    .info-bar {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .nav-main {
        flex-direction: column;
        text-align: center;
        padding: 25px;
        gap: 20px;
    }

    .menu-categories ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }

    .search-bar input {
        width: 160px;
    }
}

/* === HAMBURGUESA === */
.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.8rem;
    color: #fff;
    transition: transform 0.3s;
}

    .hamburger:hover {
        transform: rotate(90deg);
    }

/* === MENÚ MÓVIL === */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 360px;
    height: 100vh;
    background: linear-gradient(180deg, #0c1e40 0%, #051024 100%);
    color: #fff;
    z-index: 999;
    padding: 30px 25px;
    box-shadow: -3px 0 10px rgba(0,0,0,0.5);
    transition: right 0.4s ease;
    overflow-y: auto;
}

    .mobile-menu.active {
        right: 0;
    }

    .mobile-menu .close-btn {
        text-align: right;
        font-size: 1.6rem;
        margin-bottom: 20px;
        cursor: pointer;
    }

.mobile-info {
    margin-bottom: 20px;
}

    .mobile-info .info-item {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 8px;
    }

.mobile-links a {
    display: block;
    color: #c8d8ff;
    margin-bottom: 10px;
    text-decoration: none;
    transition: color 0.3s;
}

    .mobile-links a:hover {
        color: #6cb2ff;
    }

.mobile-categories {
    margin-top: 25px;
}

    .mobile-categories h4 {
        font-size: 1.1rem;
        margin-bottom: 10px;
        color: #6cb2ff;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding-bottom: 5px;
    }

    .mobile-categories ul {
        list-style: none;
        padding: 0;
    }

    .mobile-categories li {
        margin-bottom: 8px;
    }

    .mobile-categories a {
        text-decoration: none;
        color: #fff;
        transition: all 0.3s ease;
    }

        .mobile-categories a:hover {
            color: #6cb2ff;
            padding-left: 5px;
        }

/* Mostrar hamburguesa en pantallas pequeñas */
@media (max-width: 992px) {
    .menu-categories, .info-bar {
        display: none;
    }

    .hamburger {
        display: block;
    }
}

/* === Carrito deslizante === */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -100%; /* oculto por defecto */
    width: 350px;
    height: 100%;
    background: #fff;
    box-shadow: -2px 0 10px rgba(0,0,0,0.3);
    transition: right 0.3s ease;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    padding: 15px;
    font-family: 'Segoe UI', sans-serif;
}

/* Header */
.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

    .cart-header h3 {
        margin: 0;
        font-size: 1.5rem;
    }

.close-btn {
    background: transparent;
    border: none;
    font-size: 22px;
    cursor: pointer;
}

/* Lista de items */
.cart-list {
    flex: 1;
    overflow-y: auto;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Cada item */
.cart-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.cart-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    margin-right: 10px;
}

.cart-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cart-title {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.cart-quantity {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

    .cart-quantity button {
        width: 25px;
        height: 25px;
        border: none;
        background: #f0f0f0;
        font-weight: bold;
        cursor: pointer;
        border-radius: 4px;
        margin: 0 5px;
    }

.cart-price {
    font-weight: 600;
    color: #333;
}

/* Botón eliminar */
.remove-btn {
    border: none;
    background: transparent;
    font-size: 14px;
    cursor: pointer;
    margin-left: 5px;
    color: #ff4d4f;
    transition: color 0.2s;
}

    .remove-btn:hover {
        color: #d9363e;
    }

/* Footer del carrito */
.cart-footer {
    border-top: 1px solid #ddd;
    padding-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cart-total {
    font-size: 1.3rem;
    font-weight: bold;
    text-align: right;
}

/* Botones generales */
.btn, .btn-outline {
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn {
    background: #0f1724;
    color: white;
    border: none;
}

.btn-outline {
    background: white;
    border: 1px solid #0f1724;
    color: #0f1724;
}

/* Overlay */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: none; /* oculto por defecto */
    z-index: 10000;
}

/* Scroll en lista de carrito */
.cart-list::-webkit-scrollbar {
    width: 6px;
}

.cart-list::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.2);
    border-radius: 3px;
}



                                                                                     /* === FOOTER GENERAL === */

/* ==== FOOTER GENERAL ==== */
.footer {
    background: linear-gradient(135deg, #0e0e0e, #1c1c1c);
    color: #f0f0f0;
    padding: 60px 10%;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 -3px 12px rgba(0, 0, 0, 0.3);
}

/* ==== CONTENEDOR PRINCIPAL ==== */
.footer-content {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 40px;
    align-items: flex-start;
    justify-content: space-between;
}

/* ==== SECCIONES ==== */
.footer-section h4 {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    position: relative;
}

    .footer-section h4::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: -5px;
        width: 35px;
        height: 2px;
        background-color: #00bcd4; /* azul eléctrico */
        border-radius: 2px;
    }

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .footer-section ul li {
        margin-bottom: 8px;
    }

        .footer-section ul li a {
            color: #cfcfcf;
            text-decoration: none;
            transition: color 0.3s ease;
        }

            .footer-section ul li a:hover {
                color: #00bcd4;
            }

/* ==== LOGO Y DESCRIPCIÓN ==== */
.logo-section {
    text-align: left;
}

.footer-logo {
    width: 150px;
    margin-bottom: 15px;
    filter: brightness(1.2);
}

.logo-section p {
    color: #cfcfcf;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ==== REDES SOCIALES ==== */
.socials {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
}

    .socials a {
        display: flex;
        align-items: center;
        justify-content: center;
        background: #222;
        color: #00bcd4; /* color principal */
        width: 38px;
        height: 38px;
        border-radius: 50%;
        font-size: 1rem;
        transition: all 0.3s ease;
        cursor: pointer;
    }

        .socials a:hover {
            background: #00a3bb; /* tono más oscuro */
            color: #fff;
            transform: translateY(-3px) scale(1.05);
        }

/* ==== INFORMACIÓN DE CONTACTO ==== */
.contact-info p {
    margin: 5px 0;
    font-size: 0.9rem;
    color: #d1d1d1;
}

.contact-info i {
    margin-right: 8px;
    color: #00bcd4;
}

/* ==== PARTE INFERIOR ==== */
.footer-bottom {
    margin-top: 50px;
    padding-top: 25px;
    border-top: 1px solid #2b2b2b;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    text-align: center;
}

    .footer-bottom p {
        margin: 0;
        font-size: 0.9rem;
        color: #b5b5b5;
    }

.dev-link {
    color: #00bcd4;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
}

    .dev-link:hover {
        text-decoration: underline;
    }

/* ==== RESPONSIVE ==== */
@media (max-width: 1100px) {
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
        text-align: center;
    }

    .logo-section {
        text-align: center;
    }

    .footer-logo {
        margin: 0 auto 15px;
    }

    .socials {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 25px;
        text-align: center;
    }

    .footer-section h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .socials {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 550px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }

    .logo-section {
        text-align: center;
    }

    .footer-logo {
        width: 160px;
    }

    .socials {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
}


/* ====== SECCIÓN: CATEGORÍAS DESTACADAS ====== */
.featured-categories {
    width: 100%;
    padding: 60px 5%;
    background: #f9f9fb;
    text-align: center;
    box-sizing: border-box;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: #111;
    margin-bottom: 50px;
    letter-spacing: -0.5px;
    position: relative;
}

    .section-title::after {
        content: "";
        display: block;
        width: 70px;
        height: 3px;
        background: #007bff;
        margin: 12px auto 0;
        border-radius: 3px;
    }

/* ===== GRID FLEXIBLE ===== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    justify-content: center;
    align-items: stretch;
}

/* ===== CARD ===== */
.category-card {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    transition: all 0.4s ease;
    cursor: pointer;
    background: #000;
    height: 280px;
}

    .category-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        filter: brightness(0.8);
        transition: transform 0.5s ease, filter 0.4s ease;
    }

/* Info con efecto blur */
.category-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 25px;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

/* Hover effect */
.category-card:hover img {
    transform: scale(1.08);
    filter: brightness(1);
}

.category-card:hover .category-info {
    transform: translateY(0);
}

/* Texto */
.category-info h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.category-info p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.btn-category {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 18px;
    background: #007bff;
    color: #fff;
    border-radius: 40px;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

    .btn-category:hover {
        background: #0056b3;
        transform: translateY(-2px);
    }

/* ====== RESPONSIVE ====== */
@media (max-width: 1024px) {
    .featured-categories {
        padding: 50px 4%;
    }

    .section-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 20px;
    }

    .category-card {
        height: 240px;
    }

    .category-info {
        padding: 15px;
    }

    .btn-category {
        padding: 7px 14px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.6rem;
    }

    .category-card {
        height: 200px;
    }
}

/* ==== HERO SLIDER ==== */
.hero-slider {
    position: relative;
    width: 100%;
    height: 70vh;
    overflow: hidden;
    font-family: "Poppins", sans-serif;
}

.slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 1s ease, transform 1.8s ease;
}

.slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.45);
    top: 0;
    left: 0;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    z-index: 3;
    max-width: 90%;
    animation: fadeUp 1.3s ease;
}

.slide-content h2 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.btn-hero {
    background: linear-gradient(90deg, #0078ff, #00c6ff);
    color: #fff;
    padding: 12px 28px;
    border-radius: 40px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-hero:hover {
    background: linear-gradient(90deg, #005ecb, #00a2cc);
    transform: scale(1.05);
}

/* ==== CONTROLES ==== */
.slider-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 4;
}

.slider-controls button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.2rem;
    padding: 10px 14px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-controls button:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

/* ==== ANIMACIONES ==== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* ==== RESPONSIVE ==== */
@media (max-width: 768px) {
    .hero-slider {
        height: 55vh;
    }

    .slide-content h2 {
        font-size: 1.8rem;
    }

    .slide-content p {
        font-size: 1rem;
    }

    .btn-hero {
        padding: 10px 22px;
        font-size: 0.9rem;
    }
}
.slider-controls {
    display: none;
}

/* --- Sección Featured Products --- */
.featured-products {
    padding: 60px 20px;
    background-color: #fafafa;
    text-align: center;
    font-family: 'Inter', sans-serif;
}

    .featured-products .section-title {
        font-size: 2.5rem;
        margin-bottom: 50px;
        color: #111;
        font-weight: 700;
    }

/* --- Grid de productos --- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    justify-items: center;
}

/* --- Tarjeta de producto moderna --- */
.product-card {
    position: relative;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.35s cubic-bezier(.25,.8,.25,1), box-shadow 0.35s cubic-bezier(.25,.8,.25,1);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

    /* Hover moderno: elevación suave + escala */
    .product-card:hover {
        transform: translateY(-10px) scale(1.02);
        box-shadow: 0 12px 28px rgba(0,0,0,0.12);
    }

    /* Imagen con efecto suave */
    .product-card img {
        width: 100%;
        height: 280px;
        object-fit: cover;
        transition: transform 0.35s ease;
    }

    /* Zoom sutil al pasar el cursor */
    .product-card:hover img {
        transform: scale(1.05);
    }

    /* Contenido de la tarjeta */
    .product-card h3 {
        font-size: 1.25rem;
        margin: 15px 0 6px;
        color: #111;
        font-weight: 600;
    }

    .product-card p {
        font-size: 1rem;
        color: #666;
        margin-bottom: 15px;
    }

/* Botón minimalista moderno */
.btn-product {
    display: inline-block;
    margin-bottom: 20px;
    padding: 10px 28px;
    background: #111;
    color: #fff;
    font-weight: 500;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

    .btn-product:hover {
        background: #ff6f61;
        transform: translateY(-2px);
    }

/* --- Responsive --- */
@media (max-width: 1024px) {
    .product-card img {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .featured-products .section-title {
        font-size: 2rem;
    }

    .product-card img {
        height: 220px;
    }
}

@media (max-width: 480px) {
    .product-card img {
        height: 180px;
    }

    .btn-product {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
}

/* --- Banner de promoción sin imagen --- */
.promo-banner {
    background: linear-gradient(135deg, #ff6f61, #ffb86c);
    border-radius: 16px;
    padding: 80px 20px;
    margin: 60px 20px;
    text-align: center;
    color: #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .promo-banner:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 30px rgba(0,0,0,0.25);
    }

    /* Contenido */
    .promo-banner .promo-content {
        max-width: 700px;
        margin: 0 auto;
    }

    .promo-banner h2 {
        font-size: 2.2rem;
        margin-bottom: 15px;
        font-weight: 700;
        line-height: 1.2;
    }

    .promo-banner p {
        font-size: 1.1rem;
        margin-bottom: 25px;
    }

/* Botón CTA moderno */
.btn-promo {
    display: inline-block;
    padding: 12px 30px;
    background: #fff;
    color: #ff6f61;
    font-weight: 600;
    border-radius: 30px;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
}

    .btn-promo:hover {
        background: #ff3b2f;
        color: #fff;
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(255,111,97,0.35);
    }

/* --- Animación de fondo sutil --- */
.promo-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    animation: moveGradient 8s linear infinite;
    z-index: 0;
}

@keyframes moveGradient {
    0% {
        transform: rotate(0deg) translate(0, 0);
    }

    50% {
        transform: rotate(180deg) translate(20px, 20px);
    }

    100% {
        transform: rotate(360deg) translate(0, 0);
    }
}

/* Contenido por encima del overlay animado */
.promo-banner .promo-content {
    position: relative;
    z-index: 1;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .promo-banner {
        padding: 60px 20px;
    }

        .promo-banner h2 {
            font-size: 1.9rem;
        }

        .promo-banner p {
            font-size: 1rem;
        }
}

@media (max-width: 768px) {
    .promo-banner {
        padding: 50px 15px;
    }

        .promo-banner h2 {
            font-size: 1.6rem;
        }

        .promo-banner p {
            font-size: 0.95rem;
        }

    .btn-promo {
        padding: 10px 25px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .promo-banner {
        padding: 40px 10px;
    }

        .promo-banner h2 {
            font-size: 1.4rem;
        }

        .promo-banner p {
            font-size: 0.9rem;
        }

    .btn-promo {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
}

/* ==============================
   BENEFICIOS / GARANTÍAS
   ============================== */
/* ==============================
   BENEFICIOS / GARANTÍAS MODERNOS
   ============================== */
.benefits {
    padding: 50px 20px;
    background-color: #fffaf9;
    font-family: 'Inter', sans-serif;
    text-align: center;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.benefit-card {
    background: #fff0ee; /* color principal rojizo claro */
    border-radius: 20px;
    padding: 30px 20px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease, background 0.4s ease;
    cursor: default;
    position: relative;
}

    /* Hover efectos */
    .benefit-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 14px 32px rgba(0,0,0,0.15);
        background-color: #ffe6e1;
    }

    /* Iconos animados */
    .benefit-card i {
        font-size: 2.2rem;
        color: #ff6f61;
        margin-bottom: 15px;
        transition: transform 0.3s ease, color 0.3s ease;
    }

    .benefit-card:hover i {
        transform: scale(1.3) rotate(10deg);
        color: #ff4c3b;
    }

    /* Títulos con línea animada */
    .benefit-card h4 {
        font-size: 1.25rem;
        margin-bottom: 12px;
        color: #111;
        font-weight: 600;
        position: relative;
    }

        .benefit-card h4::after {
            content: '';
            display: block;
            width: 0;
            height: 3px;
            background: #ff6f61;
            border-radius: 2px;
            transition: width 0.4s ease;
            position: absolute;
            bottom: -5px;
            left: 0;
        }

    .benefit-card:hover h4::after {
        width: 50px;
    }

    /* Texto */
    .benefit-card p {
        font-size: 1rem;
        color: #555;
        line-height: 1.5;
    }

/* Animación al aparecer en scroll */
.animate {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

    .animate.visible {
        opacity: 1;
        transform: translateY(0);
    }

/* Responsive */
@media (max-width: 768px) {
    .benefits-grid {
        gap: 20px;
    }

    .benefit-card h4 {
        font-size: 1.15rem;
    }

    .benefit-card p {
        font-size: 0.95rem;
    }
}


/* ==============================
   Responsive
   ============================== */
@media (max-width: 768px) {
    .benefits-grid {
        gap: 15px;
    }

    .benefit-card h4 {
        font-size: 1.1rem;
    }

    .benefit-card p {
        font-size: 0.95rem;
    }
}

/* ==============================
   INFO GENERAL - TIMELINE
   ============================== */
.info-general {
    padding: 50px 20px;
    background-color: #fffaf9; /* fondo muy suave */
    font-family: 'Inter', sans-serif;
    text-align: center;
}

    .info-general .section-title {
        font-size: 2rem;
        margin-bottom: 40px;
        color: #111;
        font-weight: 700;
        position: relative;
    }

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
}

    /* Línea vertical */
    .timeline::before {
        content: '';
        position: absolute;
        left: 50%;
        top: 0;
        width: 4px;
        height: 100%;
        background: #ff6f61; /* línea principal rojiza */
        transform: translateX(-50%);
        border-radius: 2px;
    }

.timeline-item {
    display: flex;
    position: relative;
    width: 50%;
    padding: 20px 40px;
    box-sizing: border-box;
}

    .timeline-item:nth-child(odd) {
        left: 0;
        text-align: right;
    }

    .timeline-item:nth-child(even) {
        left: 50%;
        text-align: left;
    }

/* Icono circular */
.timeline-icon {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ff6f61;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-item:hover .timeline-icon {
    transform: translateX(-50%) scale(1.2);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.timeline-content {
    background: #fff0ee; /* rojizo suave */
    padding: 20px 25px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: 30px;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 30px;
}

.timeline-content h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: #111;
}

.timeline-content p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
}

/* Animaciones de scroll */
.animate {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

    .animate.visible {
        opacity: 1;
        transform: translateY(0);
    }

/* Responsive */
@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 60px;
        padding-right: 20px;
        text-align: left;
    }

        .timeline-item:nth-child(even) {
            left: 0;
        }

        .timeline-item:nth-child(odd) .timeline-content {
            margin-right: 0;
        }

        .timeline-item:nth-child(even) .timeline-content {
            margin-left: 0;
        }
}

/* ==============================
   BLOG / NOTICIAS / INSPIRACIÓN
   ============================== */
.blog {
    padding: 50px 20px;
    background-color: #fffaf9;
    font-family: 'Inter', sans-serif;
    text-align: center;
}

    .blog .section-title {
        font-size: 2rem;
        margin-bottom: 40px;
        color: #111;
        font-weight: 700;
        position: relative;
    }

/* Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Card */
.blog-card {
    background: #fff;
    border-radius: 16px;
    padding: 25px 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    cursor: pointer;
    position: relative;
}

    /* Hover effects */
    .blog-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 12px 28px rgba(0,0,0,0.15);
        background-color: #fff5f0;
    }

    /* Title with underline animation */
    .blog-card h4 {
        font-size: 1.2rem;
        margin-bottom: 12px;
        color: #111;
        position: relative;
    }

        .blog-card h4::after {
            content: '';
            display: block;
            width: 0;
            height: 3px;
            background: #ff6f61;
            border-radius: 2px;
            transition: width 0.3s ease;
            position: absolute;
            bottom: -5px;
            left: 0;
        }

    .blog-card:hover h4::after {
        width: 50px;
    }

    /* Paragraph */
    .blog-card p {
        font-size: 0.95rem;
        color: #555;
        line-height: 1.5;
        margin-bottom: 20px;
    }

/* Button */
.btn-blog {
    display: inline-block;
    text-decoration: none;
    background: #ff6f61;
    color: #fff;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 600;
    transition: transform 0.3s ease, background 0.3s ease;
}

    .btn-blog:hover {
        background: #ff8a75;
        transform: scale(1.05);
    }

/* Scroll animation */
.animate {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

    .animate.visible {
        opacity: 1;
        transform: translateY(0);
    }

/* Responsive */
@media (max-width: 768px) {
    .blog .section-title {
        font-size: 1.8rem;
    }

    .blog-grid {
        gap: 20px;
    }
}

/* ==============================
   Botón flotante WhatsApp
   ============================== */
.floating-wpp {
    position: fixed;
    bottom: 30px; /* distancia inferior */
    right: 30px; /* distancia derecha */
    width: 60px;
    height: 60px;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    text-decoration: none;
    z-index: 1000;
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: pulse 1.5s infinite; /* animación continua */
}

    /* Hover - efecto adicional */
    .floating-wpp:hover {
        transform: scale(1.2); /* se hace un poco más grande al pasar mouse */
        box-shadow: 0 10px 24px rgba(0,0,0,0.35);
    }

/* Animación de latido continua */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }
}

/* Overlay de pago */
#overlay-pago {
    display: none; /* inicialmente oculto */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.65);
    z-index: 2000;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
    font-family: 'Inter', sans-serif;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

    /* Cuando se active */
    #overlay-pago.active {
        display: flex;
        opacity: 1;
    }

    /* Loader circular animado */
    #overlay-pago .loader {
        border: 6px solid rgba(255,255,255,0.3);
        border-top: 6px solid #fff;
        border-radius: 50%;
        width: 60px;
        height: 60px;
        margin-bottom: 20px;
        animation: spin 1s linear infinite;
    }

/* Animación giro */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Texto secundario */
#overlay-pago small {
    color: #ddd;
    font-size: 0.85rem;
}


/* ==========================
   SECCIÓN CATÁLOGO
   ========================== */
.catalogo {
    padding: 30px 20px;
    font-family: 'Inter', sans-serif;
    background-color: #fdfdfd;
}

/* Header catálogo */
.catalogo-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px; /* reducido */
}

    .catalogo-header h2 {
        font-size: 1.8rem;
        color: #111;
        font-weight: 700;
        margin: 0;
    }

/* Buscador y orden */
.search-sort {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

    .search-sort input,
    .search-sort select {
        padding: 8px 12px;
        border-radius: 8px;
        border: 1px solid #ccc;
        font-size: 0.95rem;
        transition: all 0.3s ease;
    }

        .search-sort input:focus,
        .search-sort select:focus {
            outline: none;
            border-color: #ff6f61;
            box-shadow: 0 0 5px rgba(255, 111, 97, 0.3);
        }

/* Layout general: sidebar + grid */
.catalogo-layout {
    display: flex;
    gap: 25px;
}

/* Sidebar filtros */
.filters {
    width: 260px;
    max-width: 100%; /* evita desbordes */
    background-color: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    flex-shrink: 0;
    box-sizing: border-box;
}

    /* Título principal del sidebar */
    .filters h3 {
        font-size: 1.4rem;
        margin-bottom: 15px;
        color: #111;
    }

/* Grupos de filtros */
.filter-group {
    margin-bottom: 20px;
}

    /* Subtítulos de grupos */
    .filter-group h4 {
        font-size: 1.1rem;
        margin-bottom: 10px;
        color: #333;
    }

    /* Lista de opciones */
    .filter-group ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

        .filter-group ul li {
            margin-bottom: 8px;
            font-size: 0.95rem;
            word-break: break-word; /* evita desbordes de texto largo */
        }

    /* Checkbox */
    .filter-group input[type="checkbox"] {
        margin-right: 8px;
        accent-color: #ff6f61;
    }

    /* Rango de precios */
    .filter-group input[type="range"] {
        width: 100%;
        accent-color: #ff6f61;
    }

    /* Colores */
    .filter-group .colors span {
        display: inline-block;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        margin-right: 5px;
        border: 1px solid #ccc;
        cursor: pointer;
        transition: transform 0.2s ease, border-color 0.2s ease;
    }

        .filter-group .colors span:hover {
            transform: scale(1.2);
            border-color: #ff6f61;
        }

    /* Marcas y tallas */
    .filter-group .brands label,
    .filter-group .sizes label {
        display: block;
        margin-bottom: 5px;
        word-break: break-word; /* evita desbordes */
    }

/* === Responsive === */
@media(max-width: 1024px) {
    .filters {
        width: 220px;
        margin: 0 auto 20px auto;
    }
}

@media(max-width: 768px) {
    .filters {
        width: 95%;
        margin: 0 auto 20px auto;
        padding: 15px;
    }

    .filter-group h3,
    .filter-group h4 {
        text-align: center;
    }

    .filter-group ul li {
        text-align: left;
    }
}

@media(max-width: 480px) {
    .filters {
        padding: 10px;
    }

    .filter-group .colors span {
        width: 18px;
        height: 18px;
        margin-right: 4px;
    }
}


/* Cards de productos */
.card {
    position: relative; /* necesario para posicionar el badge */
    background-color: #fff;
    border-radius: 16px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 250px; /* ancho fijo para escritorio */
    max-width: 100%; /* responsive en pantallas pequeñas */
    margin: 0 auto; /* centra la card horizontalmente */
}

/* Grid de productos */
.grid.productos {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center; /* centra las cards dentro del grid */
    padding: 20px 0;
}
    .card img {
        width: 100%;
        border-radius: 12px;
        margin-bottom: 15px;
        transition: transform 0.3s ease;
    }

    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 28px rgba(0,0,0,0.15);
    }

        .card:hover img {
            transform: scale(1.05);
        }

    .card h4 {
        font-size: 1rem;
        margin-bottom: 10px;
        color: #111;
        font-weight: 600;
    }

    .card .price {
        font-size: 1rem;
        font-weight: 700;
        color: #ff6f61;
        margin-bottom: 10px;
    }
/* badge en esquina */
.discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #ff6f61;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 5px 10px;
    border-radius: 8px;
    z-index: 2;
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
}

.card h4,
.card .price,
.card button {
    position: relative; /* para que aparezcan sobre el badge */
    z-index: 1;
}

.old-price {
    text-decoration: line-through;
    color: #888;
    margin-right: 8px;
}

.new-price {
    color: #ff6f61;
    font-weight: 700;
}

/* Botones */
.btn, .btn-outline {
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn {
    background-color: #ff6f61;
    color: #fff;
}

    .btn:hover {
        background-color: #ff4f3f;
    }

.btn-outline {
    background-color: transparent;
    color: #ff6f61;
    border: 1px solid #ff6f61;
    margin-top: 5px;
}

    .btn-outline:hover {
        background-color: #ff6f61;
        color: #fff;
    }

/* Productos no disponibles */
.card[data-disponible="false"] {
    opacity: 0.6;
}
/* Responsive: dispositivos pequeños */
@media(max-width: 768px) {
    .card {
        width: 90%; /* ocupa la mayoría del ancho disponible */
        margin: 0 auto 20px auto; /* margen inferior para separación */
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .catalogo-layout {
        flex-direction: column;
    }

    .filters {
        width: 100%;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .catalogo-header {
        flex-direction: column;
        gap: 15px;
    }

    .search-sort {
        flex-direction: column;
        width: 100%;
    }
}

.catalogo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    flex-wrap: wrap;
    gap: 15px;
}

/* Izquierda: título */
.catalogo-left h2 {
    font-size: 2rem;
    color: #222;
    margin: 0;
}

/* Centro: beneficios */
.catalogo-center {
    flex: 1;
    text-align: center;
}

.catalogo-info {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 0;
    margin: 0;
}

.catalogo-info li {
    background: #ff6f61;
    color: #fff;
    padding: 6px 14px;
    border-radius: 14px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Derecha: buscador y orden */
.catalogo-right {
    text-align: right;
}

.search-sort {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.search-sort input[type="text"], .search-sort select {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

/* Modal overlay */
/* === MODAL === */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(3px);
    transition: opacity 0.3s ease;
}

.modal-content {
    background-color: #fff;
    margin: 50px auto;
    border-radius: 16px;
    width: 90%;
    max-width: 650px; /* más ancho que antes */
    padding: 20px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.15);
    position: relative;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

    .modal-content .close {
        position: absolute;
        top: 15px;
        right: 20px;
        font-size: 1.5rem;
        font-weight: bold;
        color: #333;
        cursor: pointer;
    }

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* === Imagen y badge de descuento === */
.modal-img-wrapper {
    position: relative;
    text-align: center;
}

    .modal-img-wrapper img {
        width: 100%;
        border-radius: 12px;
        object-fit: cover;
    }

.discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #ff6f61;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 5px 10px;
    border-radius: 8px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
}

/* === Información del producto === */
.modal-info h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.modal-price {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

    .modal-price .old-price {
        text-decoration: line-through;
        color: #888;
        margin-right: 8px;
    }

    .modal-price .new-price {
        color: #ff6f61;
        font-weight: 700;
    }

#modal-desc {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 15px;
}

#modal-add-cart {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    border-radius: 12px;
    background-color: #ff6f61;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

    #modal-add-cart:hover {
        background-color: #e55b50;
    }

/* === Responsive: horizontal en pantallas grandes === */
@media(min-width: 768px) {
    .modal-body {
        flex-direction: row;
    }

    .modal-img-wrapper, .modal-info {
        flex: 1;
    }

    .modal-img-wrapper {
        margin-right: 20px;
    }

    #modal-desc {
        margin-bottom: 25px;
    }

    #modal-add-cart {
        width: auto;
        padding: 10px 20px;
    }
}

.card {
    position: relative; /* necesario para posicionar el badge */
    background-color: #fff;
    border-radius: 16px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.card img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

/* badge en esquina */
.discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #ff6f61;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 5px 10px;
    border-radius: 8px;
    z-index: 2;
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
}

.card h4,
.card .price,
.card button {
    position: relative; /* para que aparezcan sobre el badge */
    z-index: 1;
}

.old-price {
    text-decoration: line-through;
    color: #888;
    margin-right: 8px;
}

.new-price {
    color: #ff6f61;
    font-weight: 700;
}

/* Botón cerrar modal (desktop) */
.modal-content .close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    cursor: pointer;
}

/* Botón cerrar debajo de "Agregar al carrito" (mobile) */
#modal-close-mobile {
    display: none; /* por defecto oculto */
    margin-top: 15px;
    padding: 12px;
    font-size: 1rem;
    border-radius: 12px;
    background-color: #888;
    color: #fff;
    border: none;
    cursor: pointer;
    width: 100%;
    transition: background 0.3s ease;
}

    #modal-close-mobile:hover {
        background-color: #555;
    }

/* Responsive: mostrar botón cerrar en móviles */
@media(max-width: 768px) {
    .modal-content .close {
        display: none; /* ocultamos la X en la esquina */
    }

    #modal-close-mobile {
        display: block; /* mostramos el botón debajo de Agregar al carrito */
    }
}
