/* 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: #FF5757;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 20px;
    color: white;
}

.logo-container {
    display: inline-block;
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin: 0 auto;
}

.header-logo {
    max-width: 300px;
    height: auto;
    display: block;
}

/* Contenido principal */
.main-content {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* Secciones */
.form-section, .results-section {
    padding: 40px;
}



.form-section h2, .results-section h2 {
    color: #4a5568;
    margin-bottom: 30px;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Grid del formulario */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

/* Grupos de formulario */
.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #2d3748;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f7fafc;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #FF5757;
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 87, 87, 0.1);
}

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

/* Checkbox group */
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 8px;
}

/* Campo personalizado de tipo de negocio */
#customBusinessTypeGroup {
    transition: all 0.3s ease;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.checkbox-group label:hover {
    background-color: #f7fafc;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #FF5757;
}

/* Campos deshabilitados - Versión Capada */
.disabled-field {
    position: relative;
    opacity: 0.8;
}

.disabled-field input,
.disabled-field textarea,
.disabled-field select {
    background: #f8f9fa !important;
    border-color: #e2e8f0 !important;
    color: #4a5568 !important;
    cursor: not-allowed;
}

.disabled-field input:focus,
.disabled-field textarea:focus,
.disabled-field select:focus {
    border-color: #e2e8f0 !important;
    box-shadow: none !important;
    background: #f8f9fa !important;
}

.disabled-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 1.2rem;
    color: #6b7280;
    z-index: 10;
    backdrop-filter: blur(1px);
}

.disabled-checkbox {
    opacity: 0.8;
    cursor: not-allowed;
}

.disabled-checkbox input[type="checkbox"] {
    cursor: not-allowed;
    opacity: 0.6;
}

.disabled-checkbox:hover {
    background-color: transparent !important;
}

/* Aviso de función premium */
.premium-notice {
    text-align: center;
    padding: 60px 40px;
    background: #f8f9fa;
    border: 2px dashed #d1d5db;
    border-radius: 15px;
    color: #6b7280;
}

.premium-notice i {
    font-size: 3rem;
    color: #9ca3af;
    margin-bottom: 20px;
}

