* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: #2c3e50;
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    color: #e74c3c;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.nav a:hover {
    color: #e74c3c;
}

.user-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.2rem;
}

.user-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: white;
}

.user-role {
    font-size: 0.7rem;
    opacity: 0.8;
    color: #bdc3c7;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.user-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.carrito {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background 0.3s;
}

.carrito:hover {
    background: rgba(255, 255, 255, 0.1);
}

#carrito-contador {
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    padding: 0.2rem 0.5rem;
    font-size: 0.8rem;
    min-width: 20px;
    text-align: center;
}

.btn-login,
.btn-logout,
.btn-admin {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 0.6rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-login:hover {
    background: rgba(52, 152, 219, 0.8);
    border-color: rgba(52, 152, 219, 0.8);
    transform: translateY(-1px);
}

.btn-logout:hover {
    background: rgba(231, 76, 60, 0.8);
    border-color: rgba(231, 76, 60, 0.8);
    transform: translateY(-1px);
}

.btn-admin:hover {
    background: rgba(243, 156, 18, 0.8);
    border-color: rgba(243, 156, 18, 0.8);
    transform: translateY(-1px);
}

.btn-login:disabled,
.btn-logout:disabled,
.btn-admin:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-login:disabled:hover,
.btn-logout:disabled:hover,
.btn-admin:disabled:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: none;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8rem 0 4rem;
    text-align: center;
    margin-top: 60px;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 15px rgba(102, 126, 234, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #667eea 100%);
    transform: translateY(-2px);
    box-shadow: 
        0 8px 25px rgba(102, 126, 234, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 
        0 4px 15px rgba(102, 126, 234, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Productos */
.productos {
    padding: 4rem 0;
    background: #f8f9fa;
}

.productos h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    color: #2c3e50;
}

/* Tabs de categorías */
.categorias-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 0.8rem 1.5rem;
    border: 2px solid #3498db;
    background: white;
    color: #3498db;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.tab-btn:hover,
.tab-btn.active {
    background: #3498db;
    color: white;
}

.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.producto-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.producto-card:hover {
    transform: translateY(-5px);
}

.producto-imagen {
    width: 100%;
    height: 200px;
    background: #ddd;
    border-radius: 5px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.producto-card h3 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.producto-precio {
    font-size: 1.5rem;
    font-weight: bold;
    color: #e74c3c;
    margin-bottom: 1rem;
}

.btn-agregar {
    width: 100%;
    background: #27ae60;
    color: white;
    padding: 0.8rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-agregar:hover {
    background: #219a52;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

/* Responsive */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .user-section {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .user-info {
        order: 1;
        width: 100%;
        text-align: center;
        align-items: center;
        margin-bottom: 0.5rem;
    }
    
    .user-actions {
        order: 2;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .productos-grid {
        grid-template-columns: 1fr;
    }
}
/* Servicios */
.servicios {
    padding: 4rem 0;
    background: white;
}

.servicios h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #2c3e50;
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.servicio-card {
    text-align: center;
    padding: 2rem;
    border-radius: 10px;
    background: #f8f9fa;
    transition: transform 0.3s;
}

.servicio-card:hover {
    transform: translateY(-5px);
}

.servicio-icono {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.servicio-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.servicio-card p {
    color: #666;
    line-height: 1.6;
}

/* Especificaciones del producto */
.producto-specs {
    margin: 0.5rem 0;
    padding: 0.3rem 0;
}

.indice {
    background: #3498db;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Ventajas */
.ventajas {
    padding: 4rem 0;
    background: #2c3e50;
    color: white;
}

.ventajas h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: white;
}

.ventajas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.ventaja-item {
    text-align: center;
    padding: 1.5rem;
}

.ventaja-item h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
    color: #3498db;
}

.ventaja-item p {
    color: #ecf0f1;
    line-height: 1.6;
}

/* Ajustes para móviles */
@media (max-width: 768px) {
    .categorias-tabs {
        justify-content: center;
    }
    
    .tab-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .servicios-grid {
        grid-template-columns: 1fr;
    }
    
    .ventajas-grid {
        grid-template-columns: 1fr;
    }
}
/* Estilos para el Sistema de Pedidos de Cristales */

/* Formulario de Recetas */
.recipe-form-container {
    max-width: 1200px;
    margin: 0 auto;
}

.recipe-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.recipe-form h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    position: relative;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1rem;
    background: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #3498db;
    background: #f8fcff;
    box-shadow: 
        inset 0 1px 3px rgba(0, 0, 0, 0.1),
        0 0 0 3px rgba(52, 152, 219, 0.1);
    transform: translateY(-1px);
}

.form-group input:hover,
.form-group select:hover {
    border-color: #bdc3c7;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Estilos para el contenedor principal del formulario */
.modal-body {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
}

/* Animación suave para cambio de formularios */
.eyes-form {
    margin-top: 2rem;
}

#both-eyes-form,
#single-eye-form {
    animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mejoras para los mensajes de validación */
.error-message {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 0.8rem;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
    border-left: 4px solid rgba(255, 255, 255, 0.3);
    animation: slideInLeft 0.3s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.info-message {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-top: 1rem;
    font-size: 0.95rem;
    line-height: 1.6;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    border-left: 4px solid rgba(255, 255, 255, 0.3);
    animation: slideInLeft 0.3s ease-out;
}

/* Mensajes de Error */
.error-messages {
    margin-top: 1rem;
}

.error-message {
    background: #e74c3c;
    color: white;
    padding: 0.8rem;
    border-radius: 5px;
    margin-bottom: 0.5rem;
}

/* Resultados de Bases */
.bases-result {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.bases-result h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.rule-info {
    background: #3498db;
    color: white;
    padding: 0.8rem;
    border-radius: 5px;
    margin-bottom: 1.5rem;
    font-weight: bold;
}

.no-stock {
    background: #e74c3c;
    color: white;
    padding: 1rem;
    border-radius: 5px;
    text-align: center;
}

/* Grid de Bases */
.bases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.base-card {
    background: #f8f9fa;
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 1.5rem;
    position: relative;
    transition: transform 0.3s, border-color 0.3s;
}

.base-card:hover {
    transform: translateY(-3px);
    border-color: #3498db;
}

.base-card.recommended {
    border-color: #27ae60;
    background: #e8f5e8;
}

.recommended-badge {
    position: absolute;
    top: -10px;
    right: 10px;
    background: #27ae60;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
}

.base-card h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.lens-type {
    font-size: 1.1rem;
    font-weight: bold;
    color: #3498db;
    margin-bottom: 0.5rem;
}

.material,
.treatments,
.stock,
.fabrication-time {
    margin-bottom: 0.3rem;
    color: #666;
}

.price {
    font-size: 1.4rem;
    font-weight: bold;
    color: #e74c3c;
    margin: 1rem 0;
}

.btn-add-to-order {
    width: 100%;
    background: #27ae60;
    color: white;
    padding: 0.8rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-add-to-order:hover {
    background: #219a52;
}

/* Pedido Actual */
.current-order {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.current-order h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.order-items {
    margin-bottom: 2rem;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 1rem;
    background: #f8f9fa;
}

.item-info h4 {
    color: #2c3e50;
    margin-bottom: 0.3rem;
}

.item-info p {
    margin-bottom: 0.2rem;
    color: #666;
    font-size: 0.9rem;
}

.item-price {
    text-align: right;
}

.item-price p {
    font-size: 1.2rem;
    font-weight: bold;
    color: #e74c3c;
    margin-bottom: 0.5rem;
}

.btn-remove {
    background: #e74c3c;
    color: white;
    padding: 0.4rem 0.8rem;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.8rem;
}

.btn-remove:hover {
    background: #c0392b;
}

/* Resumen del Pedido */
.order-summary {
    border-top: 2px solid #ddd;
    padding-top: 1rem;
}

.order-summary p {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.order-summary .total {
    font-size: 1.4rem;
    font-weight: bold;
    color: #2c3e50;
    border-top: 1px solid #ddd;
    padding-top: 0.5rem;
    margin-top: 0.5rem;
}

.order-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn-secondary {
    background: #95a5a6;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

/* Notificaciones */
.notification {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    font-weight: bold;
}

@keyframes slideIn {
    from { 
        transform: translateX(100%); 
        opacity: 0; 
    }
    to { 
        transform: translateX(0); 
        opacity: 1; 
    }
}

/* Responsive */
@media (max-width: 768px) {
    .recipe-form,
    .bases-result,
    .current-order {
        padding: 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .bases-grid {
        grid-template-columns: 1fr;
    }
    
    .order-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .item-price {
        text-align: left;
        width: 100%;
    }
    
    .order-actions {
        flex-direction: column;
    }
}
/* Estilos elegantes para formulario */
.radio-group {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    background: #f8f9fa;
    padding: 0.5rem;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.radio-option {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.8rem 1.5rem;
    border: 2px solid transparent;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.radio-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(52, 152, 219, 0.1), transparent);
    transition: left 0.5s;
}

.radio-option:hover::before {
    left: 100%;
}

.radio-option:hover {
    border-color: #3498db;
    background: linear-gradient(135deg, #ffffff, #f0f8ff);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.2);
}

.radio-option input[type="radio"]:checked + span {
    font-weight: bold;
    color: #3498db;
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-option input[type="radio"]:checked + span {
    color: white;
}

.radio-option:has(input[type="radio"]:checked) {
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-color: #2980b9;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
}

.eyes-form {
    margin-top: 1.5rem;
}

/* Contenedor elegante para formularios en paralelo */
.eyes-parallel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.eye-section {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid #e9ecef;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 6px rgba(0, 0, 0, 0.05),
        0 1px 3px rgba(0, 0, 0, 0.1);
}

.eye-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2980b9);
    border-radius: 16px 16px 0 0;
}

.eye-section:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 12px 25px rgba(0, 0, 0, 0.1),
        0 6px 12px rgba(0, 0, 0, 0.08);
}

.eye-section h4 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    text-align: center;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.5rem;
}

.eye-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #3498db, #2980b9);
    border-radius: 1px;
}

/* Columna de formulario */
.form-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-column .form-group {
    margin-bottom: 0;
}

.form-column .form-group label {
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.form-column .form-group input {
    padding: 0.6rem;
    font-size: 0.9rem;
}

/* Responsive elegante para formularios de ojos */
@media (max-width: 768px) {
    .modal-content {
        width: 98%;
        margin: 1rem;
        max-height: 98vh;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 1.5rem;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .radio-option {
        padding: 1rem;
    }
    
    .eyes-parallel {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .eye-section {
        padding: 1.5rem;
    }
    
    .form-column .form-group input {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .index-options {
        gap: 0.5rem;
        padding: 0.8rem;
    }
    
    .index-circle {
        width: 50px;
        height: 50px;
        font-size: 0.8rem;
    }
    
    .crystal-type-shared {
        padding: 1.5rem;
        margin-top: 1.5rem;
    }
    
    .crystal-type-shared select {
        min-width: auto;
        width: 100%;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .modal-footer button {
        width: 100%;
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .modal-header h3 {
        font-size: 1.3rem;
    }
    
    .eyes-parallel {
        gap: 1rem;
    }
    
    .eye-section {
        padding: 1.2rem;
    }
    
    .eye-section h4 {
        font-size: 1.1rem;
    }
    
    .index-circle {
        width: 45px;
        height: 45px;
        font-size: 0.75rem;
    }
    
    .single-eye-centered {
        max-width: 100%;
        padding: 1.5rem;
    }
}
/* Estilos para resultados de múltiples ojos */
.eye-result-section {
    background: white;
    border: 2px solid #3498db;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.eye-result-section h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
}

.recipe-info {
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.eye-result-section .rule-info {
    margin-bottom: 1.5rem;
}

.eye-result-section .bases-grid {
    margin-top: 1rem;
}

.base-card h5 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-size: 1.2rem;
}

/* Mejorar la visualización en móviles */
@media (max-width: 768px) {
    .eye-result-section {
        padding: 1rem;
    }
    
    .eye-result-section h4 {
        font-size: 1.1rem;
    }
}
/* Estilos elegantes para formulario de un solo ojo centrado */
.single-eye-centered {
    grid-column: 1 / -1;
    max-width: 500px;
    margin: 0 auto;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
}

.single-eye-centered::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #e74c3c, #c0392b);
    border-radius: 20px 20px 0 0;
}

.single-eye-centered h4 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 2rem;
    font-size: 1.3rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 1rem;
}

.single-eye-centered h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #e74c3c, #c0392b);
    border-radius: 2px;
}

/* Estilos elegantes para tipo de cristal compartido */
.crystal-type-shared {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem;
    border-radius: 20px;
    border: none;
    text-align: center;
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 10px 30px rgba(102, 126, 234, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.crystal-type-shared::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="sparkle" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="5" cy="5" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23sparkle)"/></svg>');
    opacity: 0.3;
}

.crystal-type-shared label {
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
    display: block;
    margin-bottom: 1rem;
}

.crystal-type-shared select {
    margin-top: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #2c3e50;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
    min-width: 300px;
}

.crystal-type-shared select:focus {
    background: white;
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 
        0 0 0 3px rgba(255, 255, 255, 0.3),
        0 8px 25px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}
/* Estilos para resultado de ejemplo */
.example-result {
    background: #e8f5e8;
    border: 2px solid #27ae60;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.example-result p {
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.example-result p:last-child {
    margin-bottom: 0;
    font-style: italic;
    color: #666;
}
/* Estilos para visualización de recetas */
.recipe-display {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    border-left: 4px solid #3498db;
}

.eye-recipe {
    margin-bottom: 1rem;
    padding: 0.8rem;
    background: white;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.eye-recipe:last-child {
    margin-bottom: 0;
}

.eye-recipe h5 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: bold;
}

.eye-recipe p {
    margin-bottom: 0.3rem;
    color: #666;
    font-size: 0.9rem;
}

.eye-recipe p:last-child {
    margin-bottom: 0;
    color: #e74c3c;
    font-weight: bold;
}

/* Estilos para los selectores de índice */
.form-group select {
    width: 100%;
    padding: 0.6rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 0.9rem;
    background: white;
    cursor: pointer;
}

.form-group select:focus {
    outline: none;
    border-color: #3498db;
}

/* Responsive para selectores */
@media (max-width: 768px) {
    .form-group select {
        padding: 0.8rem;
        font-size: 1rem;
    }
}
/* Estilos elegantes para opciones de índice */
.index-options {
    display: flex;
    gap: 0.8rem;
    margin-top: 1rem;
    justify-content: center;
    padding: 1rem;
    background: linear-gradient(145deg, #f8f9fa, #e9ecef);
    border-radius: 16px;
    border: 1px solid #dee2e6;
}

.index-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.index-option input[type="radio"] {
    display: none;
}

.index-circle {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: 3px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.85rem;
    color: #6c757d;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
}

.index-circle::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(52, 152, 219, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s;
    opacity: 0;
}

.index-option:hover .index-circle {
    border-color: #3498db;
    transform: scale(1.1) translateY(-2px);
    box-shadow: 
        0 8px 20px rgba(52, 152, 219, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.index-option:hover .index-circle::before {
    opacity: 1;
    transform: rotate(45deg) translate(50%, 50%);
}

.index-option input[type="radio"]:checked + .index-circle {
    border-color: #3498db;
    background: linear-gradient(145deg, #3498db, #2980b9);
    color: white;
    transform: scale(1.15) translateY(-3px);
    box-shadow: 
        0 12px 25px rgba(52, 152, 219, 0.4),
        0 0 0 4px rgba(52, 152, 219, 0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 
            0 12px 25px rgba(52, 152, 219, 0.4),
            0 0 0 4px rgba(52, 152, 219, 0.2);
    }
    50% {
        box-shadow: 
            0 12px 25px rgba(52, 152, 219, 0.4),
            0 0 0 8px rgba(52, 152, 219, 0.1);
    }
}

/* Responsive para opciones de índice */
@media (max-width: 768px) {
    .index-options {
        gap: 0.8rem;
    }
    
    .index-circle {
        width: 45px;
        height: 45px;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .index-options {
        gap: 0.5rem;
    }
    
    .index-circle {
        width: 40px;
        height: 40px;
        font-size: 0.7rem;
    }
}
/* Estilos para el modal elegante */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.9), rgba(52, 152, 219, 0.7));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border-radius: 20px;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    max-width: 900px;
    width: 95%;
    max-height: 95vh;
    overflow: hidden;
    animation: slideUp 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(60px) scale(0.9) rotateX(10deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1) rotateX(0deg);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2.5rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.modal-header h3 {
    color: white;
    margin: 0;
    font-size: 1.6rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.modal-body {
    padding: 2.5rem;
    background: white;
    overflow-y: auto;
    max-height: calc(95vh - 200px);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.5rem 2.5rem 2rem;
    background: linear-gradient(to right, #f8f9fa, #e9ecef);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.btn-close {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 1.3rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-close:hover {
    background: rgba(231, 76, 60, 0.9);
    border-color: rgba(231, 76, 60, 0.9);
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
}

.btn-icon {
    font-size: 1rem;
    font-weight: bold;
    margin-right: 0.5rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.btn-secondary {
    background: linear-gradient(135deg, #bdc3c7, #95a5a6);
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 15px rgba(149, 165, 166, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-secondary:hover::before {
    left: 100%;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    transform: translateY(-2px);
    box-shadow: 
        0 8px 25px rgba(149, 165, 166, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-danger {
    background: #e74c3c;
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-danger:hover {
    background: #c0392b;
}

.btn-success {
    background: #27ae60;
    color: white;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-success:hover {
    background: #219a52;
}

.btn-primary:disabled,
.btn-secondary:disabled,
.btn-danger:disabled,
.btn-success:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    pointer-events: none;
}

.btn-primary:disabled:hover,
.btn-secondary:disabled:hover,
.btn-danger:disabled:hover,
.btn-success:disabled:hover {
    transform: none;
}

/* Estilos para la tabla de pedidos */
.order-table-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    overflow: hidden;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: #f8f9fa;
    border-bottom: 2px solid #ddd;
}

.table-header h3 {
    color: #2c3e50;
    margin: 0;
}

.table-actions {
    display: flex;
    gap: 1rem;
}

.table-wrapper {
    overflow-x: auto;
}

#crystals-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

#crystals-table th {
    background: #3498db;
    color: white;
    padding: 1rem 0.8rem;
    text-align: left;
    font-weight: bold;
    white-space: nowrap;
}

#crystals-table td {
    padding: 1rem 0.8rem;
    border-bottom: 1px solid #ddd;
    white-space: nowrap;
}

#crystals-table tbody tr:hover {
    background: #f8f9fa;
}

.empty-row td {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 2rem;
}

.empty-message {
    white-space: normal !important;
}

/* Botones de acción en la tabla */
.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-edit, .btn-delete {
    padding: 0.3rem 0.6rem;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: bold;
}

.btn-edit {
    background: #f39c12;
    color: white;
}

.btn-edit:hover {
    background: #e67e22;
}

.btn-delete {
    background: #e74c3c;
    color: white;
}

.btn-delete:hover {
    background: #c0392b;
}

/* Resumen del pedido */
.order-summary {
    padding: 1.5rem 2rem;
    background: #f8f9fa;
    border-top: 2px solid #ddd;
}

.summary-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.summary-info p {
    margin: 0;
    font-size: 1.1rem;
}

/* Estilos para validación y notificaciones */
.success-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #27ae60;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 1000;
    max-width: 350px;
    font-size: 0.9rem;
    line-height: 1.4;
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.info-message {
    background: #3498db;
    color: white;
    padding: 0.8rem;
    border-radius: 5px;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Estilos para filas de la tabla según fabricabilidad */
.fabricable {
    background: #f8fff8;
    border-left: 3px solid #27ae60;
}

.not-fabricable {
    background: #fff8f8;
    border-left: 3px solid #e74c3c;
}

.base-info {
    background: #3498db;
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
    cursor: help;
}

/* Estilos para la columna de ID de pedido */
.order-id-cell {
    text-align: center;
    font-weight: bold;
}

/* Estilos para modo edición */
.modal-header.editing {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
}

.modal-header.editing h3::before {
    content: '✏️ ';
    margin-right: 0.5rem;
}

.order-id {
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
    display: inline-block;
    transition: all 0.3s ease;
}

.pair-badge {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    color: white;
    box-shadow: 0 2px 8px rgba(155, 89, 182, 0.3);
}

.single-badge {
    background: linear-gradient(135deg, #34495e, #2c3e50);
    color: white;
    box-shadow: 0 2px 8px rgba(52, 73, 94, 0.3);
}

.order-id:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Estilos para filas de cristales emparejados */
.paired-crystal {
    border-left: 4px solid #9b59b6;
}

.single-crystal {
    border-left: 4px solid #34495e;
}

/* Estilos para la columna de precio */
.price-cell {
    text-align: center;
    font-weight: bold;
}

.crystal-price {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: bold;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.3);
    transition: all 0.3s ease;
}

.crystal-price:hover {
    background: linear-gradient(135deg, #229954, #27ae60);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.4);
}

/* Tooltip personalizado para precios */
.crystal-price[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    font-size: 0.8rem;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.crystal-price[title]:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
}

.price-cell {
    position: relative;
}

/* Estilos para botones deshabilitados por autenticación */
.btn-primary:disabled {
    background: linear-gradient(135deg, #bdc3c7, #95a5a6) !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

.btn-primary:disabled:hover {
    background: linear-gradient(135deg, #bdc3c7, #95a5a6) !important;
    transform: none !important;
    box-shadow: none !important;
}

.btn-primary:disabled .btn-icon {
    opacity: 0.6;
}

/* Estilos para mensaje de administrador */
.admin-info-message {
    max-width: 800px;
    margin: 0 auto 3rem;
    padding: 0;
}

.admin-card {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 
        0 15px 35px rgba(243, 156, 18, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.admin-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="admin-pattern" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1.5" fill="rgba(255,255,255,0.1)"/><circle cx="5" cy="5" r="0.8" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23admin-pattern)"/></svg>');
    opacity: 0.3;
}

.admin-card h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.admin-card p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.admin-card ul {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    position: relative;
    z-index: 1;
}

.admin-card li {
    background: rgba(255, 255, 255, 0.1);
    margin: 0.8rem 0;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-size: 1rem;
    text-align: left;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.admin-card li:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

.btn-admin-panel {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
    margin-top: 1.5rem;
}

.btn-admin-panel:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Responsive para mensaje de administrador */
@media (max-width: 768px) {
    .admin-card {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }
    
    .admin-card h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .admin-card p {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .admin-card li {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
        margin: 0.6rem 0;
    }
    
    .btn-admin-panel {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .admin-card {
        padding: 1.5rem 1rem;
        border-radius: 15px;
    }
    
    .admin-card h3 {
        font-size: 1.3rem;
    }
    
    .admin-card p {
        font-size: 0.9rem;
    }
    
    .admin-card li {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
        text-align: center;
    }
    
    .admin-card li:hover {
        transform: none;
    }
}

/* Responsive para tabla y modal */
@media (max-width: 768px) {
    .table-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .table-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .summary-info {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    #crystals-table {
        font-size: 0.8rem;
    }
    
    #crystals-table th,
    #crystals-table td {
        padding: 0.5rem 0.3rem;
    }
    
    .crystal-price {
        padding: 0.3rem 0.5rem;
        font-size: 0.8rem;
    }
    
    /* Ocultar algunas columnas en móviles para mejor visualización */
    #crystals-table th:nth-child(5),
    #crystals-table td:nth-child(5),
    #crystals-table th:nth-child(6),
    #crystals-table td:nth-child(6) {
        display: none;
    }
    
    .order-id {
        padding: 0.2rem 0.4rem;
        font-size: 0.7rem;
    }
    
    .success-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    /* Modal responsive */
    .modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 1rem;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .modal-footer button {
        width: 100%;
    }
}
/* ===== SISTEMA DE DESCUENTOS ===== */

/* Visualización de precios con descuento */
.price-with-discount {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    position: relative;
}

.original-price {
    font-size: 0.8rem;
    color: #6c757d;
    text-decoration: line-through;
}

.discount-badge {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.15rem 0.4rem;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.final-price {
    font-size: 1rem;
    font-weight: 700;
    color: #27ae60;
}

.price-tooltip {
    position: absolute;
    top: -5px;
    right: -10px;
    font-size: 0.8rem;
    color: #3498db;
    cursor: help;
}

/* Tabla de gestión de descuentos */
.discount-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.discount-table th,
.discount-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.discount-table th {
    background: linear-gradient(135deg, #34495e, #2c3e50);
    color: white;
    font-weight: 600;
}

.discount-table tr:hover {
    background-color: #f8f9fa;
}

.discount-input {
    width: 60px;
    padding: 0.25rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
}

.discount-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.discount-save-btn {
    background: linear-gradient(135deg, #27ae60, #229954);
    color: white;
    border: none;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.discount-save-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.3);
}

.discount-remove-btn {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.discount-remove-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

/* Indicadores de descuento */
.discount-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.discount-indicator.has-specific {
    background-color: #d4edda;
    color: #155724;
}

.discount-indicator.has-general {
    background-color: #fff3cd;
    color: #856404;
}

.discount-indicator.no-discount {
    background-color: #f8d7da;
    color: #721c24;
}

/* Resumen de descuentos */
.discount-summary {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
}

.discount-summary h4 {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
}

.discount-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.discount-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background: white;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.discount-summary-label {
    font-weight: 500;
    color: #495057;
}

.discount-summary-value {
    font-weight: 700;
    color: #2c3e50;
}

/* Formulario de descuentos masivos */
.bulk-discount-form {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
}

.bulk-discount-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.discount-section {
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 1rem;
}

.discount-section h5 {
    margin: 0 0 1rem 0;
    color: #2c3e50;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 0.5rem;
}

.crystal-discount-grid {
    display: grid;
    grid-template-columns: 1fr repeat(3, 80px);
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.5rem;
}

.crystal-type-label {
    font-size: 0.9rem;
    color: #495057;
}

/* Responsive para descuentos */
@media (max-width: 768px) {
    .price-with-discount {
        font-size: 0.8rem;
    }
    
    .discount-table {
        font-size: 0.8rem;
    }
    
    .discount-table th,
    .discount-table td {
        padding: 0.5rem 0.25rem;
    }
    
    .bulk-discount-grid {
        grid-template-columns: 1fr;
    }
    
    .crystal-discount-grid {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }
}
/* ===== BOTONES DE TIPOS DE CRISTAL ===== */

.btn-crystal-type {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-crystal-type:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.btn-monofocal {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.btn-monofocal:hover {
    background: linear-gradient(135deg, #2980b9, #21618c);
}

.btn-multifocal {
    background: linear-gradient(135deg, #e67e22, #d35400);
}

.btn-multifocal:hover {
    background: linear-gradient(135deg, #d35400, #ba4a00);
}

.btn-bifocal {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
}

.btn-bifocal:hover {
    background: linear-gradient(135deg, #8e44ad, #7d3c98);
}

/* Ajustar el contenedor de acciones para los nuevos botones */
.table-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

/* Responsive para botones de cristal */
@media (max-width: 768px) {
    .btn-crystal-type {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
    
    .table-actions {
        gap: 0.5rem;
    }
}
/* ===== CAMPOS DE ADICIÓN PARA MULTIFOCALES ===== */

.addition-field {
    transition: all 0.3s ease;
}

.addition-field label {
    color: #e67e22;
    font-weight: 600;
}

.addition-field input {
    border: 2px solid #f39c12;
    background-color: #fef9e7;
}

.addition-field input:focus {
    border-color: #e67e22;
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.1);
    background-color: #fff;
}

/* Grupos de opciones en el select */
optgroup {
    font-weight: bold;
    color: #2c3e50;
}

optgroup[label="Monofocales"] {
    color: #3498db;
}

optgroup[label="Multifocales"] {
    color: #e67e22;
}

optgroup[label="Bifocales"] {
    color: #9b59b6;
}