/**
 * Estilos para el Sistema de Carrito de Cotización
 */

/* Banner Promocional Lateral */
.promo-banner-lateral {
    position: fixed;
    top: 50%;
    left: -380px;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 25px 20px;
    border-radius: 0 12px 12px 0;
    box-shadow: 4px 4px 20px rgba(0, 0, 0, 0.2);
    z-index: 9997;
    width: 320px;
    transition: left 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 3px solid #fbbf24;
    border-left: none;
    overflow: hidden; /* Evita que el contenido se desborde cuando está oculto */
}

.promo-banner-lateral.mostrar {
    left: 0;
}

/* Ocultar el contenido cuando el banner está colapsado */
.promo-banner-content {
    display: none; /* Usar display none para ocultar completamente */
}

.promo-banner-lateral.mostrar .promo-banner-content {
    display: block; /* Mostrar cuando tiene clase mostrar */
    animation: fadeIn 0.3s ease 0.2s both; /* Animación de entrada */
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.promo-banner-toggle {
    position: absolute;
    right: -45px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border: 3px solid #fbbf24;
    border-left: none;
    padding: 20px 12px;
    border-radius: 0 12px 12px 0;
    cursor: pointer;
    font-size: 20px;
    box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-weight: 700;
    letter-spacing: 1px;
}

.promo-banner-toggle:hover {
    right: -48px;
    box-shadow: 6px 6px 16px rgba(0, 0, 0, 0.3);
}

.promo-banner-content {
    text-align: center;
}

.promo-banner-icon {
    font-size: 48px;
    margin-bottom: 15px;
    animation: bouncePromo 2s infinite;
}

@keyframes bouncePromo {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.promo-banner-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.promo-banner-discount {
    font-size: 48px;
    font-weight: 900;
    margin: 15px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.promo-banner-text {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 15px;
    font-weight: 500;
}

.promo-banner-cta {
    background: white;
    color: #d97706;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 15px;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.promo-banner-badge {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    border-radius: 8px;
    padding: 10px;
    margin-top: 15px;
    font-size: 13px;
    font-weight: 600;
}

/* Widget Flotante */
.carrito-widget {
    position: fixed;
    bottom: 100px;
    right: 30px;
    z-index: 9998;
    animation: slideInRight 0.3s ease;
}

.carrito-widget-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    text-decoration: none;
    font-size: 24px;
    transition: all 0.3s ease;
    position: relative;
}

.carrito-widget-btn:hover {
    background: var(--secondary);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.carrito-contador {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc2626;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    border: 2px solid white;
}

/* Notificación */
.carrito-notificacion {
    position: fixed;
    top: 100px;
    right: -450px;
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    padding: 20px 28px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(22, 163, 74, 0.4);
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 9999;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 3px solid #22c55e;
    max-width: 400px;
    min-width: 320px;
}

.carrito-notificacion.mostrar {
    right: 30px;
    animation: bounceNotification 0.6s ease-out;
}

@keyframes bounceNotification {
    0% {
        transform: translateX(500px) scale(0.8);
        opacity: 0;
    }
    60% {
        transform: translateX(-20px) scale(1.05);
        opacity: 1;
    }
    80% {
        transform: translateX(10px) scale(0.98);
    }
    100% {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

.carrito-notificacion i {
    color: white;
    font-size: 28px;
    animation: pulseIcon 0.8s ease-in-out infinite;
}

@keyframes pulseIcon {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

.carrito-notificacion span {
    color: white;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.4;
}

/* Botón Agregar a Cotización */
.btn-agregar-cotizacion {
    background: var(--primary);
    color: white;
    border: 2px solid var(--primary);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    justify-content: center;
}

.btn-agregar-cotizacion:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.btn-agregar-cotizacion i {
    font-size: 16px;
}

/* Página del Carrito */
.carrito-vacio {
    text-align: center;
    padding: 80px 20px;
}

.carrito-vacio-icon {
    font-size: 80px;
    color: var(--text-light);
    margin-bottom: 24px;
}

/* Lista de productos estilo Card */
.carrito-productos-lista {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.producto-card {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 20px;
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 20px;
    align-items: start;
    transition: all 0.3s ease;
}

.producto-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.producto-card-imagen {
    width: 120px;
    height: 120px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.producto-card-imagen img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.producto-card-info {
    flex: 1;
    min-width: 0;
}

.producto-card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 16px;
    margin-bottom: 12px;
}

.producto-card-header h4 {
    margin: 8px 0 4px 0;
    font-size: 16px;
    color: var(--secondary);
    line-height: 1.4;
}

.producto-modelo {
    margin: 0;
    font-size: 14px;
    color: var(--text-light);
}

.producto-card-acciones {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-end;
    min-width: 200px;
}

.precio-info,
.cantidad-section,
.subtotal-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.precio-label,
.cantidad-label,
.subtotal-label {
    font-size: 12px;
    color: var(--text-light);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.precio-unitario {
    font-size: 16px;
    font-weight: 600;
    color: var(--secondary);
}

.subtotal-precio {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.cantidad-section .cantidad-control {
    margin-top: 4px;
}

/* Tabla antigua (mantener para compatibilidad) */
.carrito-tabla {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 30px;
}

.carrito-tabla table {
    width: 100%;
    border-collapse: collapse;
}

.carrito-tabla thead {
    background: var(--bg-light);
}

.carrito-tabla th {
    padding: 16px;
    text-align: left;
    font-weight: 600;
    color: var(--secondary);
    border-bottom: 2px solid #e5e7eb;
}

.carrito-tabla td {
    padding: 16px;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: middle;
}

.carrito-tabla tbody tr:hover {
    background: #f9fafb;
}

.producto-info {
    display: flex;
    gap: 16px;
    align-items: center;
}

.producto-imagen {
    width: 80px;
    height: 80px;
    object-fit: contain;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 8px;
}

.producto-detalles h4 {
    margin: 0 0 4px 0;
    font-size: 16px;
    color: var(--secondary);
}

.producto-detalles p {
    margin: 0;
    font-size: 14px;
    color: var(--text-light);
}

.producto-marca {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    margin-top: 4px;
}

.cantidad-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cantidad-control button {
    width: 32px;
    height: 32px;
    border: 1px solid #cbd5e1;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cantidad-control button:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.cantidad-control input {
    width: 60px;
    text-align: center;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    padding: 6px;
    font-weight: 600;
}

.btn-eliminar {
    background: #fee2e2;
    color: #dc2626;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-eliminar:hover {
    background: #dc2626;
    color: white;
}

.carrito-resumen {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 24px;
    position: sticky;
    top: 20px;
}

.carrito-resumen h3 {
    margin: 0 0 20px 0;
    color: var(--secondary);
}

.resumen-linea {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
}

.resumen-linea:last-child {
    border-bottom: none;
}

.resumen-linea.total {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    padding-top: 16px;
    margin-top: 8px;
    border-top: 2px solid var(--primary);
}

.carrito-acciones {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.btn-vaciar {
    flex: 1;
    background: white;
    color: #dc2626;
    border: 2px solid #dc2626;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-vaciar:hover {
    background: #dc2626;
    color: white;
}

.btn-cotizar {
    flex: 2;
    background: var(--primary);
    color: white;
    border: 2px solid var(--primary);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    display: inline-block;
}

.btn-cotizar:hover {
    background: var(--secondary);
    border-color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Formulario de Cotización */
.formulario-cotizacion {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 32px;
    margin-top: 30px;
}

.formulario-cotizacion h3 {
    margin: 0 0 24px 0;
    color: var(--secondary);
}

.form-grupo {
    margin-bottom: 20px;
}

.form-grupo label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--secondary);
}

.form-grupo input,
.form-grupo textarea,
.form-grupo select {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.2s ease;
}

.form-grupo input:focus,
.form-grupo textarea:focus,
.form-grupo select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(51, 108, 197, 0.1);
}

.form-grupo textarea {
    min-height: 100px;
    resize: vertical;
}

.form-grupo small {
    display: block;
    margin-top: 4px;
    color: var(--text-light);
    font-size: 13px;
}

.form-requerido {
    color: #dc2626;
}

.btn-enviar-cotizacion {
    background: var(--primary);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-enviar-cotizacion:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-enviar-cotizacion:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
    transform: none;
}

/* Responsive */
@media (max-width: 768px) {
    .promo-banner-lateral {
        left: -340px;
        width: 280px;
        padding: 20px 15px;
        overflow: hidden; /* Asegurar overflow en mobile */
    }

    .promo-banner-toggle {
        right: -40px;
        padding: 15px 10px;
        font-size: 16px;
    }

    .promo-banner-icon {
        font-size: 36px;
    }

    .promo-banner-title {
        font-size: 18px;
    }

    .promo-banner-discount {
        font-size: 36px;
    }

    .promo-banner-text {
        font-size: 14px;
    }

    .promo-banner-cta {
        font-size: 12px;
        padding: 10px 16px;
    }

    .carrito-widget {
        bottom: 80px;
        right: 20px;
    }

    .carrito-widget-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    /* Cards responsive */
    .producto-card {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .producto-card-imagen {
        width: 100%;
        height: 150px;
    }

    .producto-card-acciones {
        width: 100%;
        align-items: stretch;
    }

    .precio-info,
    .cantidad-section,
    .subtotal-section {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .subtotal-section {
        padding-top: 12px;
        border-top: 2px solid var(--primary);
    }

    /* Tabla antigua */
    .carrito-tabla {
        overflow-x: auto;
    }

    .carrito-tabla table {
        min-width: 600px;
    }

    .producto-imagen {
        width: 60px;
        height: 60px;
    }

    .carrito-notificacion {
        min-width: auto;
        max-width: none;
    }

    .carrito-notificacion.mostrar {
        right: 15px;
        left: 15px;
    }

    .carrito-notificacion span {
        font-size: 15px;
    }

    .carrito-notificacion i {
        font-size: 24px;
    }

    .carrito-acciones {
        flex-direction: column;
    }

    .btn-vaciar,
    .btn-cotizar {
        flex: none;
        width: 100%;
    }
}

/* Badge de Stock */
.stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 4px;
}

.stock-badge.disponible {
    background: #d1fae5;
    color: #065f46;
}

.stock-badge.limitado {
    background: #fef3c7;
    color: #92400e;
}

.stock-badge.agotado {
    background: #fee2e2;
    color: #991b1b;
}

/* Badge de Garantía */
.garantia-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    background: #e0e7ff;
    color: #3730a3;
    margin-left: 8px;
}

/* Características en el carrito */
.producto-caracteristicas {
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-light);
}

.producto-caracteristicas ul {
    margin: 4px 0 0 0;
    padding-left: 16px;
    list-style: none;
}

.producto-caracteristicas li {
    padding: 2px 0;
    position: relative;
}

.producto-caracteristicas li:before {
    content: "✓";
    color: #16a34a;
    font-weight: bold;
    position: absolute;
    left: -16px;
}

/* Botón de info del producto */
.btn-info-producto {
    background: transparent;
    border: none;
    color: var(--primary);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-size: 14px;
}

.btn-info-producto:hover {
    background: var(--bg-light);
}

/* Modal de detalles del producto */
.modal-producto {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    overflow-y: auto;
    padding: 20px;
}

.modal-producto.activo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-contenido {
    background: white;
    border-radius: 16px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

.modal-header {
    padding: 24px;
    border-bottom: 2px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: sticky;
    top: 0;
    background: white;
    z-index: 1;
    border-radius: 16px 16px 0 0;
}

.modal-header h3 {
    margin: 0;
    color: var(--secondary);
    flex: 1;
    padding-right: 20px;
}

.modal-marca {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.modal-marca img {
    height: 30px;
    object-fit: contain;
}

.btn-cerrar-modal {
    background: #f3f4f6;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--secondary);
    transition: all 0.2s ease;
}

.btn-cerrar-modal:hover {
    background: #dc2626;
    color: white;
    transform: rotate(90deg);
}

.modal-body {
    padding: 24px;
}

.modal-galeria {
    margin-bottom: 24px;
}

.galeria-principal {
    width: 100%;
    height: 400px;
    object-fit: contain;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
}

.galeria-miniaturas {
    display: flex;
    gap: 12px;
    margin-top: 12px;
    overflow-x: auto;
    padding: 8px 0;
}

.miniatura {
    width: 80px;
    height: 80px;
    object-fit: contain;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.miniatura:hover,
.miniatura.activa {
    border-color: var(--primary);
}

.modal-info-rapida {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 8px;
    margin-bottom: 24px;
}

.info-item {
    text-align: center;
}

.info-item-icon {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 8px;
}

.info-item-label {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 4px;
}

.info-item-valor {
    font-weight: 700;
    color: var(--secondary);
    font-size: 14px;
}

.modal-seccion {
    margin-bottom: 24px;
}

.modal-seccion h4 {
    color: var(--secondary);
    margin: 0 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary);
    font-size: 18px;
}

.caracteristicas-grid {
    display: grid;
    gap: 8px;
}

.caracteristica-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 6px;
}

.caracteristica-item i {
    color: #16a34a;
    margin-top: 2px;
}

.descripcion-producto {
    color: var(--text);
    line-height: 1.6;
}

.descripcion-producto ul,
.descripcion-producto ol {
    padding-left: 24px;
}

.descripcion-producto img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 16px 0;
}

.recursos-lista {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.recurso-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    text-decoration: none;
    color: var(--primary);
    transition: all 0.2s ease;
}

.recurso-link:hover {
    background: var(--primary);
    color: white;
}

.dimensiones-box {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
}

.dimension-item {
    flex: 1;
    text-align: center;
}

.dimension-item-valor {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.dimension-item-unidad {
    font-size: 12px;
    color: var(--text-light);
}

/* Vista enriquecida en tabla del carrito */
.producto-info-enriquecida {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.producto-imagen-container {
    position: relative;
}

.producto-imagen-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.producto-detalles-enriquecidos {
    flex: 1;
}

.producto-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

/* Animaciones */
@keyframes slideInRight {
    from {
        transform: translateX(100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes modalSlideIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-producto {
        padding: 0;
    }

    .modal-contenido {
        max-height: 100vh;
        border-radius: 0;
    }

    .modal-header {
        border-radius: 0;
    }

    .galeria-principal {
        height: 300px;
    }

    .modal-info-rapida {
        grid-template-columns: repeat(2, 1fr);
    }

    .dimensiones-box {
        flex-direction: column;
    }
}

/* Sección Usuario Adicional (reemplaza cantidad en productos CONTPAQi) */
.usuario-adicional-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.btn-usuario-adicional {
    background: linear-gradient(135deg, #0055A4 0%, #003d7a 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 8px rgba(0, 85, 164, 0.2);
    font-size: 14px;
    white-space: nowrap;
}

.btn-usuario-adicional:hover {
    background: linear-gradient(135deg, #003d7a 0%, #002d5c 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 85, 164, 0.3);
}

.btn-usuario-adicional:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 85, 164, 0.2);
}

.btn-usuario-adicional i {
    font-size: 18px;
    flex-shrink: 0;
    display: inline-block;
}

.btn-usuario-adicional span {
    font-size: 14px;
    line-height: 1.2;
    display: inline-block;
}

/* Responsive para botón usuario adicional */
@media (max-width: 768px) {
    .usuario-adicional-section {
        width: 100%;
        align-items: stretch;
    }

    .btn-usuario-adicional {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        font-size: 15px;
    }
}

/* ===================================================================
   SISTEMA HÍBRIDO DE BOTONES - Vista Rápida y Ver Completo
   =================================================================== */

/* Botón Vista Rápida - Estilo secundario para modal */
.btn-vista-rapida {
    padding: 10px 16px;
    background: #f3f4f6;
    color: #374151;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    white-space: nowrap;
}

.btn-vista-rapida:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
    color: #1f2937;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-vista-rapida:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-vista-rapida i {
    font-size: 14px;
}

/* Botón Ver Completo - Estilo primario para navegación */
.btn-ver-completo {
    padding: 10px 16px;
    background: white;
    color: var(--primary, #667eea);
    border: 2px solid var(--primary, #667eea);
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    white-space: nowrap;
}

.btn-ver-completo:hover {
    background: var(--primary, #667eea);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-ver-completo:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.2);
}

.btn-ver-completo i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.btn-ver-completo:hover i {
    transform: translateX(3px);
}

/* Responsive para botones híbridos */
@media (max-width: 768px) {
    .btn-vista-rapida,
    .btn-ver-completo {
        font-size: 12px;
        padding: 8px 12px;
        gap: 4px;
    }

    .btn-vista-rapida i,
    .btn-ver-completo i {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .btn-vista-rapida,
    .btn-ver-completo {
        font-size: 11px;
        padding: 8px 10px;
    }
}

/* ===================================================================
   MODAL Y BOTÓN DE SYSCOM - Ficha Técnica
   =================================================================== */

/* Botón para abrir modal de Syscom en página de producto */
.btn-syscom-modal {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    color: var(--primary, #667eea);
    border: 2px solid var(--primary, #667eea);
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    margin-top: 10px;
}

.btn-syscom-modal:hover {
    background: var(--primary, #667eea);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.btn-syscom-modal:active {
    transform: translateY(0);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.2);
}

.btn-syscom-modal i {
    font-size: 18px;
}

/* Estilos específicos para el modal de Syscom */
.modal-syscom .modal-contenido {
    animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Container de información de Syscom */
.syscom-info-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Secciones de información */
.syscom-info-container .info-section {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.syscom-info-container .info-section:nth-child(1) {
    animation-delay: 0.1s;
}

.syscom-info-container .info-section:nth-child(2) {
    animation-delay: 0.2s;
}

.syscom-info-container .info-section:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover effect para el botón de cerrar del modal Syscom */
.modal-syscom .modal-header button:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    transform: rotate(90deg);
}

/* Responsive para modal de Syscom */
@media (max-width: 768px) {
    .modal-syscom .modal-contenido {
        max-width: 95% !important;
        margin: 20px;
    }

    .syscom-info-container > div:first-child {
        flex-direction: column;
    }

    .syscom-info-container > div:first-child > div:first-child {
        flex: 1 1 100% !important;
        max-width: 100%;
    }

    .btn-syscom-modal {
        font-size: 14px;
        padding: 12px 16px;
    }
}

@media (max-width: 480px) {
    .modal-syscom .modal-body {
        padding: 20px !important;
    }

    .btn-syscom-modal {
        font-size: 13px;
        padding: 10px 14px;
    }

    .syscom-info-container h4 {
        font-size: 20px !important;
    }

    .syscom-info-container h5 {
        font-size: 16px !important;
    }
}
