.hg-dpf-page {
    font-family: 'Poppins', sans-serif;
}

.menu-hermes-wrap {
    background: linear-gradient(90deg, #0b3f8f 0%, #1268c9 52%, #07956a 100%) !important;
    border-bottom: 4px solid #0fcf8a;
    box-shadow: 0 10px 28px rgba(7, 58, 119, 0.18);
}

.menu-hermes .nav-links > li > a,
.menu-hermes .nav-links > li > a i {
    color: #ffffff !important;
}

.menu-hermes .nav-links > li > a.active,
.menu-hermes .nav-links > li > a:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
}

.hg-dpf-hero {
    position: relative;
    overflow: hidden;
    padding: 64px 0 66px;
    background:
        radial-gradient(circle at 14% 10%, rgba(35, 116, 203, 0.24), transparent 30%),
        radial-gradient(circle at 88% 82%, rgba(15, 207, 138, 0.20), transparent 34%),
        linear-gradient(135deg, #062947 0%, #064532 48%, #0a8157 100%);
}

.hg-dpf-hero::before {
    content: '';
    position: absolute;
    width: 640px;
    height: 640px;
    border: 1px solid rgba(215, 166, 47, 0.25);
    border-radius: 50%;
    right: 34%;
    top: -210px;
    pointer-events: none;
}

.hg-dpf-hero-box {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
    gap: 42px;
    align-items: center;
}

.hg-dpf-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 20px;
    border: 1px solid rgba(215, 166, 47, 0.75);
    border-radius: 999px;
    color: #ffd466;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.3px;
    background: rgba(5, 44, 32, 0.55);
}

.hg-dpf-hero-copy h1 {
    margin: 24px 0 16px;
    max-width: 740px;
    color: #ffffff !important;
    text-shadow: 0 8px 26px rgba(0, 0, 0, 0.22);
    font-size: clamp(38px, 5vw, 68px);
    line-height: 1.05;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -1.5px;
}

.hg-dpf-hero-copy h1::after {
    content: '';
    display: block;
    width: 82px;
    height: 5px;
    margin-top: 22px;
    border-radius: 999px;
    background: #d7a62f;
}

.hg-dpf-hero-copy p {
    max-width: 620px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 17px;
    line-height: 1.75;
    margin: 0;
}

.hg-dpf-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 28px;
}

.hg-dpf-trust-row span {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: rgba(255, 255, 255, 0.88);
    font-weight: 600;
    font-size: 14px;
}

.hg-dpf-trust-row i {
    color: #ffd466;
}

.hg-dpf-rate-panel {
    padding: 28px;
    border-radius: 28px;
    background: linear-gradient(145deg, rgba(5, 39, 83, 0.94), rgba(4, 89, 64, 0.92));
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.26);
    backdrop-filter: blur(10px);
}

.hg-dpf-rate-head {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 22px;
}

.hg-dpf-rate-logo {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ffd466, #d7a62f);
    color: #064532;
    font-size: 26px;
    box-shadow: 0 12px 28px rgba(215, 166, 47, 0.28);
}

.hg-dpf-rate-head strong {
    display: block;
    color: #ffffff;
    font-size: 26px;
    line-height: 1.1;
}

.hg-dpf-rate-head small {
    display: block;
    color: rgba(255, 255, 255, 0.84);
    margin-top: 5px;
    line-height: 1.45;
}

.hg-dpf-max-rate-card {
    padding: 26px 24px;
    border-radius: 24px;
    background: linear-gradient(135deg, #fffdf2, #f7edcf);
    border: 1px solid rgba(255, 212, 102, 0.45);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.75), 0 18px 35px rgba(0,0,0,0.14);
    color: #164737;
}

.hg-dpf-max-rate-card span {
    display: block;
    color: #5d746a;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 6px;
}

.hg-dpf-max-rate-card strong {
    display: block;
    color: #0b4b96;
    font-size: clamp(34px, 4vw, 48px);
    line-height: 1.05;
    letter-spacing: -1px;
}

.hg-dpf-max-rate-card small {
    display: block;
    margin-top: 12px;
    color: #49665b;
    line-height: 1.55;
    font-size: 13px;
}

.hg-dpf-rate-benefits {
    display: grid;
    gap: 11px;
    margin-top: 18px;
}

