/**
 * ═══════════════════════════════════════════════════════════
 * ESTILOS COMPLETOS PARA PLAN DE NEGOCIO CON IA - INEX.PE
 * Diseño moderno, responsive y profesional
 * ═══════════════════════════════════════════════════════════
 */

/* ==================== VARIABLES CSS ==================== */
:root {
    --primary: #2196f3;
    --primary-dark: #1976d2;
    --primary-light: #64b5f6;
    --secondary: #667eea;
    --secondary-dark: #764ba2;
    --success: #4caf50;
    --success-dark: #388e3c;
    --warning: #ff9800;
    --warning-dark: #f57c00;
    --danger: #f44336;
    --danger-dark: #d32f2f;
    --dark: #1a1a2e;
    --light: #f5f7fa;
    --white: #ffffff;
    --text: #2c3e50;
    --text-light: #6c757d;
    --text-dark: #1a1a1a;
    --border: #e1e8ed;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-lg: rgba(0, 0, 0, 0.15);
}

/* ==================== RESET Y BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    padding: 2rem 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==================== CONTENEDOR PRINCIPAL ==================== */
.app-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ==================== HEADER ==================== */
.app-header {
    background: white;
    border-radius: 20px;
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 40px var(--shadow-lg);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--primary);
    font-weight: 700;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.logo-link:hover {
    color: var(--primary-dark);
    transform: translateX(-5px);
}

.logo-link i {
    font-size: 1.2rem;
}

.header-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--dark);
    text-align: center;
    flex: 1;
}

/* ==================== MAIN CONTENT ==================== */
.main-content {
    min-height: 60vh;
}

/* ==================== WELCOME SECTION ==================== */
.welcome-section {
    animation: fadeInUp 0.6s ease-out;
}

.welcome-card {
    background: white;
    border-radius: 24px;
    padding: 4rem 3rem;
    text-align: center;
    box-shadow: 0 20px 60px var(--shadow-lg);
    max-width: 900px;
    margin: 0 auto;
}

