/* ========== COMPONENTES - MODALES, NOTIFICACIONES, FOOTER ========== */

/* Modal de confirmación de pedido - DISEÑO PREMIUM */
.order-confirmation-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44, 44, 44, 0.4) 0%, rgba(75, 74, 74, 0.5) 100%);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 5000;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
    padding: 1rem;
    animation: fadeInBackdrop 0.4s ease-out;
}

@keyframes fadeInBackdrop {
    from {
        backdrop-filter: blur(0px);
    }
    to {
        backdrop-filter: blur(8px);
    }
}

.order-confirmation-modal.active {
    opacity: 1;
    display: flex;
}

/* Contenido principal de confirmación */
.order-confirmation-content {
    background: linear-gradient(135deg, var(--blanco) 0%, rgba(255, 255, 255, 0.95) 100%);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    width: 100%;
    max-width: 520px;
    transform: translateY(30px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 0 1px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.2);
    position: relative;
    overflow: hidden;
}

.order-confirmation-modal.active .order-confirmation-content {
    transform: translateY(0) scale(1);
}

/* Fondo decorativo */
.order-confirmation-content::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* Header con icono */
.confirmation-header {
    position: relative;
    z-index: 1;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.confirmation-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.confirmation-icon {
    font-size: 5rem;
    color: #4caf50;
    animation: iconBounceIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.confirmation-icon-glow {
    position: absolute;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(76, 175, 80, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: glowPulse 2s ease-in-out infinite;
    z-index: -1;
}

@keyframes iconBounceIn {
    0% {
        transform: scale(0) rotateZ(-30deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.15);
    }
    100% {
        transform: scale(1) rotateZ(0);
        opacity: 1;
    }
}

@keyframes glowPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.1;
    }
}

/* Sección principal */
.confirmation-main {
    position: relative;
    z-index: 1;
}

.order-confirmation-content h2 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #2c2c2c 0%, #4a4a4a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    letter-spacing: -0.5px;
    animation: slideDown 0.5s ease-out 0.1s backwards;
}

.confirmation-message {
    color: var(--gris-oscuro);
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.7;
    animation: slideDown 0.5s ease-out 0.2s backwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Pasos de estado */
.order-status-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 2rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.05) 0%, rgba(212, 175, 55, 0.03) 100%);
    border-radius: 16px;
    border: 1px solid rgba(76, 175, 80, 0.1);
    animation: slideDown 0.5s ease-out 0.3s backwards;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.step-item.completed {
    opacity: 1;
}

.step-item.active {
    opacity: 1;
    transform: scale(1.1);
}

.step-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.5rem;
    background: var(--gris-claro);
    color: var(--gris-medio);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.step-item.completed .step-icon {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.step-item.active .step-icon {
    background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
    }
    50% {
        box-shadow: 0 4px 20px rgba(255, 193, 7, 0.5);
    }
}

.step-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gris-oscuro);
    text-align: center;
    transition: color 0.3s ease;
}

.step-item.completed .step-label {
    color: #2c2c2c;
}

.step-item.active .step-label {
    color: #2c2c2c;
}

.step-divider {
    flex: 0.5;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(76, 175, 80, 0.3), transparent);
    margin: 0 0.5rem;
}

/* Número de referencia */
.order-reference {
    margin: 1.5rem 0;
    padding: 1rem;
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f2ff 100%);
    border: 2px solid rgba(76, 175, 80, 0.2);
    border-radius: 12px;
    animation: slideDown 0.5s ease-out 0.4s backwards;
}

.reference-label {
    font-size: 0.85rem;
    color: var(--gris-medio);
    margin-bottom: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.reference-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #4caf50;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
}

/* Información de contacto mejorada */
.contact-info {
    margin: 2rem 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    animation: slideDown 0.5s ease-out 0.5s backwards;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(55, 212, 126, 0.08) 0%, rgba(0, 255, 128, 0.212) 100%);
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.15);
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(76, 175, 80, 0.1) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.15);
}

.contact-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--verde-oscuro);
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(212, 168, 85, 0.3);
}

.contact-detail {
    flex: 1;
}