.premium-notice h3 {
    color: #4b5563;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.premium-notice p {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Botones */
.form-actions {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.results-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.form-info {
    display: flex;
    align-items: center;
    justify-self: start;
}

.form-info p {
    color: #4a5568;
    font-size: 0.9rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-info i {
    color: #FF5757;
    font-size: 1rem;
}

.form-premium-info {
    display: flex;
    align-items: center;
    justify-self: end;
}

.form-premium-info p {
    color: #6b7280;
    font-size: 0.9rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-premium-info i {
    color: #9ca3af;
    font-size: 1rem;
}

.form-button-center {
    display: flex;
    justify-content: center;
}

.btn {
    padding: 14px 28px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    min-width: 160px;
    justify-content: center;
}

.btn-primary {
    background: #FF5757;
    color: white;
    box-shadow: 0 4px 15px rgba(255, 87, 87, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 87, 87, 0.4);
}

.btn-secondary {
    background: #f7fafc;
    color: #4a5568;
    border: 2px solid #e2e8f0;
}

.btn-secondary:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
}

/* Tabs de resultados */
.results-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 24px;
    border: 2px solid #e2e8f0;
    background: #f7fafc;
    color: #4a5568;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.tab-btn.active,
.tab-btn:hover {
    background: #FF5757;
    color: white;
    border-color: #FF5757;
}

.disabled-tab {
    opacity: 0.6;
    cursor: not-allowed;
    background: #f1f1f1 !important;
    color: #6b7280 !important;
    border-color: #d1d5db !important;
}

.disabled-tab:hover {
    background: #f1f1f1 !important;
    color: #6b7280 !important;
    border-color: #d1d5db !important;
}

.disabled-tab i {
    margin-right: 5px;
    font-size: 0.9rem;
}

/* Botones deshabilitados */
.disabled-btn {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    background: #f1f1f1 !important;
    color: #6b7280 !important;
    border-color: #d1d5db !important;
    pointer-events: none !important;
}

.disabled-btn:hover {
    background: #f1f1f1 !important;
    color: #6b7280 !important;
    border-color: #d1d5db !important;
    transform: none !important;
    box-shadow: none !important;
}

.disabled-btn i {
    margin-right: 5px;
}

/* Aviso de protección de texto */
.text-protection-notice {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    color: #6b7280;
    border: 1px solid #d1d5db;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 10;
    white-space: nowrap;
}

.prompt-text:hover .text-protection-notice {
    display: block;
}

.text-protection-notice i {
    margin-right: 5px;
    color: #9ca3af;
}

/* Contenido de tabs */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Contenedor de prompts */
.prompts-container {
    display: grid;
    gap: 20px;
}

.prompt-card {
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 15px;
    padding: 25px;
    transition: all 0.3s ease;
    position: relative;
}

.prompt-card:hover {
    border-color: #FF5757;
    box-shadow: 0 8px 25px rgba(255, 87, 87, 0.1);
    transform: translateY(-2px);
}

.prompt-card h3 {
    color: #2d3748;
    margin-bottom: 15px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.prompt-card p {
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 15px;
}

.prompt-card .prompt-text {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 15px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #2d3748;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: none;
    cursor: default;
    filter: blur(0.3px);
    opacity: 0.95;
}

.prompt-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.85rem;
    min-width: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .logo-container {
        padding: 15px;
    }
    
    .header-logo {
        max-width: 250px;
    }
    
    .form-section, .results-section {
        padding: 20px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .results-tabs {
        justify-content: center;
    }
    
    .form-actions {
        grid-template-columns: 1fr;
        gap: 20px;
        justify-items: center;
    }
    
    .results-actions {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        margin-top: 30px;
    }
    
    .form-info {
        order: 2;
        justify-self: center;
    }
    
    .form-button-center {
        order: 1;
    }
    
    .form-premium-info {
        order: 3;
        justify-self: center;
        margin-top: 10px;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
}

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

.prompt-card {
    animation: fadeIn 0.5s ease-out;
}

/* Estados de carga */
.loading {
    text-align: center;
    padding: 40px;
    color: #4a5568;
}

.loading i {
    font-size: 2rem;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Mensajes de éxito/error */
.message {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.message.success {
    background: #c6f6d5;
    color: #22543d;
    border: 1px solid #9ae6b4;
}

.message.error {
    background: #fed7d7;
    color: #742a2a;
    border: 1px solid #feb2b2;
}

/* Modal para editar prompts */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
    display: flex;
    flex-direction: column;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 2px solid #e2e8f0;
    background: #f7fafc;
    border-radius: 15px 15px 0 0;
}

.modal-header h3 {
    margin: 0;
    color: #2d3748;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #4a5568;
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #e2e8f0;
    color: #2d3748;
}

.modal-body {
    padding: 25px;
    flex: 1;
    overflow: hidden;
}

.modal-body textarea {
    width: 100%;
    height: 300px;
    min-height: 200px;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    resize: vertical;
    background: #f7fafc;
    transition: all 0.3s ease;
}

.modal-body textarea:focus {
    outline: none;
    border-color: #FF5757;
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 87, 87, 0.1);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    padding: 20px 25px;
    border-top: 2px solid #e2e8f0;
    background: #f7fafc;
    border-radius: 0 0 15px 15px;
}

/* Responsive para modal */
@media (max-width: 768px) {
    .modal-content {
        margin: 10% auto;
        width: 95%;
        max-height: 85vh;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 15px;
    }
    
    .modal-body textarea {
        height: 250px;
        min-height: 150px;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .modal-footer .btn {
        width: 100%;
    }
} 