.hg-dpf-rate-benefits span {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.09);
    color: rgba(255, 255, 255, 0.92);
    font-weight: 700;
    font-size: 13px;
}

.hg-dpf-rate-benefits i {
    color: #ffd466;
}

.hg-dpf-section {
    padding: 58px 0 74px;
    background: #f6faf7;
}

.hg-dpf-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
    gap: 26px;
    align-items: stretch;
}

.hg-dpf-form,
.hg-dpf-resultados,
.hg-dpf-table-wrap {
    border-radius: 26px;
    background: #ffffff;
    border: 1px solid rgba(20, 112, 74, 0.12);
    box-shadow: 0 18px 45px rgba(18, 62, 41, 0.10);
}

.hg-dpf-form {
    padding: 28px;
}

.hg-dpf-form-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 22px;
    margin-bottom: 22px;
}

.hg-dpf-form-head h2 {
    margin: 0 0 6px;
    color: #103d2d;
    font-size: 25px;
}

.hg-dpf-form-head h2 i {
    color: #d7a62f;
    margin-right: 8px;
}

.hg-dpf-form-head p {
    margin: 0;
    color: #65776e;
    font-size: 13px;
    line-height: 1.55;
}

.hg-dpf-mini-rate {
    min-width: 130px;
    padding: 12px 15px;
    border-radius: 18px;
    text-align: center;
    background: linear-gradient(135deg, #f7edcf, #fffaf0);
    border: 1px solid rgba(215, 166, 47, 0.42);
}

.hg-dpf-mini-rate span {
    display: block;
    color: #60746a;
    font-size: 12px;
    margin-bottom: 2px;
}

.hg-dpf-mini-rate strong {
    color: #0f6f4c;
    font-size: 25px;
}

.hg-dpf-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.hg-dpf-field label,
.hg-dpf-payment-selector label {
    display: block;
    font-weight: 800;
    color: #113c2c;
    margin-bottom: 8px;
    font-size: 14px;
}

.hg-dpf-field input,
.hg-dpf-field select {
    width: 100%;
    height: 50px;
    border-radius: 14px;
    border: 1px solid #d8e7df;
    background: #fbfdfc;
    padding: 0 14px;
    font-size: 14px;
    color: #173c2f;
    outline: none;
    transition: all 0.2s ease;
}

.hg-dpf-field input:focus,
.hg-dpf-field select:focus {
    border-color: #0f8f5f;
    box-shadow: 0 0 0 4px rgba(15, 143, 95, 0.11);
}

.hg-dpf-payment-selector {
    margin-top: 22px;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid #dbece2;
    background: #fbfdfc;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}

.hg-dpf-payment-selector p {
    margin: 0;
    color: #65776e;
    font-size: 13px;
}

.hg-dpf-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #d8e7df;
    flex-shrink: 0;
}

.hg-dpf-toggle label {
    margin: 0;
    cursor: pointer;
}

.hg-dpf-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.hg-dpf-toggle span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 134px;
    height: 39px;
    padding: 0 18px;
    border-radius: 999px;
    color: #49665b;
    font-weight: 800;
    transition: all 0.18s ease;
}