.contact-label {
    font-size: 0.75rem;
    color: var(--gris-medio);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.contact-value {
    font-size: 0.95rem;
    color: var(--negro);
    font-weight: 600;
}

/* Botón de acción */
.confirmation-actions {
    margin-top: 2rem;
    animation: slideDown 0.5s ease-out 0.6s backwards;
}

.back-to-home-btn {
    background: var(--verde-oscuro);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(85, 212, 123, 0.3);
    position: relative;
    overflow: hidden;
}

.back-to-home-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.back-to-home-btn:hover::before {
    left: 100%;
}

.back-to-home-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(212, 168, 85, 0.4);
}

.back-to-home-btn:active {
    transform: translateY(-1px);
}

/* Responsivo para tablets */
@media (max-width: 768px) {
    .order-confirmation-content {
        padding: 1.75rem 1.5rem;
        border-radius: 16px;
        max-width: 90%;
    }

    .order-confirmation-content h2 {
        font-size: 1.6rem;
    }

    .confirmation-message {
        font-size: 0.95rem;
    }

    .confirmation-icon {
        font-size: 4rem;
    }

    .order-status-steps {
        padding: 1.25rem;
        margin: 1.5rem 0;
    }

    .step-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    .step-label {
        font-size: 0.8rem;
    }

    .contact-info {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        margin: 1.5rem 0;
    }

    .back-to-home-btn {
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
    }
}

/* Responsivo para móviles pequeños */
@media (max-width: 480px) {
    .order-confirmation-modal {
        padding: 0.5rem;
    }

    .order-confirmation-content {
        padding: 1.5rem 1rem;
        border-radius: 14px;
        max-width: 95%;
    }

    .order-confirmation-content h2 {
        font-size: 1.4rem;
        margin-bottom: 0.5rem;
    }

    .confirmation-message {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .confirmation-icon {
        font-size: 3.5rem;
    }

    .confirmation-icon-glow {
        width: 100px;
        height: 100px;
    }

    .order-status-steps {
        padding: 1rem;
        margin: 1.25rem 0;
        gap: 0.75rem;
    }

    .step-icon {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }

    .step-label {
        font-size: 0.75rem;
    }

    .step-divider {
        flex: 0.3;
        height: 1.5px;
        margin: 0 0.25rem;
    }

    .order-reference {
        margin: 1.25rem 0;
        padding: 0.75rem;
    }

    .reference-label {
        font-size: 0.8rem;
    }

    .reference-number {
        font-size: 1.2rem;
        letter-spacing: 1px;
    }

    .contact-info {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        margin: 1.25rem 0;
    }

    .contact-item {
        padding: 0.75rem;
        gap: 0.75rem;
    }

    .contact-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .contact-label {
        font-size: 0.7rem;
    }

    .contact-value {
        font-size: 0.9rem;
    }

    .confirmation-actions {
        margin-top: 1.5rem;
    }

    .back-to-home-btn {
        padding: 0.85rem 1.25rem;
        font-size: 0.9rem;
        gap: 0.5rem;
    }
}


/* Notificaciones del carrito */
.cart-notification {
    background: var(--menta-pastel);
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--negro);
    padding: 1.1rem 1.2rem;
    border-radius: var(--borde-radius);
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 3001;
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
}

.cart-notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(-10px);
}

.cart-notification.notification-success {
    background: var(--menta-pastel);
    color: var(--negro);
}

.cart-notification.notification-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.cart-notification p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--negro) 0%, var(--negro-claro) 100%);
    color: var(--blanco);
    padding: 40px 20px;
    font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    position: relative;
    width: 100%;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-section {
    flex: 1;
    min-width: 250px;
}

.footer-brand {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--blanco);
    letter-spacing: 1px;
}

.footer-tagline {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    margin: 0;
}

.footer-divider {
    width: 1px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
}

.footer-info {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-info i {
    width: 16px;
    opacity: 0.8;
}

.footer-credits {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 6px 0;
    letter-spacing: 0.3px;
}

.footer-developer {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.footer-developer strong {
    color: var(--color-accent-primary);
    font-weight: 600;
}

.footer-heading {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--blanco);
    letter-spacing: 0.5px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-accent-primary);
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--blanco);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--color-accent-primary);
    transform: translateY(-2px);
}

.social-link i {
    font-size: 14px;
}

/* Botón flotante WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    z-index: 999;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}

.whatsapp-icon {
    width: 36px;
    height: 36px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    background: #075E54;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
}
/* ========== IMAGEN DE MONEDA - ZELLE ========== */

