/* Variables CSS */
:root {
    --primary-color: #6c757d;
    --secondary-color: #495057;
    --background-color: #ffffff;
    --card-bg: #f8f9fa;
    --border-color: #dee2e6;
}

/* Estilos generales */
body {
    background-color: var(--background-color);
    color: #333;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Header */
.header {
    padding: 20px 40px;
    background-color: var(--card-bg);
    border-bottom: 2px solid var(--border-color);
}

.header-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    max-width: 100px;
    height: auto;
}

.header h1 {
    color: var(--secondary-color);
    font-weight: 600;
    margin: 0;
    font-size: 1.7rem;
}

.header-right {
    /*display: flex;*/
    display: none;
    align-items: center;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-welcome {
    color: var(--secondary-color);
    font-size: 1rem;
}

.user-welcome strong {
    color: #667eea;
}

.btn-login-header,
.btn-logout {
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-login-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

.btn-login-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    color: white;
}

.btn-my-requests {
    padding: 10px 20px;
    background-color: #565e64;
    color: white;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-my-requests:hover {
    background-color: #303538;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(23, 162, 184, 0.4);
    color: white;
    text-decoration: none;
}

.btn-logout {
    background-color: #dc3545;
    color: white;
    border: none;
}

.btn-logout:hover {
    background-color: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.4);
    color: white;
}

/* Banner informativo para usuarios no logueados */
.login-info-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.95rem;
}

.banner-content i {
    font-size: 1.2rem;
}

.banner-link {
    color: white;
  
    font-weight: 600;
    transition: opacity 0.3s;
}

.banner-link:hover {
    color: white;
    opacity: 0.8;
}

/* Contenedor de filtros */
.filters-container {
    background-color: var(--card-bg);
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Cabecera de filtros */
.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.filters-header-main {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
}

/* Botón toggle de filtros (oculto en desktop) */
.toggle-filters-btn {
    display: none;
    padding: 5px;
    border: 2px solid var(--primary-color);
    background-color: var(--primary-color);
    color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    /*font-weight: 500;*/
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
}

.toggle-filters-btn:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.toggle-icon {
    transition: transform 0.3s;
    font-size: 0.8rem;
}

.toggle-filters-btn.active .toggle-icon {
    transform: rotate(180deg);
}

/* Contenedor colapsable de filtros */
.filters-collapsible {
    overflow: hidden;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
}

.filters-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

/* Botón de categorías */
.category-btn {
    padding: 8px 16px;
    border: 2px solid var(--primary-color);
    background-color: var(--background-color);
    color: var(--primary-color);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    white-space: nowrap;
}

.category-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.category-btn.active {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
}

/* Botón de favoritos */
.favorites-btn {
    border-color: #dc3545;
    color: #dc3545;
}

.favorites-btn:hover {
    background-color: #dc3545;
    color: white;
}

.favorites-btn.active {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
}

.favorites-count {
    font-weight: 700;
}

/* Botón de limpiar filtros */
.clear-filter-btn {
    border-color: #ff9800;
    color: #ff9800;
    display: none; /* Oculto por defecto */
}

.clear-filter-btn:hover {
    background-color: #ff9800;
    color: white;
}

.clear-filter-btn.visible {
    display: inline-block;
}

/* Grupos de filtros */
.filter-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.filter-group label {
    font-weight: 600;
    color: var(--secondary-color);
    margin: 0;
    white-space: nowrap;
}

.filter-group select,
.filter-group input[type="text"] {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background-color: white;
    color: var(--secondary-color);
    min-width: 200px;
}

.filter-group input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(108, 117, 125, 0.25);
}

/* Grupo de búsqueda más ancho */
.search-group input[type="text"] {
    min-width: 250px;
}

/* Contador de imágenes */
.images-counter {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    margin: 20px 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.images-counter i {
    font-size: 1.2rem;
}

.images-counter .filter-indicator {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 12px;
    margin-left: 8px;
    font-size: 0.9rem;
}

/* Galería */
.gallery {
    padding: 20px 0;
}

.image-card {
    margin-bottom: 30px;
    transition: transform 0.3s;
}

.image-card:hover {
    transform: translateY(-5px);
}

/* Cards */
.card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    background-color: var(--card-bg);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s, transform 0.3s;
    position: relative;
}

.card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.card.selected {
    border: 3px solid #28a745;
    box-shadow: 0 4px 16px rgba(40, 167, 69, 0.3);
}

.card-img-container {
    position: relative;
    width: 100%;
    padding-top: 75%; /* Aspect ratio 4:3 */
    background-color: #e9ecef;
    overflow: hidden;
    cursor: pointer;
}

