/* ==========================================================================
   EmprendeGo Pack Empresa - Formulario público
   Estética: Idéntica a emprendego.cl
   Fondo azul marino oscuro + naranja vibrante + blanco
   Fuente: Inter / system-ui bold
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    /* Colores de emprendego.cl */
    --epe-bg:           #0d1b2e;
    --epe-bg-card:      #112240;
    --epe-bg-input:     #0a1628;
    --epe-bg-input-focus: #0d1f35;
    --epe-border:       rgba(255,255,255,0.1);
    --epe-border-strong:rgba(255,255,255,0.2);

    --epe-text:         #ffffff;
    --epe-text-muted:   rgba(255,255,255,0.65);
    --epe-text-subtle:  rgba(255,255,255,0.4);

    --epe-brand:        #FF6B35;
    --epe-brand-hover:  #ff8a57;
    --epe-brand-soft:   rgba(255,107,53,0.15);
    --epe-brand-glow:   rgba(255,107,53,0.25);

    --epe-success:      #10b981;
    --epe-error:        #ff4d4d;

    --epe-radius:       16px;
    --epe-radius-sm:    10px;
    --epe-radius-xs:    6px;

    --epe-shadow:       0 4px 24px rgba(0,0,0,0.4);
    --epe-shadow-lg:    0 20px 60px rgba(0,0,0,0.6);
    --epe-shadow-brand: 0 8px 24px rgba(255,107,53,0.35);

    --epe-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ========== CONTENEDOR PRINCIPAL ========== */

.epe-form-container {
    background: var(--epe-bg);
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(255,107,53,0.08) 0%, transparent 70%),
        radial-gradient(ellipse 40% 40% at 90% 80%, rgba(13,120,232,0.06) 0%, transparent 60%);
    color: var(--epe-text);
    font-family: var(--epe-font);
    line-height: 1.5;
    padding: 60px 20px;
    min-height: 100vh;
    box-sizing: border-box;
}

.epe-form-container *, .epe-form-container *::before, .epe-form-container *::after {
    box-sizing: border-box;
}

.epe-form-wrapper {
    max-width: 740px;
    margin: 0 auto;
    background: var(--epe-bg-card);
    border: 1px solid var(--epe-border);
    border-radius: var(--epe-radius);
    padding: 52px 48px;
    box-shadow: var(--epe-shadow-lg);
    position: relative;
    overflow: hidden;
}

/* Borde superior naranja sutil */
.epe-form-wrapper::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--epe-brand), #ff9a6c);
}

@media (max-width: 640px) {
    .epe-form-container { padding: 20px 12px; }
    .epe-form-wrapper   { padding: 32px 20px; border-radius: var(--epe-radius-sm); }
}

/* ========== LOGO / MARCA DENTRO DEL FORMULARIO ========== */

.epe-form-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 32px;
}

.epe-form-brand-dot {
    width: 10px;
    height: 10px;
    background: var(--epe-brand);
    border-radius: 50%;
}

.epe-form-brand-text {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--epe-text-muted);
}

/* ========== BARRA DE PROGRESO ========== */

.epe-progress {
    margin-bottom: 40px;
}

.epe-progress-bar {
    height: 5px;
    background: rgba(255,255,255,0.08);
    border-radius: 100px;
    overflow: hidden;
}

.epe-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--epe-brand), #ff9a6c);
    border-radius: 100px;
    transition: width 0.5s cubic-bezier(0.4,0,0.2,1);
    box-shadow: 0 0 12px rgba(255,107,53,0.5);
}