.currency-icon {
    display: inline-block;
    height: 1em;
    width: auto;
    vertical-align: -0.125em;
    margin: 0 0.2rem;
    object-fit: contain;
}

/* Variantes de tamaño para diferentes contextos */

/* Para precios normales en productos */
.currency-icon.price-sm {
    height: 0.9em;
}

/* Para precios grandes en detalle */
.currency-icon.price-lg {
    height: 1.1em;
    margin: 0 0.25rem;
}

/* Para best-sellers */
.currency-icon.price-xs {
    height: 0.8em;
}

/* ========== CATEGORY CARD COMPONENT ========== */

/* Contenedor de la sección */
.category-card-section {
    padding: 1.5rem 0;
    background: linear-gradient(180deg, var(--gris-claro) 0%, var(--blanco) 100%);
    margin: 1.5rem 0;
}

.category-card-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.category-card {
    background: var(--blanco);
    border: 1px solid #e8e8e8;
    border-radius: var(--borde-radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 1.2rem;
    transition: var(--transicion-lenta);
    width: 100%;
}

.category-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Card Header */
.category-card-header {
    margin-bottom: 1.2rem;
}

.category-card-title {
    font-family: 'Segoe UI', system-ui, sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--negro);
    margin: 0;
    line-height: 1.3;
}

/* Card Body - Grid Layout */
.category-card-body {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.2rem;
}

/* Item dentro del grid */
.category-card-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: var(--transicion);
}

.category-card-item:hover {
    transform: scale(1.05);
}

/* Contenedor de imagen */
.category-card-image-container {
    width: 100%;
    aspect-ratio: 1;
    background-color: #f7f8f8;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transicion);
}

.category-card-image-container:hover {
    background-color: #f0f1f1;
}

.category-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transicion);
}

.category-card-item:hover .category-card-image {
    transform: scale(1.08);
}

/* Etiqueta de texto */
.category-card-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--negro);
    line-height: 1.4;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

/* Card Footer */
.category-card-footer {
    border-top: 1px solid #f0f0f0;
    padding-top: 1rem;
    text-align: center;
}

.category-card-link {
    display: inline-block;
    color: #007185;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: var(--transicion);
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
    font-family: inherit;
}

.category-card-link:hover {
    color: #C7511F;
    text-decoration: underline;
}

/* Estado oculto */
.category-card-section.hidden {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .category-card-section {
        padding: 1.2rem 0;
        margin: 1rem 0;
    }

    .category-card-container {
        padding: 0 1rem;
    }

    .category-card {
        padding: 1rem;
    }

    .category-card-title {
        font-size: 16px;
    }

    .category-card-body {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
        margin-bottom: 1rem;
    }

    .category-card-label {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .category-card-section {
        padding: 1rem 0;
        margin: 0.8rem 0;
    }

    .category-card-container {
        padding: 0;
    }

    .category-card {
        padding: 0.8rem;
        margin: 0;
        border-radius: 8px;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    }

    .category-card-header {
        margin-bottom: 1rem;
    }

    .category-card-title {
        font-size: 14px;
    }

    .category-card-body {
        gap: 0.6rem;
        margin-bottom: 0.8rem;
    }

    .category-card-image-container {
        margin-bottom: 0.4rem;
    }

    .category-card-label {
        font-size: 13px;
    }

    .category-card-footer {
        padding-top: 0.8rem;
    }

    .category-card-link {
        font-size: 15px;
    }
}

/* ========== PACKS DETAIL - ESTILO AMAZON ========== */

.packs-detail {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.packs-detail.active {
    display: block;
}

/* Header del panel de packs */
.packs-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 0 1.5rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.packs-detail-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--negro);
    margin: 0;
}

.packs-detail-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--negro);
    transition: var(--transicion);
    padding: 0.5rem;
}

.packs-detail-close:hover {
    color: var(--rojo-oferta);
}

/* Grid de packs estilo Amazon */
.packs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Tarjeta de pack estilo Amazon */
.pack-card {
    background: var(--blanco);
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    padding: 12px;
    transition: all 0.2s ease-out;
    cursor: pointer;
}

.pack-card:hover {
    border-color: #999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* Badges en la tarjeta */
.pack-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 8px;
    min-height: 20px;
}

.pack-badge {
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 2px;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
}

.pack-badge.top {
    background: #2C2C2C;
    color: white;
}

.pack-badge.oferta {
    background: #C00;
    color: white;
}

