/* Contenedores con bordes suaves y buen contraste */
.calc-container {
    background:#fff;
    border:1px solid #e2e8f0;
    border-radius:8px;
    padding:24px;
    margin:20px auto;
    max-width:800px;
}

/* Títulos y subtítulos */
.calc-title {
    font-size:1.35rem;
    font-weight:700;
    margin-bottom:4px;
    color:#0f172a;
}
.calc-subtitle {
    font-size:0.85rem;
    color:#64748b;
    margin-bottom:14px;
}

/* Etiquetas de formulario */
.calc-label {
    display:block;
    font-size:0.9rem;
    font-weight:600;
    margin-bottom:6px;
    color:#334155;
}

/* Campos de entrada */
.calc-input {
    width:100%;
    padding:10px 12px;
    border:1px solid #cbd5e1;
    border-radius:6px;
    font-size:1rem;
    box-sizing:border-box;
    background-color:#f8fafc;
    color:#1e293b;
}
.calc-input:focus {
    outline:none;
    border-color:#1B2D4B;
    background-color:#fff;
}

/* Resultados destacados */
.calc-result {
    margin-top:24px;
    padding-top:20px;
    border-top:1px dashed #cbd5e1;
}
.calc-result-value {
    font-size:2rem;
    font-weight:800;
    color:#1B2D4B;
    margin-top:4px;
}

/* Hint de validación */
.calc-hint {
    font-size:0.78rem;
    color:#94a3b8;
    display:block;
    margin-top:2px;
}

/* Errores en tonos neutros (nunca rojo) */
.calc-error {
    border-color:#e2e8f0;
    background-color:#f8fafc;
    color:#475569;
}
.calc-error-msg {
    display:block;
    font-size:0.75rem;
    color:#b91c1c;
    margin-top:4px;
}

/* Grid responsivo */
.calc-grid-2 {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:24px;
}
@media (max-width: 640px) {
    .calc-container { padding:16px; margin:10px auto; }
    .calc-grid-2 { grid-template-columns:1fr; gap:0px; }
}