.epe-progress-text {
    margin-top: 10px;
    font-size: 12px;
    font-weight: 600;
    color: var(--epe-text-subtle);
    text-align: right;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ========== PASOS ========== */

.epe-step {
    display: none;
    animation: epeStepIn 0.35s cubic-bezier(0.4,0,0.2,1);
}
.epe-step[data-active="true"] { display: block; }

@keyframes epeStepIn {
    from { opacity: 0; transform: translateX(16px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* ========== TÍTULOS ========== */

.epe-form-title {
    font-size: 36px;
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin: 0 0 16px;
    color: #ffffff;
}

.epe-form-title span {
    color: var(--epe-brand);
}

.epe-form-description {
    font-size: 16px;
    color: var(--epe-text-muted);
    margin: 0 0 32px;
    line-height: 1.65;
}

.epe-step-title {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 6px;
    color: #ffffff;
}

.epe-step-description {
    font-size: 15px;
    color: var(--epe-text-muted);
    margin: 0 0 28px;
}

/* Línea naranja decorativa bajo el título del paso */
.epe-step-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--epe-brand);
    border-radius: 100px;
    margin-top: 10px;
}

/* ========== BADGE DE PASO ========== */

.epe-step-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px 5px 8px;
    background: var(--epe-brand-soft);
    border: 1px solid rgba(255,107,53,0.3);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    color: var(--epe-brand);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 20px;
}

.epe-step-badge-num {
    width: 20px;
    height: 20px;
    background: var(--epe-brand);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 900;
}

/* ========== CAMPOS ========== */

.epe-fields {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 36px;
}

.epe-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: opacity 0.2s ease;
}

.epe-field[data-conditional-hidden="true"] { display: none; }

.epe-field-label {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 12px;
}

.epe-required {
    color: var(--epe-brand);
    margin-left: 3px;
}

.epe-field-description {
    font-size: 14px;
    color: var(--epe-text-muted);
    margin: 0;
    line-height: 1.55;
}

.epe-field-help {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 13px;
    color: var(--epe-text-subtle);
    margin: 2px 0 0;
    padding: 10px 14px;
    background: rgba(255,107,53,0.05);
    border-left: 2px solid var(--epe-brand);
    border-radius: 0 var(--epe-radius-xs) var(--epe-radius-xs) 0;
    line-height: 1.5;
}

.epe-field-help svg {
    flex-shrink: 0;
    margin-top: 1px;
    color: var(--epe-brand);
}

/* ========== INPUTS BASE ========== */

.epe-input,
.epe-textarea,
.epe-select {
    width: 100%;
    background: var(--epe-bg-input);
    border: 1.5px solid var(--epe-border);
    border-radius: var(--epe-radius-sm);
    padding: 14px 18px;
    font-size: 15px;
    font-family: var(--epe-font);
    font-weight: 500;
    color: #ffffff;
    transition: all 0.18s ease;
    outline: none;
}

.epe-input::placeholder,
.epe-textarea::placeholder {
    color: var(--epe-text-subtle);
    font-weight: 400;
}

.epe-input:focus,
.epe-textarea:focus,
.epe-select:focus {
    border-color: var(--epe-brand);
    background: var(--epe-bg-input-focus);
    box-shadow: 0 0 0 3px var(--epe-brand-soft), 0 0 20px var(--epe-brand-glow);
}

.epe-input.epe-error,
.epe-textarea.epe-error,
.epe-select.epe-error {
    border-color: var(--epe-error);
    box-shadow: 0 0 0 3px rgba(255,77,77,0.12);
}

.epe-textarea {
    resize: vertical;
    min-height: 110px;
    line-height: 1.6;
}

.epe-select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3e%3cpath d='M1 1l5 5 5-5' stroke='%23FF6B35' stroke-width='2' stroke-linecap='round'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 18px center;
    padding-right: 48px;
    cursor: pointer;
    color: #ffffff;
}

.epe-select option {
    background: #112240;
    color: #ffffff;
}

/* ========== CURRENCY INPUT ========== */

.epe-currency-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.epe-currency-symbol {
    position: absolute;
    left: 18px;
    font-size: 16px;
    font-weight: 700;
    color: var(--epe-brand);
    pointer-events: none;
    z-index: 1;
}

.epe-input-currency {
    padding-left: 34px;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
}

/* ========== RADIO BUTTONS ========== */

.epe-radio-group,
.epe-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.epe-radio-option,
.epe-checkbox-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: var(--epe-bg-input);
    border: 1.5px solid var(--epe-border);
    border-radius: var(--epe-radius-sm);
    cursor: pointer;
    transition: all 0.18s ease;
    user-select: none;
}