.card-img-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Badge de reservada */
.reserved-badge {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 5px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.reserved-badge i {
    font-size: 0.8rem;
}

/* Badge de destacado */
.destacado-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #333;
    padding: 4px;
    border-radius: 5px;
    font-size: 0.70rem;
    font-weight: 700;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.destacado-badge i {
    font-size: 0.8rem;
    color: #ff6b35;
}

/* Estilos para tarjeta destacada */
.card.destacado {
    border: 3px solid #ffd700;
    background: linear-gradient(to bottom, #fffef7 0%, #f8f9fa 100%);
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3);
}

.card.destacado:hover {
    box-shadow: 0 6px 25px rgba(255, 215, 0, 0.5);
    transform: translateY(-8px);
}

.card.destacado .card-img-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05) 0%, rgba(255, 237, 78, 0.08) 100%);
    pointer-events: none;
    z-index: 1;
}

/* Si está destacado Y reservado, ajustar posición de badges */
.card.destacado.reserved .reserved-badge {
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
}

.card.destacado.reserved .destacado-badge {
    top: 10px;
    right: 10px;
}

/* Estilos para tarjeta reservada */
.card.reserved {
    opacity: 0.85;
    border: 2px solid #dc3545;
}

.card.reserved .card-img-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(220, 53, 69, 0.1);
    pointer-events: none;
}

.card.reserved:hover {
    transform: none;
    border-color: #dc3545;
}

/* Botón de favorito en la imagen */
.favorite-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.favorite-btn:hover {
    background-color: white;
    transform: scale(1.1);
}

.favorite-btn i {
    font-size: 1.2rem;
    color: #dc3545;
    transition: all 0.3s;
}

.favorite-btn.active i {
    color: #dc3545;
    animation: heartBeat 0.3s;
}

@keyframes heartBeat {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
}

/* Checkbox de solicitud */
.request-checkbox {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background-color: rgba(255, 255, 255, 0.9);
    border: 2px solid #28a745;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s;
}

.request-checkbox:hover {
    background-color: white;
    transform: scale(1.1);
}

.request-checkbox:active {
    transform: scale(0.95);
}

.request-checkbox i {
    color: #28a745;
    font-size: 1.2rem;
    display: none;
}

.request-checkbox.checked {
    background-color: #28a745;
}

.request-checkbox.checked i {
    display: block;
    color: white;
}

/* Panel de solicitud */
.request-panel {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: none;
}

.request-panel.visible {
    display: block;
    animation: slideInUp 0.3s;
}

/* Panel de solicitud superior */
.request-panel-top {
    background-color: #e8f5e9;
    border: 2px solid #28a745;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    display: none;
}

