/* Estilos adicionales para el Generador de Cliente Ideal */

/* Reset básico */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background-color: #0f172a;
    color: #e2e8f0;
    line-height: 1.6;
}

/* Animaciones personalizadas */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Clases de animación */
.animate-fade-in {
    animation: fadeIn 0.5s ease-in-out forwards;
}

.animate-slide-up {
    animation: slideUp 0.5s ease-in-out forwards;
}

.animate-spin {
    animation: spin 1s linear infinite;
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Mejoras de accesibilidad */
button:focus,
input:focus {
    outline: 2px solid #f97316;
    outline-offset: 2px;
}

/* Estilo para el scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1e293b;
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* Estilos para texto seleccionado */
::selection {
    background-color: #f97316;
    color: white;
}

/* Gradiente personalizado para el texto del header */
.text-gradient {
    background: linear-gradient(135deg, #f97316, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Efectos hover mejorados */
.hover-lift:hover {
    transform: translateY(-2px);
    transition: transform 0.2s ease-in-out;
}

/* Estilos para las tarjetas de perfil */
.profile-card {
    background: linear-gradient(145deg, #1e293b, #334155);
    border: 1px solid #475569;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.profile-card:hover {
    border-color: #f97316;
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.1);
    transform: translateY(-2px);
}

.profile-card h3 {
    color: #e2e8f0;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-card .icon {
    width: 40px;
    height: 40px;
    background: rgba(249, 115, 22, 0.1);
    color: #f97316;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.profile-card .content {
    color: #94a3b8;
    line-height: 1.6;
}

.profile-card ul {
    margin: 0;
    padding-left: 20px;
}

.profile-card li {
    margin-bottom: 8px;
    line-height: 1.5;
}

/* Estilos para las subsecciones formateadas */
.subsection {
    margin-bottom: 16px;
}

.subsection:last-child {
    margin-bottom: 0;
}

.subsection-title {
    color: #f97316;
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.formatted-list {
    margin: 0;
    padding-left: 16px;
    list-style-type: disc;
}

.formatted-list li {
    margin-bottom: 6px;
    line-height: 1.4;
    color: #94a3b8;
}

.formatted-list li::marker {
    color: #f97316;
}

.subsection p {
    margin: 0;
    color: #94a3b8;
    line-height: 1.5;
}

/* Espaciado entre subsecciones */
.subsection + .subsection {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
}

/* Estilos responsivos */
@media (max-width: 768px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }
    
    .profile-card {
        padding: 16px;
    }
    
    .profile-card h3 {
        font-size: 1.125rem;
    }
}

/* Estados de carga */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Estilos para el botón de copiar cuando está copiado */
.copied {
    background: linear-gradient(135deg, #10b981, #059669) !important;
}

/* Efectos de transición suaves */
.smooth-transition {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Estilos para inputs con estados de error */
.input-error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 1px #ef4444 !important;
}

/* Mejoras visuales para los botones */
.btn-primary {
    background: linear-gradient(135deg, #f97316, #f59e0b);
    border: none;
    color: white;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Estilos para el área de API key */
.api-key-section {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid #f59e0b;
    border-radius: 8px;
    padding: 16px;
    margin-top: 16px;
}

.api-key-section input {
    background: rgba(51, 65, 85, 0.5);
    border: 1px solid #334155;
    color: #e2e8f0;
}

.api-key-section input:focus {
    border-color: #f97316;
    box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.2);
}