/* ===================================
   CONSULTORIA EN EXPANSIÓN - ESTILOS
   ===================================

   Estructura de archivo:
   1. Reset y configuración base
   2. Layout principal y contenedores
   3. Header y branding
   4. Sección de introducción
   5. Área de upload de archivos
   6. Botones y controles interactivos
   7. Formularios
   8. Modal popup
   9. Responsive design

   Paleta de colores:
   - Negro: #2c2c2c
   - Gris oscuro: #5a5a5a
   - Azul claro: #7dd3fc
   - Amarillo suave: #d4e157
   - Naranja: #ff9500
*/

/* ===================================
   1. 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;
    background: linear-gradient(135deg, #2c2c2c 0%, #5a5a5a 100%);
    min-height: 100vh;
    padding: 0px;
}

/* ===================================
   2. LAYOUT PRINCIPAL Y CONTENEDORES
   =================================== */

.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.main-content {
    padding: 0;
}

/* ===================================
   3. HEADER Y BRANDING
   =================================== */

.header {
    background: linear-gradient(135deg, #ff9500, #ffb84d);
    color: white;
    text-align: center;
    padding: 60px 40px;
}

.company-name {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.value-proposition {
    font-size: 1.4rem;
    font-weight: 300;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
}

/* ===================================
   4. SECCIÓN DE INTRODUCCIÓN
   =================================== */

.intro-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 60px 40px;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}

.intro-title {
    font-size: 2rem;
    color: #2c2c2c;
    margin-bottom: 30px;
    font-weight: 700;
}

.intro-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #2c2c2c;
}

.intro-highlight {
    background: linear-gradient(135deg, #ff9500, #ffb84d);
    color: white;
    padding: 3px 8px;
    border-radius: 5px;
    font-weight: 600;
}

/* Grid de ejemplos de beneficios */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.benefit-item {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
}

.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.benefit-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c2c2c;
    margin-bottom: 10px;
}

.benefit-description {
    color: #5a5a5a;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===================================
   5. ÁREA DE UPLOAD DE ARCHIVOS
   =================================== */

.upload-section {
    padding: 60px 40px;
    text-align: center;
    margin-bottom: 40px;
}

.upload-title {
    font-size: 1.3rem;
    color: #2c2c2c;
    margin-bottom: 30px;
    font-weight: 600;
}

.file-upload-area {
    border: 3px dashed #7dd3fc;
    border-radius: 15px;
    padding: 60px 30px;
    background: #f8f9fa;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.file-upload-area:hover {
    border-color: #38bdf8;
    background: #f0f9ff;
    transform: translateY(-2px);
}

.file-upload-area.dragover {
    border-color: #d4e157;
    background: #f9fbe7;
}

.file-upload-area.file-selected {
    background: #f9fbe7;
    border-color: #d4e157;
    color: #689f38;
}

.upload-icon {
    font-size: 4rem;
    color: #7dd3fc;
    margin-bottom: 20px;
}

.upload-text {
    font-size: 1.1rem;
    color: #2c2c2c;
    margin-bottom: 10px;
}

.upload-subtext {
    font-size: 0.9rem;
    color: #5a5a5a;
}

.file-input {
    display: none;
}

/* ===================================
   SECCIÓN DE PROCESO PASO A PASO
   =================================== */

.process-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 50px 40px;
    text-align: center;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.process-title {
    font-size: 1.8rem;
    color: #2c2c2c;
    margin-bottom: 40px;
    font-weight: 700;
}

.process-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 1px;
    max-width: 900px;
    margin: 0 auto;
}

/* Cada paso individual */
.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    min-width: 100px;
    padding: 15px 5px;
}

