/* Estilos para el sistema de registro - MandaExpress */

/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px 0;
    overflow-x: hidden; /* Evita scroll horizontal */
}

/* Contenedor principal */
.registro-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    overflow: hidden;
    animation: slideInUp 0.6s ease-out;
}

/* Header del formulario */
.registro-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 2rem;
    position: relative;
}

.registro-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 1000 1000"><defs><pattern id="pattern" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23pattern)"/></svg>');
}

.registro-header * {
    position: relative;
    z-index: 1;
}

.registro-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.registro-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.logo-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #ffd700;
}

/* Contenido del formulario */
.registro-content {
    padding: 2rem;
}

/* Botones de tipo de usuario */
.user-type-selector {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.user-type-btn {
    flex: 1;
    max-width: 200px;
    padding: 1rem;
    border: 2px solid #e9ecef;
    background: white;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.user-type-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.5s;
}

.user-type-btn:hover::before {
    left: 100%;
}

.user-type-btn:hover {
    border-color: #667eea;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.2);
}

.user-type-btn.active {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.user-type-btn i {
    font-size: 2rem;
    color: #667eea;
    margin-bottom: 0.5rem;
    display: block;
}

.user-type-btn h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.user-type-btn p {
    font-size: 0.9rem;
    color: #666;
}

/* Formulario */
.registro-form {
    display: grid;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group label i {
    color: #667eea;
    font-size: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 16px; /* Evita zoom en iOS */
    transition: all 0.3s ease;
    background: #f8f9fa;
    -webkit-appearance: none;
    appearance: none;
    min-height: 44px; /* Altura mínima táctil */
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

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

/* Sección específica para repartidores */
/* Estilos duplicados eliminados - usar los estilos unificados arriba */

/* Sección de repartidor - Estilos unificados */
.repartidor-section {
    display: none;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 1.5rem;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.repartidor-section.active {
    display: block;
    animation: fadeIn 0.5s ease-in;
}

.repartidor-section h3 {
    color: #667eea;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
}

/* Sección de negocio */
.negocio-section {
    display: none;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 1.5rem;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.negocio-section.active {
    display: block;
    animation: fadeIn 0.5s ease-in;
}

.negocio-section h3 {
    color: #17a2b8;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
}

/* Archivo de licencia */
.file-upload {
    position: relative;
    margin-bottom: 0.5rem;
}

.file-upload input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-upload-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border: 2px dashed #667eea;
    border-radius: 10px;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    justify-content: center;
}

.file-upload-label:hover {
    border-color: #5a6fd8;
    background: #e3f2fd;
}

.file-upload-label i {
    font-size: 1.5rem;
    color: #667eea;
}

.file-info {
    margin-top: 0.5rem;
    color: #666;
}

/* Opción de no tener documento */
.no-document-option {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    text-align: center;
}

.no-document-option .btn {
    margin-bottom: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border: 1px solid #6c757d;
    color: #6c757d;
    background: white;
    transition: all 0.3s ease;
}

.no-document-option .btn:hover {
    background: #6c757d;
    color: white;
    border-color: #6c757d;
}

.no-document-option .btn.active {
    background: #6c757d;
    color: white;
    border-color: #6c757d;
}

.no-document-option small {
    display: block;
    color: #6c757d;
    font-size: 0.8rem;
}

/* Autocompletado */
.autocomplete-container {
    position: relative;
    width: 100%;
}

.autocomplete-container input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f8f9fa;
    min-height: 44px;
}

.autocomplete-container input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e9ecef;
    border-top: none;
    border-radius: 0 0 10px 10px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: none;
}

.suggestion-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid #f8f9fa;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.suggestion-item:hover {
    background-color: #f8f9fa;
}

.suggestion-item.selected {
    background-color: #667eea;
    color: white;
}

.suggestion-item .category-icon {
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.suggestion-item .suggestion-text {
    flex: 1;
}

.suggestion-item .suggestion-category {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-left: auto;
}

.suggestion-item:hover .suggestion-category {
    opacity: 1;
}

.suggestion-item.selected .suggestion-category {
    opacity: 0.9;
}

/* Scrollbar personalizado para sugerencias */
.suggestions::-webkit-scrollbar {
    width: 6px;
}

.suggestions::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.suggestions::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.suggestions::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Validación de contraseña */
.password-requirements {
    margin-top: 0.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.password-requirements h4 {
    color: #667eea;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.password-requirements ul {
    list-style: none;
    padding: 0;
}

.password-requirements li {
    padding: 0.2rem 0;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.password-requirements li i {
    font-size: 0.8rem;
}

.password-requirements li.valid {
    color: #28a745;
}

.password-requirements li.invalid {
    color: #dc3545;
}

/* Botones */
.btn-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    text-align: center;
    min-width: 150px;
    min-height: 44px; /* Tamaño táctil mínimo */
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    user-select: none;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #6c757d;
    color: white;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* Mensajes de alerta */
.alert {
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    border-left: 4px solid;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-color: #28a745;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border-color: #dc3545;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border-color: #ffc107;
}

/* Loading spinner */
.loading {
    display: none;
    text-align: center;
    padding: 2rem;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 2s linear infinite;
    margin: 0 auto 1rem;
}

/* Animaciones */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .registro-container {
        margin: 0.5rem;
        border-radius: 15px;
    }
    
    .registro-header h1 {
        font-size: 1.8rem;
    }
    
    .registro-header p {
        font-size: 0.95rem;
    }
    
    .registro-content {
        padding: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .user-type-selector {
        flex-direction: column;
        gap: 1rem;
    }
    
    .user-type-btn {
        max-width: none;
        padding: 1.5rem;
    }
    
    .user-type-btn i {
        font-size: 2.5rem;
    }
    
    .btn-group {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        padding: 1.2rem 2rem;
    }
    
    .phone-input-container {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .country-select {
        width: 100% !important;
        max-width: none !important;
        min-width: auto !important;
        font-size: 0.85rem;
    }
    
    .phone-number-input {
        width: 100% !important;
    }
}

@media (max-width: 480px) {
    body {
        padding: 5px 0;
    }
    
    .registro-container {
        margin: 0.25rem;
        border-radius: 10px;
    }
    
    .registro-header {
        padding: 1.5rem 1rem;
    }
    
    .registro-header h1 {
        font-size: 1.6rem;
    }
    
    .registro-header p {
        font-size: 0.9rem;
    }
    
    .registro-content {
        padding: 1rem;
    }
    
    .logo-icon {
        font-size: 2rem;
    }
    
    .user-type-btn {
        padding: 1rem;
    }
    
    .user-type-btn i {
        font-size: 2rem;
    }
    
    .user-type-btn h3 {
        font-size: 1rem;
    }
    
    .user-type-btn p {
        font-size: 0.8rem;
    }
      .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.8rem;
        font-size: 16px; /* Evita zoom en iOS */
        border: 2px solid #ddd;
        border-radius: 8px;
        transition: border-color 0.3s;
        -webkit-appearance: none;
        appearance: none;
    }
    
    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus {
        border-color: #667eea;
        outline: none;
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    }

    .btn {
        padding: 1rem 1.5rem;
        font-size: 0.9rem;
        min-height: 44px; /* Tamaño táctil mínimo */
        border-radius: 8px;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        -webkit-user-select: none;
        user-select: none;
    }
    
    .btn:active {
        transform: scale(0.98);
    }
    
    /* Mejorar botones de tipo de usuario para dispositivos táctiles */
    .user-type-btn {
        padding: 1.5rem;
        min-height: 120px;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        transition: all 0.3s;
    }
    
    .user-type-btn:active {
        transform: scale(0.97);
    }
    
    .password-requirements {
        padding: 0.8rem;
    }
    
    .password-requirements li {
        font-size: 0.8rem;
    }
    
    /* Estilos móviles para secciones específicas */
    .repartidor-section {
        padding: 1rem;
        /* Mantener display: none por defecto */
    }
    
    .negocio-section {
        padding: 1rem;
        /* Mantener display: none por defecto */
    }
    
    .file-upload-label {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    .file-upload-label i {
        font-size: 1.2rem;
    }
}

/* Estilos adicionales para teléfono */
.phone-input-container {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
}

.country-select {
    flex: 0 0 auto;
    min-width: 180px;
    max-width: 200px;
    padding: 1rem 0.5rem;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 0.85rem;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.country-select:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.phone-number-input {
    flex: 1;
    min-width: 0;
}

.phone-help,
.form-help {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.8rem;
    color: #666;
    font-style: italic;
}

/* Mejoras de UX para móviles */
@media (max-width: 768px) {
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Evita zoom en iOS */
    }
    
    .country-select {
        font-size: 14px; /* Más pequeño para móviles */
        padding: 0.8rem 0.4rem;
        min-width: auto;
    }
    
    /* Mejorar tap targets */
    .user-type-btn {
        min-height: 48px;
        touch-action: manipulation;
    }
    
    .btn {
        min-height: 48px;
        touch-action: manipulation;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        min-height: 48px;
    }
}

/* Estilos para pantallas muy pequeñas */
@media (max-width: 360px) {
    .registro-header h1 {
        font-size: 1.4rem;
    }
    
    .phone-input-container {
        flex-direction: column;
    }
    
    .country-select {
        width: 100%;
        max-width: none;
    }
    
    .user-type-btn h3 {
        font-size: 0.9rem;
    }
    
    .user-type-btn p {
        font-size: 0.75rem;
    }
    
    .form-group label {
        font-size: 0.9rem;
    }
}

/* Efectos adicionales */
.form-group input:valid {
    border-color: #28a745;
}

.form-group input:invalid:not(:placeholder-shown) {
    border-color: #dc3545;
}

/* Hover effects para mejor UX */
.form-group:hover label {
    color: #667eea;
}

.registro-form .form-group {
    position: relative;
}

.registro-form .form-group::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

.registro-form .form-group:focus-within::after {
    width: 100%;
}

/* Modal para seleccionar tipo de negocio */
.modal-negocio {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow-y: auto;
}

.modal-negocio.modal-show {
    opacity: 1;
    display: block;
}

.modal-negocio.modal-hide {
    opacity: 0;
}

.modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background-color: white;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    transition: all 0.3s ease;
    opacity: 0;
    display: flex;
    flex-direction: column;
    border: 2px solid #e9ecef;
}

.modal-negocio.modal-show .modal-content {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.modal-negocio.modal-hide .modal-content {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px 15px 0 0;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.modal-close::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.15) rotate(90deg);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.modal-close:hover::before {
    left: 100%;
}

.modal-body {
    padding: 1.5rem;
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    background-color: #f8f9fa;
}

.modal-search {
    position: relative;
    margin-bottom: 1.5rem;
}

.modal-search input {
    width: 100%;
    padding: 1rem 3rem 1rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.modal-search input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.modal-search i {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

.modal-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem;
    max-height: 50vh;
    min-height: 200px;
    background-color: white;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.modal-option {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    opacity: 0;
    transform: translateY(10px);
    animation: slideInOption 0.4s ease forwards;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.modal-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.modal-option:hover {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(118, 75, 162, 0.08));
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.25);
}

.modal-option:hover::before {
    left: 100%;
}

@keyframes slideInOption {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-option-text {
    flex: 1;
    font-weight: 500;
    font-size: 1rem;
}

.modal-counter {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    text-align: center;
    color: #495057;
    font-size: 0.9rem;
}

        .modal-counter p {
            margin: 0;
        }

        .modal-no-results {
            text-align: center;
            padding: 3rem 2rem;
            color: #666;
            background: #f8f9fa;
            border-radius: 15px;
            margin: 1rem 0;
        }

        .modal-no-results p {
            margin: 0.5rem 0;
        }

        .modal-no-results p:first-child {
            font-size: 1.2rem;
            color: #495057;
        }

        .modal-no-results small {
            color: #868e96;
        }

        .modal-trigger-container {
            position: relative;
            display: flex;
            align-items: center;
        }

        .modal-trigger-container input {
            flex: 1;
            padding-right: 3rem;
        }

        .modal-trigger-btn {
            position: absolute;
            right: 0.5rem;
            top: 50%;
            transform: translateY(-50%);
            background: linear-gradient(135deg, #667eea, #764ba2);
            color: white;
            border: none;
            border-radius: 50%;
            width: 2.5rem;
            height: 2.5rem;
            cursor: pointer;
            transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            display: flex;
            align-items: center;
            justify-content: center;
            animation: pulse 2s infinite;
            box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
        }

        @keyframes pulse {
            0% {
                box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7);
                transform: translateY(-50%) scale(1);
            }
            50% {
                box-shadow: 0 0 0 8px rgba(102, 126, 234, 0.3);
                transform: translateY(-50%) scale(1.05);
            }
            100% {
                box-shadow: 0 0 0 0 rgba(102, 126, 234, 0);
                transform: translateY(-50%) scale(1);
            }
        }

        .modal-trigger-btn:hover {
            background: #5a6fd8;
            transform: translateY(-50%) scale(1.1);
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
        }

        .modal-trigger-btn i {
            font-size: 1rem;
        }

/* Estilos para el trigger de la modal */
.modal-trigger-container {
    position: relative;
    display: flex;
    align-items: center;
}

.modal-trigger-container input {
    flex: 1;
    padding-right: 3rem;
}

.modal-trigger-btn {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7);
        transform: translateY(-50%) scale(1);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(102, 126, 234, 0.3);
        transform: translateY(-50%) scale(1.05);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0);
        transform: translateY(-50%) scale(1);
    }
}

.modal-trigger-btn:hover {
    background: #5a6fd8;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.modal-trigger-btn i {
    font-size: 1rem;
}

/* Responsive para modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 95vh;
        max-width: none;
    }
    
    .modal-header {
        padding: 1rem;
    }
    
    .modal-header h3 {
        font-size: 1.1rem;
    }
    
    .modal-body {
        padding: 1rem;
        max-height: 80vh;
    }
    
    .modal-options {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .modal-option {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .modal-counter {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
}