.welcome-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(33, 150, 243, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

.welcome-icon i {
    font-size: 3rem;
    color: white;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 10px 30px rgba(33, 150, 243, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 15px 40px rgba(33, 150, 243, 0.4);
    }
}

.welcome-card h2 {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.welcome-card > p {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.action-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.features-preview {
    display: flex;
    gap: 2rem;
    justify-content: center;
    padding-top: 2rem;
    border-top: 2px solid var(--light);
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text);
    font-weight: 600;
}

.feature-item i {
    font-size: 1.5rem;
    color: var(--primary);
}

/* ==================== FORM SECTIONS ==================== */
.form-section {
    animation: fadeInUp 0.6s ease-out;
}

.form-section.hidden {
    display: none;
}

.form-card {
    background: white;
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 20px 60px var(--shadow-lg);
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.btn-back {
    position: absolute;
    top: 2rem;
    left: 2rem;
    background: var(--light);
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-back:hover {
    background: var(--primary);
    color: white;
    transform: translateX(-5px);
}

.form-card h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 0.5rem;
    margin-top: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.form-card h2 i {
    color: var(--primary);
}

.form-description {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

/* ==================== FORM ELEMENTS ==================== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group label i {
    color: var(--primary);
    font-size: 1.1rem;
}

.form-control,
.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: white;
}

.form-control:focus,
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(33, 150, 243, 0.1);
}

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

.form-text {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.4;
}

/* ==================== BUTTONS ==================== */
.btn {
    padding: 0.875rem 1.75rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    font-family: inherit;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--primary);
    color: white;
}

.btn-success {
    background: linear-gradient(135deg, var(--success), var(--success-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.btn-success:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger), var(--danger-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(244, 67, 54, 0.3);
}

.btn-danger:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 67, 54, 0.4);
}

.btn-large {
    padding: 1.125rem 2.5rem;
    font-size: 1.125rem;
}

.btn-full {
    width: 100%;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* ==================== DASHBOARD ==================== */
.dashboard-section {
    animation: fadeInUp 0.6s ease-out;
}

.dashboard-section.hidden {
    display: none;
}

.dashboard-header {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 40px var(--shadow-lg);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    flex-wrap: wrap;
}

.dashboard-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.dashboard-subtitle {
    color: var(--text-light);
    font-size: 1.05rem;
}

.code-display {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    margin-top: 1rem;
    font-weight: 700;
    font-size: 1.125rem;
    letter-spacing: 1px;
    color: var(--primary-dark);
}

.code-display i {
    color: var(--primary);
}

.badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
}

.badge-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.badge-success {
    background: linear-gradient(135deg, var(--success), var(--success-dark));
    color: white;
}

/* ==================== TABS ==================== */
.tabs {
    display: flex;
    gap: 0.5rem;
    background: white;
    border-radius: 20px;
    padding: 0.5rem;
    box-shadow: 0 10px 40px var(--shadow-lg);
    margin-bottom: 2rem;
    overflow-x: auto;
}

.tab {
    flex: 1;
    min-width: 150px;
    padding: 1rem 1.5rem;
    border: none;
    background: transparent;
    border-radius: 16px;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.tab:hover {
    background: var(--light);
    color: var(--text);
}

.tab.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

.tab i {
    font-size: 1.125rem;
}

/* ==================== CARDS ==================== */
.card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px var(--shadow-lg);
    overflow: hidden;
    margin-bottom: 2rem;
}

.card-header {
    padding: 1.5rem 2rem;
    border-bottom: 2px solid var(--light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card-title i {
    color: var(--primary);
}

.card-body {
    padding: 2rem;
}

.text-center {
    text-align: center;
}

/* ==================== LISTS ==================== */
.list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.list-item {
    padding: 1.25rem;
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

.list-item:last-child {
    border-bottom: none;
}

.list-item:hover {
    background: var(--light);
}

.flex {
    display: flex;
}

.justify-between {
    justify-content: space-between;
}

.align-center {
    align-items: center;
}

/* ==================== INFO GRID ==================== */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.info-card {
    background: var(--light);
    border-radius: 16px;
    padding: 1.5rem;
    border-left: 4px solid var(--primary);
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px var(--shadow);
}

.info-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    gap: 0.5rem;
}

.info-card-header h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
}

.info-content {
    color: var(--text);
    line-height: 1.6;
    margin: 0;
}

/* ==================== ALERTS ==================== */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border-left: 4px solid;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.alert i {
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.alert-info {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-left-color: var(--primary);
    color: #0d47a1;
}

.alert-success {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-left-color: var(--success);
    color: #1b5e20;
}

.alert-warning {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border-left-color: var(--warning);
    color: #e65100;
}

.alert-error {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    border-left-color: var(--danger);
    color: #c62828;
}

.alert strong {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 700;
}

/* ==================== MODAL ==================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1rem;
    animation: fadeIn 0.3s ease-out;
}

.modal {
    background: white;
    border-radius: 24px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 2px solid var(--light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
}

.btn-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.btn-close:hover {
    background: var(--light);
    color: var(--danger);
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

/* ==================== LOADING ==================== */
.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem;
}

.loading-spinner::after {
    content: '';
    width: 50px;
    height: 50px;
    border: 4px solid var(--light);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ==================== NOTIFICATIONS ==================== */
.notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    min-width: 300px;
    max-width: 400px;
    padding: 1.25rem 1.5rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px var(--shadow-lg);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 1rem;
    transform: translateX(500px);
    transition: transform 0.3s ease-out;
}

.notification.show {
    transform: translateX(0);
}

.notification.hidden {
    display: none;
}

.notification i {
    font-size: 1.5rem;
}

.notification-success {
    border-left: 4px solid var(--success);
}

.notification-success i {
    color: var(--success);
}

.notification-error {
    border-left: 4px solid var(--danger);
}

.notification-error i {
    color: var(--danger);
}

.notification-warning {
    border-left: 4px solid var(--warning);
}

.notification-warning i {
    color: var(--warning);
}

.notification-info {
    border-left: 4px solid var(--primary);
}

.notification-info i {
    color: var(--primary);
}

/* ==================== UTILITIES ==================== */
.hidden {
    display: none !important;
}

.text-danger {
    color: var(--danger);
}

.text-success {
    color: var(--success);
}

.text-warning {
    color: var(--warning);
}

.text-primary {
    color: var(--primary);
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 1024px) {
    .app-container {
        padding: 0 1.5rem;
    }

    .info-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    body {
        padding: 1rem 0;
    }

    .app-container {
        padding: 0 1rem;
    }

    .app-header {
        padding: 1rem 1.5rem;
        border-radius: 16px;
    }

    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .header-title {
        font-size: 1.5rem;
    }

    .welcome-card {
        padding: 2.5rem 2rem;
        border-radius: 20px;
    }

    .welcome-icon {
        width: 80px;
        height: 80px;
    }

    .welcome-icon i {
        font-size: 2.5rem;
    }

    .welcome-card h2 {
        font-size: 1.75rem;
    }

    .action-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .btn-large {
        width: 100%;
    }

    .features-preview {
        flex-direction: column;
        gap: 1rem;
    }

    .form-card {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }

    .btn-back {
        position: static;
        margin-bottom: 1rem;
        width: fit-content;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: stretch;
        padding: 1.5rem;
    }

    .dashboard-title {
        font-size: 1.5rem;
    }

    .tabs {
        overflow-x: auto;
        padding: 0.375rem;
    }

    .tab {
        min-width: 120px;
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
    }

    .card-header {
        flex-direction: column;
        align-items: stretch;
        padding: 1.25rem 1.5rem;
    }

    .card-body {
        padding: 1.5rem;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .modal {
        max-width: 95%;
    }

    .notification {
        right: 1rem;
        left: 1rem;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .app-header {
        padding: 1rem;
    }

    .logo-link {
        font-size: 1.25rem;
    }

    .header-title {
        font-size: 1.25rem;
    }

    .welcome-card {
        padding: 2rem 1.5rem;
    }

    .welcome-card h2 {
        font-size: 1.5rem;
    }

    .form-card {
        padding: 1.5rem 1rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }

    .card-title {
        font-size: 1.25rem;
    }
}

/* ==================== PRINT STYLES ==================== */
@media print {
    body {
        background: white;
        padding: 0;
    }

    .app-header,
    .tabs,
    .dashboard-header button,
    .btn,
    .modal-overlay,
    .notification {
        display: none !important;
    }

    .card {
        box-shadow: none;
        page-break-inside: avoid;
    }
}

/* ==================== COMPONENTES ADICIONALES ESPECÍFICOS ==================== */

/* Plan generado */
.plan-generated-alert {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.alert-icon {
    font-size: 3rem;
    color: var(--success);
}

.alert-content {
    flex: 1;
}

/* Empty state */
.empty-state-icon {
    font-size: 5rem;
    color: #cbd5e0;
    margin-bottom: 1.5rem;
}

.empty-state-title {
    font-size: 1.75rem;
    color: var(--text);
    margin-bottom: 1rem;
    font-weight: 700;
}

.empty-state-description {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Recommendations */
.recommendations-card {
    background: var(--light);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
}

.recommendations-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.recommendation-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: white;
    border-radius: 8px;
    font-size: 0.95rem;
}

.recommendation-item i {
    color: var(--success);
}

/* Botón ver plan */
.btn-view-plan {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

/* Colaborador message */
.collaborator-message {
    padding: 2rem;
    text-align: center;
}

.collaborator-message i {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.collaborator-text {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.collaborator-help {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* ==================== FIN DE ESTILOS ==================== */
/**
 * ═══════════════════════════════════════
 * ESTILOS ADICIONALES PARA PLAN ÚNICO
 * Advertencias, alertas y mejoras visuales
 * ═══════════════════════════════════════
 */

/* ==================== ALERTAS DE ADVERTENCIA ==================== */

.alert-warning {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border-left: 6px solid #ff9800;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.15);
    animation: pulseWarning 2s ease-in-out infinite;
}

@keyframes pulseWarning {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(255, 152, 0, 0.15);
    }
    50% {
        box-shadow: 0 6px 20px rgba(255, 152, 0, 0.25);
    }
}

.alert-warning h4 {
    color: #e65100;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert-warning h4 i {
    font-size: 1.4rem;
    animation: shake 0.5s ease-in-out infinite;
}

@keyframes shake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

.alert-warning p {
    color: #e65100;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.alert-warning ul {
    list-style: none;
    padding-left: 0;
    margin-top: 1rem;
}

.alert-warning ul li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #e65100;
}

.alert-warning ul li:before {
    content: "✅";
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.alert-warning strong {
    font-weight: 700;
    color: #d84315;
}

/* ==================== ALERT SUCCESS (Plan Generado) ==================== */

.alert-success {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-left: 6px solid #4caf50;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.15);
}

.plan-generated-alert {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.alert-icon {
    font-size: 3rem;
    color: #4caf50;
}

.alert-icon i {
    animation: successPulse 1.5s ease-in-out infinite;
}

@keyframes successPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.alert-content {
    flex: 1;
}

.alert-content strong {
    display: block;
    font-size: 1.2rem;
    color: #2e7d32;
    margin-bottom: 0.5rem;
}

.alert-content p {
    color: #1b5e20;
    margin: 0;
    line-height: 1.6;
}

/* ==================== ALERT INFO ==================== */

.alert-info {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-left: 6px solid #2196f3;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.no-regenerate-alert .alert-icon {
    font-size: 2.5rem;
    color: #1976d2;
}

.no-regenerate-alert .alert-content strong {
    display: block;
    font-size: 1.1rem;
    color: #0d47a1;
    margin-bottom: 0.5rem;
}

.no-regenerate-alert .alert-content p {
    color: #1565c0;
    margin: 0;
    line-height: 1.6;
}

/* ==================== INFORMACIÓN DEL PLAN ==================== */

.plan-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.plan-info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    border-radius: 10px;
    border-left: 4px solid #2196f3;
}

.plan-info-item i {
    font-size: 2rem;
    color: #2196f3;
}

.plan-info-label {
    display: block;
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

.plan-info-value {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
}

.badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
}

.badge-success {
    background: linear-gradient(135deg, #4caf50, #388e3c);
    color: white;
}

.badge-warning {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
}

/* ==================== CONTENEDOR DE ACCIÓN PRINCIPAL ==================== */

.plan-action-container {
    margin-top: 2rem;
    text-align: center;
}

.btn-action-primary {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 2rem;
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.3);
    min-width: 300px;
}

.btn-action-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(33, 150, 243, 0.4);
}

.btn-action-primary:active {
    transform: translateY(-1px);
}

/* ==================== ESTADO VACÍO (No hay plan) ==================== */

.plan-empty-state {
    padding: 3rem 2rem;
}

.empty-state-icon {
    font-size: 5rem;
    color: #cbd5e0;
    margin-bottom: 1.5rem;
}

.empty-state-icon i {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.empty-state-title {
    font-size: 1.75rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 700;
}

.empty-state-description {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* ==================== TARJETA DE RECOMENDACIONES ==================== */

.recommendations-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 700px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.recommendations-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.recommendations-header i {
    font-size: 1.5rem;
    color: #ffc107;
}

.recommendations-header h4 {
    font-size: 1.2rem;
    color: #2c3e50;
    margin: 0;
    font-weight: 700;
}

.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.recommendation-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: white;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #495057;
}

.recommendation-item i {
    color: #4caf50;
    font-size: 1.1rem;
}

.recommendations-footer {
    text-align: center;
    padding-top: 1rem;
    border-top: 2px solid #dee2e6;
    color: #6c757d;
    font-weight: 600;
}

/* ==================== BOTÓN DE GENERAR CON IA ==================== */

.generate-button-container {
    margin-top: 2rem;
}

.btn-generate-ai {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 350px;
    padding: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 16px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.btn-generate-ai:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

.btn-generate-ai:active {
    transform: translateY(-2px);
}

.btn-generate-ai:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn-generate-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem 2rem;
    width: 100%;
}

.btn-generate-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: shine 3s infinite;
}

@keyframes shine {
    to {
        left: 100%;
    }
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

.btn-icon i {
    font-size: 1.5rem;
    color: white;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    50% {
        transform: scale(1.2) rotate(180deg);
    }
}

.btn-text {
    flex: 1;
    text-align: left;
}

.btn-title {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.25rem;
}

.btn-subtitle {
    display: block;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.btn-arrow {
    font-size: 1.5rem;
    color: white;
}

.btn-arrow i {
    animation: arrowPulse 1.5s ease-in-out infinite;
}

@keyframes arrowPulse {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(5px);
    }
}

.generate-warning {
    margin-top: 1rem;
    padding: 1rem;
    background: #fff3cd;
    border-left: 4px solid #ff9800;
    border-radius: 8px;
    color: #856404;
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.generate-warning i {
    margin-right: 0.5rem;
    color: #ff9800;
}

/* ==================== MENSAJE PARA COLABORADOR ==================== */

.collaborator-message {
    padding: 2rem;
    text-align: center;
}

.collaborator-message i {
    font-size: 4rem;
    color: #2196f3;
    margin-bottom: 1rem;
}

.collaborator-text {
    font-size: 1.1rem;
    color: #495057;
    margin-bottom: 0.5rem;
}

.collaborator-help {
    font-size: 1rem;
    color: #6c757d;
    margin-bottom: 1.5rem;
}

/* ==================== RESPONSIVE DESIGN ==================== */

@media (max-width: 768px) {
    .alert-warning,
    .alert-success,
    .alert-info {
        padding: 1rem;
    }

    .alert-warning h4 {
        font-size: 1rem;
    }

    .plan-generated-alert {
        flex-direction: column;
        text-align: center;
    }

    .alert-icon {
        font-size: 2.5rem;
    }

    .plan-info-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .btn-action-primary {
        min-width: 100%;
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    .empty-state-icon {
        font-size: 3.5rem;
    }

    .empty-state-title {
        font-size: 1.5rem;
    }

    .recommendations-card {
        padding: 1.5rem;
    }

    .recommendations-grid {
        grid-template-columns: 1fr;
    }

    .btn-generate-ai {
        min-width: 100%;
    }

    .btn-generate-content {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem 1.5rem;
    }

    .btn-text {
        text-align: center;
    }

    .btn-title {
        font-size: 1.1rem;
    }

    .btn-subtitle {
        font-size: 0.85rem;
    }

    .generate-warning {
        font-size: 0.875rem;
        padding: 0.875rem;
    }

    .collaborator-message i {
        font-size: 3rem;
    }

    .collaborator-text {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .alert-warning ul li {
        font-size: 0.9rem;
    }

    .recommendation-item {
        font-size: 0.875rem;
    }

    .btn-icon {
        width: 40px;
        height: 40px;
    }

    .btn-icon i {
        font-size: 1.2rem;
    }
}

/* ==================== VISTA DE IMPRESIÓN ==================== */

@media print {
    .alert-warning,
    .generate-button-container,
    .btn-action-primary,
    .recommendations-card {
        display: none !important;
    }

    .plan-generated-alert {
        border: 2px solid #4caf50;
        page-break-inside: avoid;
    }
}

/* ==================== ANIMACIONES ADICIONALES ==================== */

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

.plan-empty-state,
.plan-generated-alert,
.recommendations-card {
    animation: fadeIn 0.5s ease-out;
}

/* ==================== FIN DE ESTILOS ==================== */