/* ========================================
   SOLICITUD PAGE STYLES - Basado en demo.css
   ======================================== */

.demo-main {
    padding-top: var(--navbar-height);
    min-height: 100vh;
}

.plan-trial {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.4;
}

/* ========================================
   DEMO FORM SECTION - Modificado para solicitud
   ======================================== */

.demo-form-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 30%, var(--primary-light) 60%, var(--secondary-color) 100%);
    position: relative;
}

.demo-form-container {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.demo-form-header {
    background: white;
    color: var(--text-dark);
    padding: 2rem 3rem;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
}

.main-form-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
    line-height: 1.3;
}

/* Layout de una sola columna */
.form-layout-columns {
    padding: 3rem;
}

/* Plan Info Card centrado */
.plan-info-card-sidebar {
    background: var(--background-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.5s ease;
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

.plan-info-card-sidebar.show {
    opacity: 1;
    transform: translateY(0);
}

.plan-info-content {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.plan-info-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--text-white);
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.plan-info-text {
    flex: 1;
}

.plan-info-text h3 {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.plan-info-text p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0 0 0.75rem 0;
}

.plan-info-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price-label {
    color: var(--text-light);
    font-size: 0.85rem;
}

.price-amount {
    color: var(--secondary-color);
    font-size: 1rem;
    font-weight: 600;
}

/* Sección de prueba gratuita */
.plan-trial {
    margin-top: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.1), rgba(16, 185, 129, 0.1));
    border: 1px solid rgba(5, 150, 105, 0.2);
    border-radius: 8px;
    position: relative;
}

.plan-trial span:first-child {
    display: block;
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.plan-trial span:last-child {
    display: block;
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.4;
    text-align: center;
}

/* Formulario unificado */
.demo-form {
    padding: 0;
}

.unified-form-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-light);
}

/* Separadores de sección */
.form-section-separator {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 1.5rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
    position: relative;
}

.form-section-separator:first-child {
    margin-top: 0;
}

/* Grid de 2 columnas para el formulario */
.form-grid-3 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-grid-3 .form-group.full-width {
    grid-column: 1 / -1;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group select {
    padding: 0 1rem !important;
}

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-input,
.form-select,
.form-textarea {
    padding: 0.625rem 0.875rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: white;
    height: 42px;
}

.form-select {
    height: 44px;
}

.form-textarea {
    height: auto;
    min-height: 100px;
    resize: vertical;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Sección del texto de términos */
.form-terms-section {
    margin: 2rem 0 1.5rem 0;
    padding: 1.5rem;
    background: var(--background-light);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    text-align: center;
}

.form-terms-section .terms-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
    max-width: 400px;
    margin: 0 auto;
}

.form-terms-section .terms-text a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.form-terms-section .terms-text a:hover {
    text-decoration: underline;
}

.form-submit {
    text-align: center;
    margin-top: 1.5rem;
}

.submit-btn {
    padding: 1rem 3rem;
    font-size: 1.1rem;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    min-width: 200px;
}

.submit-btn .btn-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.submit-btn.loading .btn-loader {
    opacity: 1;
}

.submit-btn.loading i:not(.fa-spin) {
    opacity: 0;
}

/* ========================================
   WHAT'S INCLUDED SECTION
   ======================================== */

.demo-included {
    padding: 5rem 0;
    background: white;
}

.section-header {
    margin-bottom: 4rem;
}

.section-header .section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
    justify-content: center;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-header .section-subtitle {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.6;
    text-align: center;
}

.included-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.included-item {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.included-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.included-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: transform 0.3s ease;
}

.included-item:hover .included-icon {
    transform: scale(1.1);
}

.included-icon i {
    font-size: 2rem;
    color: white;
}

.included-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.included-description {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ========================================
   PANTALLA DE ÉXITO
   ======================================== */

.success-screen {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.success-screen.show {
    opacity: 1;
    transform: translateY(0);
}

.success-content {
    text-align: center;
    max-width: 600px;
    width: 100%;
}

.success-animation {
    margin-bottom: 2rem;
    position: relative;
}

.success-icon {
    font-size: 3rem;
    color: var(--success-color);
    margin-bottom: 1.5rem;
    animation: successBounce 0.8s ease;
}

.success-title {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.success-description {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.success-info {
    background: var(--background-light);
    border-radius: var(--border-radius-lg);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
}

.info-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item i {
    color: var(--primary-color);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.success-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-home {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--border-radius-lg);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
}

.btn-home:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    text-decoration: none;
    color: white;
}

.btn-secondary {
    background: var(--background-card);
    color: var(--text-dark);
    padding: 1rem 2rem;
    border-radius: var(--border-radius-lg);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition-normal);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--primary-light);
    transform: translateY(-2px);
    text-decoration: none;
    color: var(--primary-color);
}

/* Animaciones */
@keyframes successBounce {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ========================================
   NOTIFICACIONES
   ======================================== */

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification {
    animation: slideIn 0.3s ease;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1024px) {
    .form-layout-columns {
        padding: 2rem;
    }
    
    .plan-info-card-sidebar {
        max-width: 90%;
    }
    
    .form-grid-3 {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .included-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .demo-form-section {
        padding: 3rem 0;
    }
    
    .demo-form-header {
        padding: 1.5rem 2rem;
    }
    
    .main-form-title {
        font-size: 1.5rem;
    }
    
    .form-layout-columns {
        padding: 1.5rem;
    }
    
    .plan-info-card-sidebar {
        margin: 0 auto 2rem auto;
        padding: 1.25rem;
        max-width: 100%;
    }
    
    .form-grid-3 {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .unified-form-section {
        padding: 1.5rem;
    }
    
    .demo-included {
        padding: 3rem 0;
    }
    
    .section-header .section-title {
        font-size: 2rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .included-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .included-item {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .demo-form-container {
        margin: 0 1rem;
        border-radius: 12px;
    }
    
    .demo-form-header {
        padding: 1rem 1.5rem;
    }
    
    .main-form-title {
        font-size: 1.25rem;
    }
    
    .form-layout-columns {
        padding: 1rem;
    }
    
    .unified-form-section {
        padding: 1rem;
    }
    
    .submit-btn {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
    
    /* Success screen responsive */
    .success-screen {
        min-height: 400px;
        padding: 1rem;
    }
    
    .success-title {
        font-size: 1.5rem;
    }
    
    .success-description {
        font-size: 0.95rem;
    }
    
    .success-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-home,
    .btn-secondary {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        padding: 1rem 1.5rem;
    }
    
    .success-icon {
        font-size: 2.5rem;
    }
    
    .info-item {
        font-size: 0.85rem;
    }
}