.epe-radio-option:hover,
.epe-checkbox-option:hover {
    border-color: rgba(255,107,53,0.4);
    background: rgba(255,107,53,0.05);
    transform: translateX(2px);
}

.epe-radio-option input[type="radio"],
.epe-checkbox-option input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.epe-radio-letter {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--epe-border-strong);
    border-radius: var(--epe-radius-xs);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    color: var(--epe-text-muted);
    transition: all 0.18s ease;
    letter-spacing: 0;
}

.epe-radio-label,
.epe-checkbox-label {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
    color: var(--epe-text);
    line-height: 1.4;
}

/* Estado seleccionado */
.epe-radio-option.epe-checked,
.epe-radio-option:has(input:checked) {
    border-color: var(--epe-brand);
    background: var(--epe-brand-soft);
    box-shadow: 0 0 0 1px rgba(255,107,53,0.2);
}

.epe-radio-option.epe-checked .epe-radio-letter,
.epe-radio-option:has(input:checked) .epe-radio-letter {
    background: var(--epe-brand);
    border-color: var(--epe-brand);
    color: white;
    box-shadow: var(--epe-shadow-brand);
}

.epe-radio-option.epe-checked .epe-radio-label,
.epe-radio-option:has(input:checked) .epe-radio-label {
    color: #ffffff;
    font-weight: 600;
}

.epe-checkbox-option.epe-checked,
.epe-checkbox-option:has(input:checked) {
    border-color: var(--epe-brand);
    background: var(--epe-brand-soft);
}

/* ========== VIDEO EXPLICATIVO ========== */

.epe-field-video { margin-top: 10px; }

.epe-video-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1.5px solid rgba(255,107,53,0.35);
    color: var(--epe-brand);
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    font-family: var(--epe-font);
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.18s ease;
}

.epe-video-toggle:hover {
    background: var(--epe-brand-soft);
    border-color: var(--epe-brand);
    transform: translateY(-1px);
}

.epe-video-wrapper {
    margin-top: 12px;
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--epe-radius-sm);
    border: 1px solid var(--epe-border);
    background: var(--epe-bg-input);
}

.epe-video-wrapper iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: 0;
}

/* ========== ERROR DE CAMPO ========== */

.epe-field-error {
    font-size: 13px;
    font-weight: 500;
    color: var(--epe-error);
    margin-top: 4px;
    padding: 8px 14px;
    background: rgba(255,77,77,0.08);
    border-radius: var(--epe-radius-xs);
    border-left: 2px solid var(--epe-error);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ========== REPETIDOR (SOCIOS) ========== */

.epe-repeater {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.epe-repeater-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.epe-repeater-item {
    background: var(--epe-bg-input);
    border: 1.5px solid var(--epe-border);
    border-radius: var(--epe-radius);
    padding: 20px;
    position: relative;
    transition: border-color 0.18s ease;
}

.epe-repeater-item:hover {
    border-color: rgba(255,107,53,0.3);
}

.epe-repeater-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--epe-border);
}

.epe-repeater-item-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--epe-brand);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.epe-repeater-remove {
    background: transparent;
    border: 1px solid rgba(255,77,77,0.3);
    color: rgba(255,77,77,0.7);
    cursor: pointer;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    font-family: var(--epe-font);
    border-radius: 100px;
    transition: all 0.15s ease;
}

.epe-repeater-remove:hover {
    background: rgba(255,77,77,0.1);
    border-color: var(--epe-error);
    color: var(--epe-error);
}

.epe-repeater-item-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
}

.epe-repeater-field label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--epe-text-subtle);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.epe-repeater-field input {
    width: 100%;
    background: rgba(255,255,255,0.04);
    border: 1.5px solid var(--epe-border);
    border-radius: var(--epe-radius-xs);
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
    font-family: var(--epe-font);
    outline: none;
    transition: border-color 0.15s ease;
}

.epe-repeater-field input:focus {
    border-color: var(--epe-brand);
    background: rgba(255,107,53,0.05);
}

/* ========== BOTONES ========== */

.epe-step-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid var(--epe-border);
}