/* Botones - estilo ikwi */
.calc-btn {
    width:100%;
    background:linear-gradient(135deg, #1B2D4B 0%, #2b4570 100%);
    color:#fff;
    font-weight:700;
    padding:12px;
    border:none;
    border-radius:6px;
    cursor:pointer;
    font-size:1rem;
    transition:transform 0.15s, box-shadow 0.15s;
}
.calc-btn:hover {
    transform:translateY(-1px);
    box-shadow:0 6px 16px rgba(27,45,75,0.32);
}

/* Tarjeta de resultado principal - estilo CER/Sueldo */
.calc-card-result-main {
    background:linear-gradient(135deg, #1B2D4B 0%, #1e3a66 100%);
    color:#ffffff;
    border-radius:12px;
    padding:22px 24px;
    text-align:center;
    margin-bottom:20px;
    box-shadow:0 8px 24px rgba(27,45,75,0.2);
}

/* Filas de resultado */
.calc-result-row {
    display:flex;
    justify-content:space-between;
    padding:8px 0;
    border-bottom:1px solid #f1f5f9;
    font-size:0.9rem;
}
.calc-result-row .label { color:#64748b; }
.calc-result-row .value { font-weight:700; color:#0f172a; }

/* Cabecera de calculadora: badge + titulo + subtitulo */
.calc-header {
    margin-bottom:20px;
    padding-bottom:14px;
    border-bottom:2px solid #1B2D4B;
}
.calc-badge {
    font-size:.78rem; color:#1B2D4B; background:#eff6ff;
    display:inline-block; padding:3px 10px; border-radius:20px;
    margin-bottom:6px; font-weight:600;
}
.calc-title { line-height:1.25; }
.calc-subtitle { line-height:1.45; }

/* Grupos de formulario */
.calc-form-group { margin-bottom:16px; }

/* Panel con titulo propio */
.calc-panel {
    background:#fff;
    border:1px solid #e2e8f0;
    border-radius:10px;
    padding:18px 20px;
    margin-bottom:16px;
}
.calc-panel-title {
    font-size:.95rem; font-weight:700; color:#0f172a;
    margin:0 0 10px; padding-bottom:6px; border-bottom:1px solid #f1f5f9;
}

/* Etiqueta de resultado cuando va sobre la tarjeta azul */
.calc-result-label { color:#cbd5e1; font-weight:600; }

/* Aviso legal / nota metodologica */
.calc-disclaimer {
    font-size:.75rem; color:#94a3b8; margin-top:18px; line-height:1.5;
    padding:10px 12px; background:#f8fafc;
    border:1px solid #e2e8f0; border-radius:6px;
}
.calc-disclaimer strong { color:#64748b; }
/* ==========================================================================
   HUB DE CALCULADORAS - IKIWI ESPAÑA (ESTILO EDITORIAL SOBRIO)
   ========================================================================== */

.ikiwi-hub {
    max-width: 1080px;
    margin: 0 auto;
    color: #1e293b;
    -webkit-font-smoothing: antialiased;
}

/* Hero */
.hub-hero {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}
.hub-hero h1 {
    font-size: 2rem;
    font-weight: 800;
    color: #1B2D4B;
    line-height: 1.2;
    margin: 0 0 10px 0;
    letter-spacing: -0.02em;
}
.hub-hero p {
    font-size: 1.05rem;
    line-height: 1.55;
    color: #475569;
    margin: 0;
}

/* Enlaces ancla rápidos */
.hub-anchors {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    align-items: center;
    padding: 10px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 36px;
    font-size: 0.88rem;
}
.hub-anchors-label {
    font-weight: 600;
    color: #64748b;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-right: 4px;
}
.hub-anchors a {
    color: #1B2D4B;
    text-decoration: none;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 5px;
    transition: background-color 0.15s, color 0.15s;
}
.hub-anchors a:hover {
    background-color: #e2e8f0;
    color: #0f172a;
    text-decoration: none;
}
.hub-anchors .sep {
    color: #cbd5e1;
    user-select: none;
}

/* Categorías */
.hub-category {
    margin-bottom: 44px;
    scroll-margin-top: 24px;
}
.hub-category-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #0f172a;
}
.hub-category-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    letter-spacing: -0.01em;
}
.hub-category-count {
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
}

/* Grid de tarjetas */
.hub-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

/* Tarjeta sobria */
.hub-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 18px 20px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
    border-color: #1B2D4B;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}
.hub-card:hover {
    border-color: #1B2D4B;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
    text-decoration: none;
}
.hub-card:focus-visible {
    outline: 2px solid #1B2D4B;
    outline-offset: 2px;
}

/* Banner comercial suave al pie de cada categoría */
.hub-commercial-banner {
    margin-top: 18px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.hub-commercial-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.hub-commercial-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #0f172a;
}
.hub-commercial-desc {
    font-size: 0.82rem;
    color: #64748b;
    margin: 0;
}
.hub-commercial-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
    background: #1B2D4B;
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.15s ease;
    white-space: nowrap;
}
.hub-commercial-btn:hover {
    background: #233b63;
    color: #ffffff;
    text-decoration: none;
}

/* Bloque final de descubrimiento (roadmap / próximas) */
.hub-discovery {
    margin-top: 48px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 24px;
}
.hub-discovery-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 6px 0;
}
.hub-discovery-desc {
    font-size: 0.88rem;
    color: #475569;
    margin: 0;
    line-height: 1.45;
}
.hub-discovery-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    margin-top: 16px;
}
.hub-discovery-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.86rem;
    font-weight: 600;
    color: #1B2D4B;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 8px 14px;
    text-decoration: none;
    transition: border-color 0.15s, background-color 0.15s;
}
.hub-discovery-link:hover {
    border-color: #1B2D4B;
    background-color: #f1f5f9;
    text-decoration: none;
    color: #0f172a;
}
.hub-discovery-tag {
    font-size: 0.7rem;
    color: #0369a1;
    background: #e0f2fe;
    border-radius: 4px;
    padding: 2px 6px;
    font-weight: 600;
}

/* Responsividad */
@media (max-width: 768px) {
    .hub-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .hub-hero h1 {
        font-size: 1.55rem;
    }
    .hub-commercial-banner {
        flex-direction: column;
        align-items: flex-start;
    }
    .hub-commercial-btn {
        width: 90%;
        justify-content: center;
    }
    .hub-discovery-links {
        flex-direction: column;
        gap: 8px;
    }
    .hub-discovery-link {
        width: 100%;
        box-sizing: border-box;
        justify-content: space-between;
    }
}


.hub-card-top {
    display: flex;
    align-items: center;
    justify-content: start;
    margin-bottom: 10px;
    gap: 8px;
}
.hub-icon {
    width: 22px;
    height: 22px;
    color: #006644;
    stroke: currentColor;
    flex-shrink: 0;
}
.hub-card:hover .hub-icon {
    color: #0284c7;
}

.hub-card-title {
    font-size: 1.10rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
    margin: 0 0 0px 0;
}
.hub-card-desc {
    font-size: 0.88rem;
    line-height: 1.45;
    color: #475569;
    margin: 0 0 14px 0;
    flex-grow: 1;
}

.hub-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.86rem;
    font-weight: 600;
    color: #006644;
    margin-top: auto;
    transition: color 0.15s ease, gap 0.15s ease;
}
.hub-card:hover .hub-card-cta {
    color: #0284c7;
    gap: 7px;
}