.step-icon {
    font-size: 2.5rem;
    margin-bottom: 1px;
    background: white;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.step-label {
    font-size: 1rem;
    font-weight: 600;
    color: #2c2c2c;
    margin-bottom: 3px;
}

.step-description {
    font-size: 0.85rem;
    color: #5a5a5a;
    font-weight: 500;
}

/* Flechas entre pasos */
.process-arrow {
    font-size: 1.5rem;
    color: #7dd3fc;
    font-weight: bold;
    flex-shrink: 0;
    margin: 0 1px;
}

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

@media (max-width: 768px) {
    .process-section {
        padding: 4px 20px;
    }

    .process-title {
        font-size: 1.5rem;
        margin-bottom: 3px;
    }

    .process-steps {
        flex-direction: column;
        gap: 3px;
    }

    .process-arrow {
        transform: rotate(90deg);
        font-size: 1.5rem;
        margin: 1px 0;
    }

    .step-icon {
        width: 70px;
        height: 70px;
        font-size: 2.5rem;
    }

    .process-step {
        min-width: auto;
        width: 100%;
        max-width: 20px;
    }
}

/* Animación opcional para cuando aparece la sección */
@media (prefers-reduced-motion: no-preference) {
    .process-step {
        opacity: 0;
        animation: fadeInUp 0.6s ease forwards;
    }

    .process-step:nth-child(1) { animation-delay: 0.1s; }
    .process-step:nth-child(3) { animation-delay: 0.2s; }
    .process-step:nth-child(5) { animation-delay: 0.3s; }
    .process-step:nth-child(7) { animation-delay: 0.4s; }

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

@media (max-width: 768px) {
    .process-section {
        padding: 40px 20px;
    }

    .process-title {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }

    .process-steps {
        flex-direction: column;
        gap: 30px;
    }

    .process-arrow {
        transform: rotate(90deg);
        font-size: 1.5rem;
        margin: 10px 0;
    }

    .step-icon {
        width: 70px;
        height: 70px;
        font-size: 2.5rem;
    }

    .process-step {
        min-width: auto;
        width: 100%;
        max-width: 200px;
    }
}

/* Animación opcional para cuando aparece la sección */
@media (prefers-reduced-motion: no-preference) {
    .process-step {
        opacity: 0;
        animation: fadeInUp 0.6s ease forwards;
    }

    .process-step:nth-child(1) { animation-delay: 0.1s; }
    .process-step:nth-child(3) { animation-delay: 0.2s; }
    .process-step:nth-child(5) { animation-delay: 0.3s; }
    .process-step:nth-child(7) { animation-delay: 0.4s; }

    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}
/* ===================================
   6. BOTONES Y CONTROLES INTERACTIVOS
   =================================== */

.buttons-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    margin-top: 20px;
}

/* Botón principal de upload */
.upload-button {
    background: linear-gradient(135deg, #7dd3fc, #38bdf8);
    color: white;
    padding: 18px 40px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(125, 211, 252, 0.3);
    opacity: 0.5;
    pointer-events: none;
    min-width: 280px;
}

.upload-button:enabled {
    opacity: 1;
    pointer-events: auto;
}

.upload-button:enabled:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(125, 211, 252, 0.4);
}

/* Botón secundario */
.secondary-button {
    background: transparent;
    color: #5a5a5a;
    border: 2px solid #5a5a5a;
    padding: 15px 35px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 280px;
}

.secondary-button:hover {
    background: #5a5a5a;
    color: white;
    transform: translateY(-2px);
}

.alternative-text {
    margin: 15px 0 5px 0;
    color: #5a5a5a;
    font-size: 0.9rem;
    text-align: center;
}

/* ===================================
   7. FORMULARIOS
   =================================== */

/* Formulario de solicitud de enlace por email */
.email-form-section {
    display: none;
    background: #f0f9ff;
    padding: 30px;
    border-radius: 15px;
    margin-top: 20px;
    border: 2px solid #7dd3fc;
    animation: slideIn 0.5s ease;
}

.email-form-section.show {
    display: block;
}

.email-form-title {
    font-size: 1.2rem;
    color: #2c2c2c;
    margin-bottom: 15px;
    text-align: center;
    font-weight: 600;
}

.email-form-subtitle {
    text-align: center;
    color: #5a5a5a;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.email-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.email-input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.email-input:focus {
    outline: none;
    border-color: #7dd3fc;
    box-shadow: 0 0 0 3px rgba(125, 211, 252, 0.1);
}

.send-email-button {
    background: linear-gradient(135deg, #7dd3fc, #38bdf8);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.send-email-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(125, 211, 252, 0.3);
}

/* Formulario principal de contacto */
.form-section {
    display: none;
    background: #f8f9fa;
    padding: 40px;
    border-radius: 15px;
    margin-top: 30px;
    animation: slideIn 0.5s ease;
}

.form-section.show {
    display: block;
}

.form-title {
    font-size: 1.4rem;
    color: #2c2c2c;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}

.form-subtitle {
    text-align: center;
    color: #5a5a5a;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c2c2c;
}

.form-input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #7dd3fc;
    box-shadow: 0 0 0 3px rgba(125, 211, 252, 0.1);
}

.submit-button {
    background: linear-gradient(135deg, #ff9500, #ffb84d);
    color: white;
    padding: 18px 40px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 149, 0, 0.3);
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 149, 0, 0.4);
}

/* ===================================
   8. MODAL POPUP
   =================================== */

.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.popup {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 40px;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

.popup-title {
    font-size: 1.5rem;
    color: #2c2c2c;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 700;
}

.popup-description {
    text-align: center;
    color: #5a5a5a;
    margin-bottom: 20px;
}

/* Timeline del proceso */
.timeline {
    margin: 30px 0;
}

.timeline-item {
    display: flex;
    margin-bottom: 20px;
    align-items: center;
}

.timeline-number {
    background: #7dd3fc;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 15px;
    flex-shrink: 0;
}

.timeline-content {
    flex: 1;
}

.timeline-title {
    font-weight: 600;
    color: #2c2c2c;
    margin-bottom: 5px;
}

.timeline-time {
    color: #5a5a5a;
    font-size: 0.9rem;
}

.close-popup {
    background: #5a5a5a;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    margin-top: 20px;
    width: 100%;
    transition: all 0.3s ease;
}

.close-popup:hover {
    background: #2c2c2c;
}

/* ===================================
   9. ANIMACIONES
   =================================== */

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* ===================================
   10. RESPONSIVE DESIGN
   =================================== */

@media (max-width: 768px) {
    .container {
        margin: 10px;
        border-radius: 15px;
    }

    .header {
        padding: 40px 20px;
    }

    .company-name {
        font-size: 2rem;
    }

    .value-proposition {
        font-size: 1.2rem;
    }

    .intro-section {
        padding: 40px 20px;
    }

    .intro-title {
        font-size: 1.6rem;
    }

    .intro-content {
        font-size: 1rem;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }

    .benefit-item {
        padding: 20px;
    }

    .upload-section {
        padding: 40px 20px;
    }

    .file-upload-area {
        padding: 40px 20px;
    }

    .upload-icon {
        font-size: 3rem;
    }

    .buttons-container {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .upload-button, .secondary-button {
        min-width: 250px;
        font-size: 1rem;
        padding: 16px 30px;
    }

    .email-input-group {
        flex-direction: column;
        gap: 15px;
    }

    .send-email-button {
        align-self: stretch;
        padding: 15px 25px;
    }

    .popup {
        padding: 30px 20px;
    }
}