.epe-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    font-family: var(--epe-font);
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.18s cubic-bezier(0.4,0,0.2,1);
    text-decoration: none;
    outline: none;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.epe-btn:focus-visible {
    box-shadow: 0 0 0 3px var(--epe-brand-soft);
}

/* Botón primario: igual que "¡Cotiza Aquí Hoy!" de emprendego.cl */
.epe-btn-primary {
    background: var(--epe-brand);
    color: white;
    border-color: var(--epe-brand);
    box-shadow: 0 4px 16px rgba(255,107,53,0.3);
}

.epe-btn-primary:hover:not(:disabled) {
    background: var(--epe-brand-hover);
    border-color: var(--epe-brand-hover);
    transform: translateY(-2px);
    box-shadow: var(--epe-shadow-brand);
}

.epe-btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

/* Botón secundario: outline naranja */
.epe-btn-secondary {
    background: transparent;
    color: var(--epe-text-muted);
    border-color: var(--epe-border-strong);
}

.epe-btn-secondary:hover:not(:disabled) {
    color: var(--epe-text);
    border-color: var(--epe-brand);
    background: var(--epe-brand-soft);
}

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

/* Botón de inicio grande */
.epe-step-intro .epe-btn-primary {
    font-size: 17px;
    padding: 16px 40px;
    box-shadow: 0 6px 24px rgba(255,107,53,0.4);
}

/* ========== SPINNER ========== */

.epe-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: epeSpin 0.65s linear infinite;
    flex-shrink: 0;
}

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

/* ========== REVISIÓN FINAL ========== */

.epe-review-content {
    background: var(--epe-bg-input);
    border: 1.5px solid var(--epe-border);
    border-radius: var(--epe-radius);
    padding: 24px;
    margin-bottom: 24px;
}

.epe-review-section {
    margin-bottom: 24px;
}

.epe-review-section:last-child { margin-bottom: 0; }

.epe-review-section-title {
    font-size: 11px;
    font-weight: 800;
    color: var(--epe-brand);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,107,53,0.2);
}

.epe-review-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 14px;
}

.epe-review-item:last-child { border-bottom: 0; }

.epe-review-key {
    color: var(--epe-text-muted);
    flex-shrink: 0;
    min-width: 42%;
}

.epe-review-value {
    color: #ffffff;
    text-align: right;
    font-weight: 600;
    word-break: break-word;
}

/* ========== PANTALLA DE ÉXITO ========== */

.epe-form-success {
    text-align: center;
    padding: 64px 20px;
    animation: epeStepIn 0.5s ease;
}

.epe-success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    background: var(--epe-brand-soft);
    border: 2px solid rgba(255,107,53,0.4);
    border-radius: 50%;
    color: var(--epe-brand);
    margin-bottom: 28px;
    box-shadow: 0 0 40px rgba(255,107,53,0.2);
}

.epe-success-title {
    font-size: 36px;
    font-weight: 900;
    margin: 0 0 12px;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.epe-success-message {
    font-size: 17px;
    color: var(--epe-text-muted);
    margin: 0 auto;
    max-width: 460px;
    line-height: 1.65;
}

/* ========== SEPARADOR ========== */

.epe-separator h3 {
    font-size: 16px;
    font-weight: 800;
    color: var(--epe-brand);
    margin: 16px 0 0;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,107,53,0.25);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ========== PASO INTRO ========== */

.epe-step-intro .epe-step-actions {
    border-top: none;
    padding-top: 8px;
}

/* ========== INTRO: badge de confianza ========== */

.epe-trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
}

.epe-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--epe-border);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    color: var(--epe-text-muted);
}

.epe-trust-badge svg {
    color: var(--epe-brand);
    flex-shrink: 0;
}

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

@media (max-width: 520px) {
    .epe-form-title     { font-size: 28px; }
    .epe-step-title     { font-size: 22px; }
    .epe-btn            { padding: 12px 20px; font-size: 14px; }
    .epe-step-actions   { flex-direction: column-reverse; }
    .epe-step-actions .epe-btn { width: 100%; justify-content: center; }
    .epe-radio-option,
    .epe-checkbox-option { padding: 12px 14px; }
    .epe-repeater-item-fields { grid-template-columns: 1fr; }
}