.pack-badge.nuevo {
    background: #007185;
    color: white;
}

/* Imagen del pack */
.pack-img-container {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    background: #f7f8f8;
    border-radius: 4px;
    overflow: hidden;
}

.pack-img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

/* Nombre del pack */
.pack-name {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    height: 42px;
    overflow: hidden;
    margin: 0 0 6px 0;
    color: #007185;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.pack-name:hover {
    color: #C45500;
}

/* Descripción del pack */
.pack-desc {
    font-size: 12px;
    color: #565959;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    line-height: 1.4;
}

/* Contenido/características */
.pack-content-box {
    background: #f7f8f8;
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 12px;
    border: 1px solid #e8e8e8;
    flex-grow: 1;
}

.pack-content-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--negro);
    margin-bottom: 6px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pack-content-list {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 12px;
}

.pack-content-item {
    display: flex;
    gap: 6px;
    padding: 3px 0;
    color: var(--negro);
}

.pack-content-item::before {
    content: "•";
    color: var(--rojo-oferta);
    font-weight: bold;
    flex-shrink: 0;
}

/* Sección de precio */
.pack-price-section {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #e8e8e8;
}

.pack-price {
    color: var(--precio);
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: flex-start;
    gap: 2px;
}

.pack-price-symbol {
    font-size: 11px;
    margin-top: 3px;
}

.pack-discount {
    font-size: 12px;
    color: #B12704;
    margin-top: 2px;
}

/* Botón agregar al carrito */
.pack-btn {
    background: var(--boton-carrito);
    border: 1px solid var(--boton-carrito-borde);
    border-radius: 20px;
    padding: 8px 12px;
    width: 100%;
    margin-top: 10px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.pack-btn:hover {
    background: #F7CA00;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.pack-btn:disabled {
    background: #f0f2f2;
    border-color: #d5d9d9;
    color: #565959;
    cursor: not-allowed;
    box-shadow: none;
}

/* Botón "Volver" */
.back-button-packs {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: 1px solid #e8e8e8;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    color: #007185;
    font-size: 14px;
    font-weight: 600;
    margin: 1rem 1.5rem;
    transition: var(--transicion);
}

.back-button-packs:hover {
    border-color: #007185;
    background: #f7f8f8;
}

/* Responsive para packs detail */
@media (max-width: 1024px) {
    .packs-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 1.2rem;
        padding: 0 1rem;
    }
}

@media (max-width: 768px) {
    .packs-detail-header {
        padding: 0 1rem;
        margin-bottom: 1.5rem;
    }

    .packs-detail-title {
        font-size: 22px;
    }

    .packs-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 1rem;
        padding: 0 1rem;
    }

    .pack-card {
        padding: 10px;
    }

    .pack-img-container {
        height: 150px;
        margin-bottom: 8px;
    }

    .pack-name {
        font-size: 13px;
        height: 36px;
    }

    .pack-desc {
        font-size: 11px;
    }

    .pack-content-box {
        padding: 8px;
        margin-bottom: 10px;
    }

    .pack-content-title {
        font-size: 10px;
        margin-bottom: 4px;
    }

    .pack-content-item {
        font-size: 11px;
        padding: 2px 0;
    }

    .pack-price {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .packs-detail-header {
        padding: 0;
        margin-bottom: 1rem;
        margin-left: 0;
        margin-right: 0;
    }

    .packs-detail-title {
        font-size: 18px;
        padding-left: 1rem;
    }

    .packs-detail-close {
        margin-right: 1rem;
    }

    .packs-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 0.2rem;
        padding: 0;
        margin: 0;
    }

    .pack-card {
        padding: 8px;
        margin: 0 0.4rem;
    }

    .pack-img-container {
        height: 120px;
    }

    .pack-name {
        font-size: 12px;
        height: 32px;
    }

    .pack-desc {
        font-size: 10px;
        margin-bottom: 8px;
    }

    .pack-content-box {
        padding: 6px;
        margin-bottom: 8px;
    }

    .pack-content-title {
        font-size: 9px;
    }

    .pack-content-item {
        font-size: 10px;
    }

    .pack-price {
        font-size: 16px;
    }

    .pack-btn {
        font-size: 12px;
        padding: 6px 10px;
    }

    .back-button-packs {
        margin: 0.8rem 0.4rem;
        padding: 6px 12px;
        font-size: 12px;
    }
}