.request-panel-top.visible {
    display: block;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.request-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.request-info-text {
    flex: 1;
}

.request-info-text h3 {
    color: #28a745;
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.request-info-text h3 i {
    margin-right: 10px;
}

.request-info-text p {
    color: #495057;
    margin: 0;
    line-height: 1.6;
}

.checkbox-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background-color: rgba(255, 255, 255, 0.9);
    border: 2px solid #28a745;
    border-radius: 4px;
    color: white;
    font-size: 0.8rem;
    vertical-align: middle;
}

.checkbox-icon i {
    display: none;
}

@keyframes slideInUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.btn-generate-request {
    padding: 15px 30px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-generate-request:hover:not(:disabled) {
    background-color: #218838;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(40, 167, 69, 0.5);
}

.btn-generate-request:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-generate-request i {
    margin-right: 8px;
}

.card-body {
    padding: 7px;
    text-align: center;
}

.card-id {
    font-size: 0.80rem;
    font-weight: 500;
    color: var(--secondary-color);
    margin-bottom: 8px;
    background-color: #e9ecef;
    padding: 4px 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.card-escala {
    font-size: 0.9rem;
    font-weight: 600;
    color: #17a2b8;
    margin-bottom: 8px;
    padding: 4px 8px;
    border-radius: 4px;
    background-color: #d1ecf1;
    text-align: center;
}

.card-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Botón de compartir */
.share-btn {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    font-size: 1rem;
    transition: color 0.3s, transform 0.2s;
    display: inline-flex;
    align-items: center;
}

.share-btn:hover {
    color: #28a745;
    transform: scale(1.2);
}

.share-btn i {
    font-size: 1rem;
}

/* Botón de información */
.info-btn {
   /* background: none;*/
    border: none;
    color: #0d6efd;
    cursor: pointer;
    padding: 0;   
    transition: color 0.3s, transform 0.2s;
    display: inline-flex;
    align-items: center; 
}

.info-btn:hover {
    color: #667eea;
    transform: scale(1.2);
}

.info-btn i {
  font-size: 1.2rem;
 /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  background-color: #e9ecef;*/
}

.card-title {
    font-size: 1rem;
    font-weight: 500;
    color: var(--secondary-color);
    margin-bottom: 10px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

/* Contenedor de precios con oferta */
.price-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* Badge de oferta */
.offer-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(238, 90, 82, 0.3);
    /*animation: pulse-offer 2s ease-in-out infinite;*/
}

@keyframes pulse-offer {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Precio con oferta (destacado) */
.price-offer {
    font-size: 1.2rem;
    font-weight: 600;
    color: #28a745;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Precio original (tachado) */
.price-original {
    font-size: 1rem;
    font-weight: 500;
    color: #6c757d;
    text-decoration: line-through;
    opacity: 0.8;
}

/* Unidades disponibles */
.card-unidades {
    margin: 8px 0 0 0;
    text-align: center;
}

.card-unidades .badge {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
}

.card-unidades .bg-success {
    background-color: #28a745 !important;
}

/* Modal para imagen ampliada */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    overflow: auto;
}

.image-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content-custom {
    position: relative;
    max-width: 95%;
    max-height: 95vh;
    margin: auto;
}

.modal-content-custom img {
    width: 100%;
    height: auto;
    max-height: 95vh;
    object-fit: contain;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    background-color: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.close-modal:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Modal de solicitud */
.request-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    overflow: auto;
}

.request-modal.active {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 0px 0px;
    overflow-y: auto;
}

.request-modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    animation: slideIn 0.3s;
    margin: auto;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-request-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-request-modal:hover {
    color: #000;
}

.request-modal-content h2 {
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.request-modal-content h2 i {
    color: #28a745;
    margin-right: 10px;
}

.modal-subtitle {
    color: #6c757d;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group label i {
    margin-right: 8px;
    color: #28a745;
}

.required {
    color: #dc3545;
    font-weight: bold;
    margin-left: 2px;
}

.form-group input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.modal-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    justify-content: flex-end;
}

.btn-cancel {
    padding: 10px 25px;
    background-color: #6c757d;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-cancel:hover {
    background-color: #5a6268;
}

.btn-submit {
    padding: 10px 25px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-submit:hover {
    background-color: #218838;
}

.btn-submit i {
    margin-right: 8px;
}

/* Modal de confirmación de solicitud */
.confirmation-info {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.customer-data {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #dee2e6;
}

.customer-data h3,
.selected-items h3 {
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.customer-data p {
    margin: 8px 0;
    padding: 8px;
    background-color: white;
    border-radius: 4px;
    font-size: 0.95rem;
}

.customer-data p strong {
    color: var(--secondary-color);
    min-width: 80px;
    display: inline-block;
}

.confirm-items-list {
    background-color: white;
    border-radius: 8px;
    padding: 15px;
}

.confirm-item {
    display: grid;
    grid-template-columns: 40% 1fr;
    grid-template-rows: auto auto;
    gap: 10px;
    padding: 12px;
    margin-bottom: 12px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.confirm-item:hover {
    background-color: #e9ecef;
    transform: translateX(5px);
}

.confirm-item:last-child {
    margin-bottom: 0;
}

.confirm-item-img {
    grid-row: 1 / 3;
    width: 100%;
    height: auto;
    max-height: 120px;
    object-fit: contain;
    border-radius: 6px;
    border: 2px solid #dee2e6;
    background-color: white;
}

.confirm-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.confirm-item-info {
    display: contents;
}

.confirm-item-info h4 {
    grid-column: 1 / 3;
    margin: 0;
    color: var(--secondary-color);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
}

.confirm-item-info p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

.confirm-item-info .price {
    color: #28a745;
    font-weight: bold;
    font-size: 1.1rem;
}

.confirm-item-info .item-id {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Resumen de precios en modal de confirmación */
.price-summary {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
}

.price-row.shipping {
    color: #666;
    font-size: 13px;
}

.price-row.total {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 2px solid #dee2e6;
    font-size: 16px;
}

.price-value {
    font-weight: 600;
    color: #333;
}

.shipping-note {
    margin: 5px 0 10px 0;
    padding: 8px 12px;
    background: #fff3cd;
    border-left: 3px solid #ffc107;
    font-size: 12px;
    color: #856404;
    border-radius: 4px;
}

.shipping-note i {
    margin-right: 5px;
}

/* Modal de información */
.info-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    overflow: auto;
    padding: 20px 0;
}

.info-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 15px;
    max-width: 600px;
    width: 90%;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    animation: slideIn 0.3s;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    margin: auto;
}

.close-info-modal {
    position: absolute;
    top: 0px;
    right: 15px;
    color: #aaa;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-info-modal:hover {
    color: #000;
}

.info-modal-content h2 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-modal-content h2 i {
    color: #17a2b8;
}

#infoModalBody {
    color: #495057;
}

.info-id,
.info-title {
    margin-bottom: 15px;
    font-size: 1rem;
}

.info-id strong,
.info-title strong {
    color: var(--secondary-color);
    display: inline-block;
    min-width: 80px;
}

.info-description {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-left: 4px solid #17a2b8;
    border-radius: 5px;
}

.info-description strong {
    color: var(--secondary-color);
    display: block;
    margin-bottom: 10px;
}

.info-description p {
    margin: 0;
    line-height: 1.6;
}

/* Notificación de compartir */
.share-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background-color: white;
    padding: 20px 25px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 100010;
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 500px;
    min-width: 300px;
}

.share-notification.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.share-notification.success {
    border-left: 4px solid #28a745;
}

.share-notification.error {
    border-left: 4px solid #dc3545;
}

.share-notification .notification-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
}

.share-notification i.fa-check-circle,
.share-notification i.fa-exclamation-circle {
    font-size: 1.5rem;
    margin-top: 2px;
}

.share-notification.success i.fa-check-circle {
    color: #28a745;
}

.share-notification.error i.fa-exclamation-circle {
    color: #dc3545;
}

.share-notification .notification-message {
    color: var(--secondary-color);
    font-weight: 500;
    line-height: 1.5;
}

.share-notification .notification-close-btn {
    padding: 10px 30px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.2s ease;
    align-self: center;
}

.share-notification .notification-close-btn:hover {
    background-color: #0056b3;
}

.share-notification .notification-close-btn:active {
    transform: scale(0.98);
}

.share-notification .notification-close-btn i {
    font-size: 0.9rem;
}

/* Mensaje de éxito */
.success-message {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.success-message.show {
    opacity: 1;
}

.success-content {
    background: white;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.success-content i.fa-check-circle {
    color: #28a745;
    margin-bottom: 20px;
}

.success-content h2 {
    color: #28a745;
    margin-bottom: 15px;
    font-size: 2rem;
}

.success-content p {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.whatsapp-info {
    background-color: #25D366;
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.whatsapp-info i {
    color: white;
    margin-bottom: 10px;
}

.whatsapp-info p {
    color: white;
    margin: 0;
    font-weight: 500;
}

.btn-close-success {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
    margin-top: 20px;
}

.btn-close-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Responsive - Tablets */
@media (max-width: 768px) {
    .header {
        padding: 15px 20px;
    }
    
    .header-content {        
        flex-direction: column;
        gap: 15px;
        text-align: left;
    }
    
   /* .header-left {
        flex-direction: column;
        gap: 10px;
    }*/
    .header-right{
        display: none;
    }
    
    .header h1 {
        font-size: 1.3rem;
    }
    
    .logo {
        max-width: 100px;
    }
    
    .user-info {
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
        gap: 10px;
    }
    
    .filters-row {
        justify-content: center;
    }
    
    .filter-group select {
        min-width: 150px;
    }
    
    .request-info {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .btn-generate-request {
        width: 100%;
    }
    
    .close-modal {
        top: 15px;
        right: 15px;
        font-size: 30px;
        width: 40px;
        height: 40px;
    }
    
    /* Ocultar badge de destacado en tablets y móviles */
    .destacado-badge {
        display: none;
    }
}

/* Responsive - Mobile */
@media (max-width: 576px) {
    /* Banner informativo en móvil */
    .banner-content {
        font-size: 0.85rem;
        padding: 0 10px;
    }
    
    .banner-content i {
        font-size: 1rem;
    }
    
    /* Filtros colapsables en móvil */
    .filters-container {
        padding: 12px;
    }
    
    .filters-header {
        margin-bottom: 0;
    }
    
    .filters-header-main {
        flex: 1;
    }
    
    .toggle-filters-btn {
        display: inline-flex;
    }
    
    .filters-collapsible {
        max-height: 0;
        opacity: 0;
        margin-top: 0;
    }
    
    .filters-collapsible.expanded {
        max-height: 500px;
        opacity: 1;
        margin-top: 15px;
    }
    
    .filters-row {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .filter-group label {
        width: 100%;
        margin-bottom: 5px;
    }
    
    .filter-group label .label-text {
        display: none; /* Ocultar texto en labels, solo mostrar iconos */
    }
    
    .filter-group select,
    .filter-group input[type="text"] {
        width: 100%;
        min-width: 90%;
    }
    
    .category-btn .btn-text {
        display: none; /* Ocultar texto en botones de categoría en móvil */
    }
    
    .category-btn .btn-text-clear {
        display: none;
    }

    #toggleFiltersBtn .btn-text,
    #imagesCounterText .btn-text,
    #allCategoriesBtn .btn-text,
    #favoritesBtn .btn-text,
    #clearFilterBtn .btn-text-clear {
        display: none !important;
    }
    
    .category-btn {
        padding: 8px 12px;
        font-size: 0.9rem;
        min-width: auto;
    }
    
    .clear-filter-btn {
        margin-left: auto;
    }
    
    /* Reducir separación entre cards en móvil */
    .gallery .row {
        --bs-gutter-x: 0.5rem;
        --bs-gutter-y: 0.5rem;
    }
    
    .gallery .card {
        margin-bottom: 0;
    }
    
    .header h1 {
        font-size: 1.3rem;
    }
    
    .logo {
        max-width: 90px;
    }
    
    .user-info {
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
        gap: 8px;
    }
    
    .btn-login-header,
    .btn-my-requests,
    .btn-logout {
        font-size: 0.85rem;
        padding: 8px 12px;
        flex: 1;
        justify-content: center;
    }
    
    .user-welcome {
        font-size: 0.9rem;
        display: none; /* Ocultar texto de bienvenida en móvil para ahorrar espacio */
    }
    
    .filters-container {
        padding: 5px;
        margin: 5px;
    }
    
    .category-btn {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
    
    .search-group input[type="text"] {
        min-width: 100%;
    }

    
    .filter-group input[type="text"] {
         width: 100%;
        min-width: 90%;
    }
    
    .request-panel-top {
        padding: 15px;
    }
    
    .request-info-text h3 {
        font-size: 1.1rem;
    }
    
    .request-info-text p {
        font-size: 0.9rem;
    }
    
    .btn-generate-request {
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    .favorite-btn {
        width: 35px;
        height: 35px;
        top: 8px;
        right: 8px;
    }
    
    .favorite-btn i {
        font-size: 1rem;
    }
    
    .request-checkbox {
        width: 28px;
        height: 28px;
        bottom: 8px;
        right: 8px;
    }
    
    .request-checkbox i {
        font-size: 1rem;
    }
    
    .request-panel {
        bottom: 20px;
        right: 20px;
        left: 20px;
    }
    
    .btn-generate-request {
        width: 100%;
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    .request-modal-content {
        padding: 15px 10px;
        max-width: 98%;
        margin: 10px auto;
    }
    
    .request-modal-content h2 {
        font-size: 1.3rem;
    }
    
    .info-modal {
        padding: 15px;
        align-items: center;
    }
    
    .info-modal-content {
        padding: 20px;
        max-width: 95%;
        width: 95%;
        max-height: 85vh;
        margin: auto;
        overflow-y: auto;
    }
    
    .info-modal-content h2 {
        font-size: 1.4rem;
    }
    
    .share-notification {
        max-width: calc(100% - 40px);
        min-width: auto;
        width: calc(100% - 40px);
        padding: 15px 20px;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%) scale(0.8);
    }
    
    .share-notification.show {
        transform: translate(-50%, -50%) scale(1);
    }
    
    .share-notification .notification-message {
        font-size: 0.9rem;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .btn-cancel,
    .btn-submit {
        width: 100%;
    }
    
    /* Modal de confirmación responsive */
    .confirm-item {
        grid-template-columns: 40% 1fr;
        grid-template-rows: auto auto;
        gap: 8px;
        padding: 8px;
        margin-bottom: 8px;
    }
    
    .confirm-item-img {
        grid-row: 1 / 3;
        max-height: 100px;
    }
    
    .confirm-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .confirm-item-info h4 {
        font-size: 0.85rem;
        line-height: 1.2;
    }
    
    .confirm-item-info p {
        font-size: 0.8rem;
    }
    
    .confirm-item-info .price {
        font-size: 0.95rem;
    }
    
    .confirmation-info {
        padding: 0;
    }
    
    .confirmation-info .customer-data,
    .confirmation-info .selected-items,
    .confirmation-info .price-summary {
        padding: 0px;
        margin-bottom: 10px;
    }
    
    .confirmation-info .customer-data h3,
    .confirmation-info .selected-items h3 {
        font-size: 1rem;
        margin-bottom: 8px;
    }
    
    .confirmation-info .customer-data p {
        font-size: 0.9rem;
    }
    
    .confirm-items-list {
        padding: 8px;
    }
    
    .card-title {
        font-size: 0.9rem;
        min-height: 42px;
    }
    
    .card-price {
        font-size: 1.2rem;
    }
    
    .card-unidades .badge {
        font-size: 0.75rem;
        padding: 3px 8px;
    }
}

/* ========================================
   GALERÍA DE IMÁGENES MÚLTIPLES
   ======================================== */

/* Badge de contador de imágenes */
.gallery-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-badge:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.gallery-badge i {
    font-size: 0.85em;
}

/* Badge de contador de videos */
.video-badge {
    position: absolute;
    top: 50px;
    left: 10px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-badge:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    background: linear-gradient(135deg, #f5576c 0%, #f093fb 100%);
}

.video-badge i {
    font-size: 0.85em;
}

/* Overlay para galería en card */
.card-image-container {
    position: relative;
    overflow: hidden;
}

/* Animación al hacer hover en card con galería */
.card-image-container:hover .gallery-badge {
    transform: scale(1.15);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* Galería personalizada - Modal overlay */
#custom-gallery-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 99999;
    justify-content: center;
    align-items: center;
}

#custom-gallery-overlay.active {
    display: flex;
}

.gallery-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 60px 20px 20px;
    box-sizing: border-box;
    gap: 15px;
}

.gallery-image-wrapper {
    position: relative;
    display: inline-block;
    max-width: 100%;
    max-height: 100%;
    overflow: visible;
    touch-action: pan-x pan-y pinch-zoom;
}

.gallery-image {
    max-width: 90vw;
    max-height: calc(100vh - 180px);
    width: auto;
    height: auto;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
    transition: transform 0.1s ease-out;
    cursor: default;
}

.gallery-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    z-index: 100003;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    padding: 0;
}

.gallery-close svg {
    width: 20px;
    height: 20px;
}

.gallery-close:hover {
    background-color: #fff;
    transform: scale(1.1);
}

.gallery-close:hover svg {
    stroke: #000;
}

.gallery-close:active {
    transform: scale(0.95);
}

.gallery-prev,
.gallery-next {
    position: absolute;
    bottom: 10px;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    z-index: 100002;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    padding: 0;
}

.gallery-prev svg,
.gallery-next svg {
    width: 20px;
    height: 20px;
}

.gallery-prev:hover,
.gallery-next:hover {
    background-color: #fff;
    transform: scale(1.1);
}

.gallery-prev:hover svg,
.gallery-next:hover svg {
    stroke: #000;
}

.gallery-prev:active,
.gallery-next:active {
    transform: scale(0.95);
}

.gallery-prev {
    left: 10px;
}

.gallery-next {
    right: 10px;
}

.gallery-footer {
    position: relative;
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 25px;
    z-index: 100001;
    display: flex;
    gap: 15px;
    align-items: center;
    max-width: 90%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.gallery-counter {
    background-color: rgba(255, 255, 255, 0.95);
    color: #333;
    padding: 6px 14px;
    border-radius: 15px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.gallery-title {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    /*max-width: 400px;*/
    line-height: 1.4;
}

/* Estilos responsive para móvil */
@media (max-width: 768px) {
    .gallery-container {
        padding: 50px 10px 20px;
        gap: 10px;
    }
    
    .gallery-image {
        max-width: 95vw;
        max-height: calc(100vh - 200px);
    }
    
    .gallery-close {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
    }
    
    .gallery-close svg {
        width: 18px;
        height: 18px;
    }
    
    .gallery-prev,
    .gallery-next {
        bottom: 10px;
        width: 35px;
        height: 35px;
    }
    
    .gallery-prev svg,
    .gallery-next svg {
        width: 18px;
        height: 18px;
    }
    
    .gallery-footer {
        padding: 10px 15px;
        flex-direction: column;
        gap: 8px;
        max-width: 95%;
    }
    
    .gallery-title {
        font-size: 13px;
        max-width: 100%;
        text-align: center;
        line-height: 1.4;
    }
    
    .gallery-counter {
        font-size: 12px;
        padding: 5px 12px;
    }
    
    .video-badge {
        top: 10px;
        left: auto;
        right: 10px;
        font-size: 0.7rem;
        padding: 3px 8px;
    }
}

/* Mobile horizontal (landscape) */
@media (max-width: 768px) and (orientation: landscape) {
    .gallery-container {
        padding: 40px 10px 60px;
    }
    
    .gallery-image {
        max-height: calc(100vh - 120px);
    }
    
    .gallery-footer {
        flex-direction: row;
        bottom: 8px;
        padding: 8px 12px;
    }
    
    .gallery-title {
        font-size: 12px;
        max-width: 250px;
        line-height: 1.3;
    }
    
    .gallery-counter {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* Indicador visual de que se puede hacer swipe */
@media (max-width: 768px) {
    .gallery-image-wrapper::before {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 30px;
        height: 60px;
        background: linear-gradient(to right, rgba(255, 255, 255, 0.1), transparent);
        pointer-events: none;
        opacity: 0.5;
        animation: swipeHintLeft 2s ease-in-out infinite;
    }
    
    .gallery-image-wrapper::after {
        content: '';
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 30px;
        height: 60px;
        background: linear-gradient(to left, rgba(255, 255, 255, 0.1), transparent);
        pointer-events: none;
        opacity: 0.5;
        animation: swipeHintRight 2s ease-in-out infinite;
    }
}

@keyframes swipeHintLeft {
    0%, 100% { opacity: 0.3; transform: translateY(-50%) translateX(0); }
    50% { opacity: 0.6; transform: translateY(-50%) translateX(-5px); }
}

@keyframes swipeHintRight {
    0%, 100% { opacity: 0.3; transform: translateY(-50%) translateX(0); }
    50% { opacity: 0.6; transform: translateY(-50%) translateX(5px); }
}


/* ========================================
   TÉRMINOS Y CONDICIONES - CHECKBOX Y MODAL
   ======================================== */

/* Checkbox de términos en formulario de solicitud */
.terminos-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: all 0.3s;
}

.terminos-checkbox:has(input:checked) {
    background-color: #e7f3ff;
    border-color: #667eea;
}

.terminos-checkbox input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

.terminos-checkbox label {
    margin: 0;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #333;
}

.terminos-checkbox a {
    color: #667eea;
    font-weight: 600;
    text-decoration: underline;
}

.terminos-checkbox a:hover {
    color: #5568d3;
}

/* Textarea de comentarios */
#customerComments {
    resize: vertical;
    min-height: 80px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#customerComments:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Modal de términos y condiciones en solicitud */
.terminos-solicitud-modal {
    position: fixed;
    z-index: 10001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.terminos-solicitud-modal-content {
    background-color: #fff;
    margin: 3% auto;
    padding: 0;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    animation: slideInTerminos 0.3s ease-out;
}

@keyframes slideInTerminos {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.terminos-solicitud-modal-content h2 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px 30px;
    margin: 0;
    border-radius: 15px 15px 0 0;
    font-size: 1.8rem;
    font-weight: 600;
}

.terminos-solicitud-body {
    padding: 30px;
    overflow-y: auto;
    flex-grow: 1;
    color: #333;
}

.terminos-solicitud-body h6 {
    color: #667eea;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 25px;
    margin-bottom: 10px;
}

.terminos-solicitud-body h6:first-child {
    margin-top: 0;
}

.terminos-solicitud-body p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #555;
}

.terminos-solicitud-body a {
    color: #667eea;
    text-decoration: none;
}

.terminos-solicitud-body a:hover {
    text-decoration: underline;
}

.terminos-solicitud-close {
    position: absolute;
    top: 15px;
    right: 25px;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1;
    transition: transform 0.2s;
}

.terminos-solicitud-close:hover {
    transform: scale(1.2);
}

.terminos-solicitud-footer {
    padding: 20px 30px;
    border-top: 1px solid #eee;
    text-align: center;
    background-color: #f8f9fa;
    border-radius: 0 0 15px 15px;
}

.btn-cerrar-terminos-solicitud {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 40px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-cerrar-terminos-solicitud:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Responsive para móvil */
@media (max-width: 768px) {
    .terminos-solicitud-modal-content {
        width: 95%;
        margin: 5% auto;
        max-height: 90vh;
    }
    
    .terminos-solicitud-modal-content h2 {
        padding: 20px;
        font-size: 1.4rem;
    }
    
    .terminos-solicitud-body {
        padding: 20px;
    }
    
    .terminos-solicitud-body h6 {
        font-size: 1rem;
    }
    
    .terminos-solicitud-close {
        top: 10px;
        right: 15px;
        font-size: 28px;
    }
    
    .terminos-checkbox {
        padding: 12px;
    }
    
    .terminos-checkbox label {
        font-size: 0.9rem;
    }
    
    #customerComments {
        font-size: 0.95rem;
    }
}

/* ===================================
   ESTILOS DE LOGIN Y REGISTRO
   =================================== */

/* Body para páginas de login/registro */
.auth-page-body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    background-color: transparent !important;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 20px;
}

/* Contenedor de login */
.login-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 450px;
    width: 100%;
    padding: 40px;
}

/* Header de login */
.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header .logo {
    max-width: 100px;
    height: auto;
    margin-bottom: 15px;
}

.login-header h1 {
    color: #333;
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.login-header p {
    color: #666;
    font-size: 0.95rem;
    margin: 0;
}

/* Form groups - estilos legacy para compatibilidad */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group label .required {
    color: #dc3545;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 0.85rem;
}

/* Checkbox group */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 2px solid #e9ecef;
    margin-bottom: 20px;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-group label {
    flex: 1;
    margin: 0;
    font-size: 0.9rem;
    color: #333;
    cursor: pointer;
}

.checkbox-group a {
    color: #667eea;
    text-decoration: underline;
}

/* Botón de login */
.btn-login {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    color: white;
    padding: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    width: 100%;
    margin-top: 20px;
    transition: transform 0.2s;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Botón de registro */
.btn-register {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.btn-register:active {
    transform: translateY(0);
}

/* Alertas */
.alert {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.alert-danger {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.alert-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

/* Enlaces de vuelta y login */
.back-link {
    text-align: center;
    margin-top: 20px;
}

.back-link a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.back-link a:hover {
    text-decoration: underline;
}

.login-link {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.login-link a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.login-link a:hover {
    text-decoration: underline;
}

/* Input con icono */
.input-icon {
    position: relative;
}

.input-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.input-icon .form-control {
    padding-left: 45px;
}

/* Requisitos de PIN */
.pin-requirements {
    background-color: #e7f3ff;
    border-left: 4px solid #2196F3;
    padding: 12px;
    margin-top: 10px;
    border-radius: 4px;
    font-size: 0.85rem;
}

.pin-requirements ul {
    margin: 8px 0 0 20px;
    padding: 0;
}

.pin-requirements li {
    margin: 4px 0;
    color: #1976D2;
}

/* Modal de términos - estilo común para ambos */
.terminos-modal,
.modal-terminos {
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.terminos-modal-content,
.modal-terminos-content {
    background-color: #fff;
    margin: 3% auto;
    padding: 0;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    animation: slideIn 0.3s ease-out;
    position: relative;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.terminos-modal-content h2,
.modal-terminos-content h2 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px 30px;
    margin: 0;
    border-radius: 15px 15px 0 0;
    font-size: 1.8rem;
    font-weight: 600;
}

.terminos-body {
    padding: 30px;
    overflow-y: auto;
    flex-grow: 1;
    color: #333;
}

.terminos-body h6,
.terminos-body h3 {
    color: #667eea;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 25px;
    margin-bottom: 10px;
}

.terminos-body h6:first-child,
.terminos-body h3:first-child {
    margin-top: 0;
}

.terminos-body p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #555;
}

.terminos-body a {
    color: #667eea;
    text-decoration: none;
}

.terminos-body a:hover {
    text-decoration: underline;
}

.terminos-close {
    position: absolute;
    top: 15px;
    right: 25px;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1;
    transition: transform 0.2s;
}

.terminos-close:hover {
    transform: scale(1.2);
    color: white;
}

.terminos-footer {
    padding: 20px 30px;
    border-top: 1px solid #eee;
    text-align: center;
    background-color: #f8f9fa;
    border-radius: 0 0 15px 15px;
}

.btn-cerrar-terminos {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 40px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-cerrar-terminos:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Responsive para login/registro */
@media (max-width: 768px) {
    .auth-page-body {
        align-items: flex-start;
        padding: 20px 15px;
    }
    
    .login-container,
    .register-container {
        padding: 30px 20px;
        margin-top: 20px;
    }
    
    .login-header h1,
    .register-header h1 {
        font-size: 1.5rem;
    }
    
    .terminos-modal-content,
    .modal-terminos-content {
        width: 95%;
        margin: 5% auto;
        max-height: 90vh;
    }
    
    .terminos-modal-content h2,
    .modal-terminos-content h2 {
        padding: 20px;
        font-size: 1.4rem;
    }
    
    .terminos-body {
        padding: 20px;
    }
    
    .terminos-body h6,
    .terminos-body h3 {
        font-size: 1rem;
    }
    
    .terminos-footer {
        padding: 15px 20px;
    }
    
    .btn-cerrar-terminos {
        padding: 10px 30px;
        font-size: 0.95rem;
    }
}

/* =====================================================
   MODAL DE AVISO DE BIENVENIDA (24h LocalStorage)
   ===================================================== */
.welcome-notice-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.welcome-notice-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
}

.welcome-notice-content {
    position: relative;
    background: #17a2b8;
    padding: 30px 35px;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
    text-align: center;
}

.welcome-notice-body {
    color: #fff;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.welcome-notice-body i.fa-info-circle {
    display: block;
    font-size: 3rem;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
}

.welcome-notice-body i.fa-share-alt {
    color: rgba(255, 255, 255, 0.85);
    margin: 0 2px;
}

.welcome-notice-btn {
    background: #fff;
    color: #17a2b8;
    border: none;
    padding: 12px 35px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.welcome-notice-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    background: #f8f9fa;
}

.welcome-notice-btn i {
    margin-right: 8px;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive para el modal de aviso */
@media (max-width: 576px) {
    .welcome-notice-content {
        padding: 25px 20px;
        margin: 15px;
    }
    
    .welcome-notice-body {
        font-size: 1rem;
    }
    
    .welcome-notice-body i.fa-info-circle {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }
    
    .welcome-notice-btn {
        padding: 10px 30px;
        font-size: 0.95rem;
    }
}

