/* ===== CSS ESPECÍFICO PARA PÁGINA DE DIAGNÓSTICO ===== */
/* Solo estilos nuevos - No duplica los del CSS principal */

/* Hero Section Diagnóstico */
.diagnostic-hero {
    position: relative;
    height: 60vh;
    background: linear-gradient(135deg, rgba(0,0,0,0.7), rgba(255,107,53,0.8)), 
                url('../fotos/7.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: 80px;
}

.hero-overlay {
    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 100 20"><circle cx="10" cy="10" r="1" fill="rgba(255,107,53,0.2)"/><circle cx="30" cy="5" r="1" fill="rgba(255,107,53,0.1)"/><circle cx="70" cy="15" r="1" fill="rgba(255,107,53,0.15)"/></svg>');
    animation: float 20s ease-in-out infinite;
}

.diagnostic-hero .hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 2rem;
}

.diagnostic-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease-out;
}

.diagnostic-hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-badge {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-badge span {
    background: rgba(255,255,255,0.2);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    transition: all 0.3s ease;
}

.hero-badge span:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

/* Sección del Formulario */
.diagnostic-form-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
}

.form-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,0.1);
}

/* Sidebar */
.form-sidebar {
    background: linear-gradient(135deg, #1e293b, #334155);
    color: white;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.form-sidebar::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 100 100"><defs><pattern id="grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
}

.sidebar-content {
    position: relative;
    z-index: 1;
}

.sidebar-content h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: white;
}

.benefit-list {
    margin-bottom: 3rem;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.benefit-item:hover {
    background: rgba(255,255,255,0.15);
    transform: translateX(5px);
}

.benefit-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ff6b35, #ffa500);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.benefit-text h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: white;
}

.benefit-text p {
    font-size: 0.9rem;
    opacity: 0.8;
    line-height: 1.5;
}

.guarantee-box {
    background: linear-gradient(135deg, #ff6b35, #e55a2b);
    padding: 2rem;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.guarantee-icon {
    font-size: 2rem;
}

.guarantee-text strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.guarantee-text p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}

/* Formulario Principal */
.form-main {
    padding: 3rem;
}

.form-header {
    text-align: center;
    margin-bottom: 3rem;
}

.form-header h2 {
    font-size: 2.5rem;
    color: #1e293b;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.form-header p {
    color: #64748b;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Barra de Progreso */
.progress-bar {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #ff6b35, #ffa500);
    width: 0%;
    transition: width 0.5s ease;
    border-radius: 10px;
}

.progress-text {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 600;
}

/* Pasos del Formulario */
.form-step {
    display: none;
    animation: fadeInRight 0.5s ease-out;
}

.form-step.active {
    display: block;
}

.form-step h3 {
    font-size: 1.8rem;
    color: #1e293b;
    margin-bottom: 2rem;
    font-weight: 700;
}

/* Grupos de Formulario */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f9fafb;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff6b35;
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Opciones de Radio */
.radio-group {
    display: grid;
    gap: 1rem;
}

.radio-group.inline {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.radio-option {
    position: relative;
}

.radio-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.radio-option label {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: normal;
}

.radio-option label:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.radio-option input[type="radio"]:checked + label {
    background: linear-gradient(135deg, rgba(255,107,53,0.1), rgba(255,165,0,0.1));
    border-color: #ff6b35;
    box-shadow: 0 8px 25px rgba(255,107,53,0.15);
}

.radio-option.small label {
    padding: 1rem 1.5rem;
    justify-content: center;
    text-align: center;
}

.radio-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff6b35, #ffa500);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.radio-option input[type="radio"]:checked + label .radio-icon {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(255,107,53,0.3);
}

.radio-content strong {
    display: block;
    font-size: 1.1rem;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.radio-content p {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

/* Información de Impacto */
.impact-info {
    text-align: center;
    margin: 2rem 0;
}

.impact-highlight {
    background: linear-gradient(135deg, #ff6b35, #ffa500);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    display: inline-block;
    margin-bottom: 2rem;
}

.impact-number {
    font-size: 3rem;
    font-weight: 800;
    display: block;
}

.impact-text {
    font-size: 1.1rem;
    opacity: 0.95;
}

/* Navegación del Formulario */
.form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.btn-secondary,
.btn-primary,
.btn-submit {
    padding: 1rem 2rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary {
    background: #f1f5f9;
    color: #64748b;
    border: 2px solid #e2e8f0;
}

.btn-secondary:hover:not(:disabled) {
    background: #e2e8f0;
    color: #475569;
}

.btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: linear-gradient(135deg, #ff6b35, #e55a2b);
    color: white;
    box-shadow: 0 4px 15px rgba(255,107,53,0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #e55a2b, #cc4d24);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255,107,53,0.4);
}

.btn-submit {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 4px 15px rgba(16,185,129,0.3);
    font-size: 1.1rem;
    padding: 1.2rem 3rem;
}

.btn-submit:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16,185,129,0.4);
}

/* Animaciones específicas para diagnóstico */
@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .form-wrapper {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .form-sidebar {
        order: 2;
    }
    
    .form-main {
        order: 1;
    }
}

@media (max-width: 768px) {
    .diagnostic-hero {
        height: 50vh;
        margin-top: 70px;
    }
    
    .diagnostic-hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-badge {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .diagnostic-form-section {
        padding: 3rem 0;
    }
    
    .form-main,
    .form-sidebar {
        padding: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .radio-group.inline {
        grid-template-columns: 1fr;
    }
    
    .radio-option label {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .radio-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .form-navigation {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn-secondary,
    .btn-primary,
    .btn-submit {
        width: 100%;
        justify-content: center;
    }
    
    .loader {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #ff6b35;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

}