/* Importar fuente moderna y profesional */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --helga-primary: #2563eb;
    /* Modern Blue */
    --helga-primary-hover: #1d4ed8;
    --helga-primary-light: #eff6ff;
    --helga-secondary: #f9fafb;
    --helga-text-main: #111827;
    --helga-text-muted: #6b7280;
    --helga-border: #d1d5db;
    --helga-bg-card: #ffffff;
    --helga-error: #ef4444;
    --helga-error-bg: #fef2f2;
    --helga-radius-lg: 20px;
    --helga-radius-md: 10px;
    --helga-shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 20px 40px -10px rgba(0, 0, 0, 0.08), 0 10px 20px -5px rgba(0, 0, 0, 0.04);
    --helga-shadow-input: 0 1px 2px rgba(0, 0, 0, 0.04);
    --helga-transition: all 0.25s ease;
}

[v-cloak] {
    display: none !important;
}

.helga-calculator-wrapper {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--helga-text-main);
    max-width: 480px;
    margin: 2.5rem auto;
    position: relative;
    padding: 0;
}

.helga-calculator-wrapper * {
    box-sizing: border-box;
}

.helga-calculator-card {
    background: var(--helga-bg-card);
    border-radius: var(--helga-radius-lg);
    padding: 2.5rem;
    box-shadow: var(--helga-shadow-card);
    border: 1.5px solid var(--helga-border);
    outline: 4px solid rgba(37, 99, 235, 0.06);
    outline-offset: -1px;
}

.helga-card-header {
    text-align: center;
    margin-bottom: 2rem;
}

.helga-calculator-title {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--helga-text-main);
    letter-spacing: -0.02em;
}

.helga-calculator-subtitle {
    margin: 0.5rem 0 1.25rem 0;
    font-size: 0.95rem;
    color: var(--helga-text-muted);
}

.helga-origin-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--helga-primary-light);
    color: var(--helga-primary);
    padding: 0.5rem 1rem;
    border-radius: var(--helga-radius-md);
    font-size: 0.85rem;
    font-weight: 600;
}

.helga-origin-badge svg {
    width: 18px;
    height: 18px;
}

/* Formulario */
.helga-form-group {
    margin-bottom: 1.5rem;
}

.helga-form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--helga-text-main);
}

.helga-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.helga-input-icon {
    position: absolute;
    left: 1.1rem;
    color: #9ca3af;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    transition: var(--helga-transition);
}

.helga-input-suffix {
    position: absolute;
    right: 1.1rem;
    font-size: 0.85rem;
    color: #9ca3af;
    font-weight: 500;
}

.helga-input {
    width: 100%;
    padding: 0.8rem 1.1rem 0.8rem 2.8rem;
    font-family: inherit;
    font-size: 0.95rem;
    border: 1px solid var(--helga-border);
    border-radius: var(--helga-radius-md);
    background-color: #ffffff;
    color: var(--helga-text-main);
    transition: var(--helga-transition);
    box-shadow: var(--helga-shadow-input);
}

.helga-input.helga-input-large {
    font-size: 1.05rem;
}

.helga-input:hover {
    border-color: #d1d5db;
}

.helga-input:focus {
    outline: none;
    border-color: var(--helga-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.helga-input:focus+.helga-input-icon,
.helga-input-wrapper:focus-within .helga-input-icon {
    color: var(--helga-primary);
}

select.helga-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239ca3af'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.1rem center;
    background-size: 1.2em;
    cursor: pointer;
}

/* Dimensiones */
.helga-dimensions-group {
    background: transparent;
    padding: 0;
    border: none;
}

.helga-dimensions-grid {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.helga-dimension-input {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.helga-dim-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--helga-text-muted);
    margin-bottom: 0.35rem;
    font-weight: 600;
    text-align: center;
    letter-spacing: 0.05em;
}

.helga-dimension-input .helga-input {
    padding: 0.7rem 0.5rem;
    text-align: center;
}

.helga-dimension-separator {
    color: var(--helga-border);
    margin-top: 1.5rem;
}

/* Errores */
.helga-alert-error {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: var(--helga-radius-md);
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.4;
    background-color: var(--helga-error-bg);
    color: #b91c1c;
    border: 1px solid #fecaca;
    animation: fadeIn 0.3s ease;
}

.helga-alert-error svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Botones */
.helga-form-actions {
    margin-top: 2rem;
}

.helga-btn {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    font-family: inherit;
    font-weight: 600;
    border: none;
    border-radius: var(--helga-radius-md);
    cursor: pointer;
    transition: var(--helga-transition);
}

.helga-btn-lg {
    padding: 0.9rem 1.5rem;
    font-size: 1.05rem;
}

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

.helga-btn-primary {
    background-color: var(--helga-primary);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
}

.helga-btn-primary:hover:not(:disabled) {
    background-color: var(--helga-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 8px -1px rgba(37, 99, 235, 0.3);
}

.helga-btn-secondary {
    background-color: var(--helga-bg-card);
    color: var(--helga-text-main);
    border: 1px solid var(--helga-border);
    box-shadow: var(--helga-shadow-input);
}

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

/* Animaciones */
.helga-spinner {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.4s ease forwards;
}

/* Tarjeta de Resultados */
.helga-result {
    text-align: center;
}

.helga-result-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #d1fae5;
    color: #047857;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.helga-result-badge svg {
    width: 16px;
    height: 16px;
}

.helga-result-header {
    margin-bottom: 2rem;
}

.helga-total-label {
    margin: 0 0 0.5rem 0;
    color: var(--helga-text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.helga-total-price {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    color: var(--helga-text-main);
}

.helga-currency {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 0.25rem;
    color: var(--helga-text-muted);
}

.helga-amount {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
}

.helga-currency-code {
    font-size: 1rem;
    font-weight: 600;
    margin-top: 2.2rem;
    margin-left: 0.25rem;
    color: var(--helga-text-muted);
}

.helga-result-breakdown-card {
    background: var(--helga-secondary);
    border-radius: var(--helga-radius-md);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px dashed var(--helga-border);
}

.helga-breakdown-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--helga-text-muted);
    text-transform: uppercase;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--helga-border);
    letter-spacing: 0.05em;
}

.helga-result-breakdown-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.helga-breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    font-size: 0.95rem;
}

.helga-breakdown-name {
    color: var(--helga-text-muted);
    font-weight: 500;
}

.helga-breakdown-value {
    color: var(--helga-text-main);
    font-weight: 600;
}