.hg-dpf-toggle input:checked + span {
    background: linear-gradient(135deg, #0d7a50, #13a86d);
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(19, 168, 109, 0.20);
}

.hg-dpf-note-box {
    margin-top: 22px;
    padding: 18px;
    border-radius: 18px;
    background: linear-gradient(135deg, #f9fbf5, #eef8f2);
    border: 1px solid #dbece2;
}

.hg-dpf-note-box h3 {
    margin: 0 0 8px;
    color: #103d2d;
    font-size: 17px;
}

.hg-dpf-note-box h3 i {
    color: #d1a02d;
    margin-right: 6px;
}

.hg-dpf-note-box p {
    margin: 0;
    color: #51635b;
    font-size: 13px;
    line-height: 1.55;
}

.hg-dpf-actions {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hg-dpf-primary-btn,
.hg-dpf-secondary-btn {
    border: none;
    border-radius: 999px;
    padding: 13px 22px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hg-dpf-primary-btn {
    background: linear-gradient(135deg, #0d7a50, #13a86d);
    color: #ffffff;
    box-shadow: 0 12px 25px rgba(19, 168, 109, 0.22);
}

.hg-dpf-secondary-btn {
    background: #eef5f1;
    color: #0e6143;
}

.hg-dpf-primary-btn:hover,
.hg-dpf-secondary-btn:hover {
    transform: translateY(-2px);
}

.hg-dpf-resultados {
    padding: 24px;
    display: flex;
}

.hg-dpf-placeholder {
    width: 100%;
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #60746a;
}

.hg-dpf-placeholder i {
    font-size: 52px;
    color: #d7a62f;
    margin-bottom: 16px;
}

.hg-dpf-result-card {
    width: 100%;
}

.hg-dpf-result-card h3 {
    margin: 0 0 16px;
    color: #103d2d;
    font-size: 23px;
}

.hg-dpf-main-kpi {
    padding: 20px;
    border-radius: 22px;
    background: linear-gradient(135deg, #0f6f4c, #12a06a);
    color: white;
    text-align: center;
    margin-bottom: 16px;
}

.hg-dpf-main-kpi span {
    display: block;
    opacity: 0.88;
    font-size: 13px;
    margin-bottom: 5px;
}

.hg-dpf-main-kpi strong {
    display: block;
    font-size: 32px;
    line-height: 1.12;
}

.hg-dpf-main-kpi small {
    display: block;
    margin-top: 6px;
    opacity: 0.82;
}

.hg-dpf-metric-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.hg-dpf-metric {
    padding: 13px;
    border-radius: 16px;
    background: #f7fbf8;
    border: 1px solid #e2eee7;
}

.hg-dpf-metric span {
    display: block;
    color: #60746a;
    font-size: 12px;
    line-height: 1.35;
}

.hg-dpf-metric strong {
    display: block;
    margin-top: 5px;
    color: #0f5132;
    font-size: 16px;
}

.hg-dpf-metric.hg-dpf-total {
    background: linear-gradient(135deg, #fff8df, #ffffff);
    border-color: rgba(215, 166, 47, 0.42);
}

.hg-dpf-summary-list {
    display: grid;
    gap: 4px;
}

.hg-dpf-summary-list div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 9px 0;
    border-bottom: 1px solid #eef3ef;
    color: #4c6258;
    font-size: 13px;
}

.hg-dpf-summary-list strong {
    color: #0f5132;
    text-align: right;
}

.hg-dpf-error {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px;
    border-radius: 16px;
    background: #fff4f0;
    color: #a14224;
    font-weight: 700;
}

.hg-dpf-table-wrap {
    margin-top: 28px;
    padding: 22px;
}

.hg-dpf-table-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.hg-dpf-table-head h3 {
    margin: 0;
    color: #103d2d;
    font-size: 20px;
}

.hg-dpf-table-head h3 i {
    color: #d1a02d;
    margin-right: 6px;
}

.hg-dpf-table-head p {
    margin: 4px 0 0;
    color: #60746a;
    font-size: 13px;
}

.hg-dpf-table-scroll {
    overflow-x: auto;
}

.hg-dpf-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 920px;
    font-size: 13px;
}

.hg-dpf-table th {
    background: #0f6f4c;
    color: #ffffff;
    text-align: right;
    padding: 13px 12px;
    white-space: nowrap;
}

.hg-dpf-table th:first-child,
.hg-dpf-table td:first-child {
    text-align: center;
}

.hg-dpf-table td {
    padding: 12px;
    border-bottom: 1px solid #ecf2ee;
    text-align: right;
    color: #385247;
}

.hg-dpf-table tr:hover td {
    background: #f8fbf9;
}

@media (max-width: 1100px) {
    .hg-dpf-hero-box,
    .hg-dpf-panel {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hg-dpf-hero {
        padding: 44px 0;
    }

    .hg-dpf-hero-copy h1 {
        font-size: 36px;
    }

    .hg-dpf-form-grid,
    .hg-dpf-metric-grid {
        grid-template-columns: 1fr;
    }

    .hg-dpf-payment-selector,
    .hg-dpf-form-head,
    .hg-dpf-table-head {
        flex-direction: column;
        align-items: stretch;
    }

    .hg-dpf-toggle {
        width: 100%;
        justify-content: space-between;
    }

    .hg-dpf-toggle label,
    .hg-dpf-toggle span {
        flex: 1;
        min-width: auto;
    }
}
