:root {
    --pink: #ff1592;
    --green: #69b04f;
    --yellow: #f0c331;
    --gray: #777;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #f3f3f3;
}

.subscriptions {
    padding: 60px 20px 40px;
    text-align: center;
}

.title-box {
    background: var(--pink);
    border-radius: 40px 40px;
    padding: 35px 20px;
    max-width: 900px;
    margin: 0 auto 50px;
}

.title-box h1 {
    color: #fff;
    font-size: 42px;
    margin: 0;
    letter-spacing: 2px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: auto;
}

.card {
    background: #fff;
    border: 2px solid var(--yellow);
    border-radius: 16px;
    padding: 25px 20px 30px;
    text-align: left;
}

.card h2 {
    margin: 0;
}

.subtitle {
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 20px;
}

.price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 20px;
}

.amount {
    font-size: 38px;
    color: var(--pink);
    font-weight: bold;
}

.card ul::before {
    content: "";
    display: block;
    height: 2px;
    background: var(--pink);
    margin: 15px 0 20px;
}

.card ul {
    list-style: none;
    padding: 0;
}

.card li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
}

.card li::before {
    content: "✔";
    position: absolute;
    left: 0;
    top: 0;
    background: var(--green);
    color: #fff;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-cta {
    background: var(--green);
    color: #fff;
    text-align: center;
    padding: 40px 20px;
}

.phone-btn {
    display: inline-block;
    background: #fff;
    color: var(--pink);
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: bold;
    text-decoration: none;
    border: 2px solid var(--yellow);
}

/*CALCULADORA DE COMISIONES*/

.commission-calculator-section {
    background: #f7f7f7;
    padding: 70px 15px;
}

.commission-calculator-container {
    max-width: 1050px;
    margin: 0 auto;
}

.commission-calculator-header {
    text-align: center;
    margin-bottom: 38px;
}

.commission-calculator-header h2 {
    margin: 0 0 12px;
    color: #ff1493;
    font-size: 34px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.commission-calculator-header p {
    margin: 0 auto;
    max-width: 720px;
    color: #555;
    font-size: 16px;
    line-height: 1.5;
}

.commission-calculator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: stretch;
}

.commission-card {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.12);
}

.calculator-input-card {
    border: 2px solid #ffc107;
    padding: 32px;
}

.calculator-result-card {
    position: relative;
    overflow: hidden;
    border: 2px solid #ff1493;
    padding: 34px 32px;
}

.calculator-result-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: #ff1493;
}

.commission-card-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}

.commission-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: #fff3cd;
    border-radius: 50%;
    font-size: 22px;
}

.commission-card-title h3 {
    margin: 0;
    color: #111;
    font-size: 25px;
    font-weight: 600;
}

.form-group-commission {
    margin-bottom: 22px;
}

.form-group-commission label {
    display: block;
    margin-bottom: 10px;
    color: #333;
    font-size: 15px;
    font-weight: 600;
}

.amount-input-wrapper {
    display: flex;
    align-items: center;
    border: 2px solid #e5e5e5;
    border-radius: 12px;
    padding: 0 16px;
    height: 64px;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.amount-input-wrapper:focus-within {
    border-color: #ff1493;
    box-shadow: 0 0 0 3px rgba(255, 20, 147, 0.12);
}

.amount-input-wrapper span {
    color: #ff1493;
    font-size: 28px;
    font-weight: 700;
    margin-right: 8px;
}

.amount-input-wrapper input {
    width: 100%;
    border: 0;
    outline: none;
    color: #111;
    font-size: 28px;
    font-weight: 700;
    background: transparent;
}

.amount-input-wrapper small {
    color: #111;
    font-size: 16px;
    font-weight: 700;
    margin-left: 8px;
}

.btn-calculate-commission {
    width: 100%;
    height: 54px;
    margin-top: 6px;
    border: 0;
    /*border-radius: 6px;*/
    background: #ff1493;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.20);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-calculate-commission:hover {
    background: #e6007e;
    transform: translateY(-1px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.24);
}

.commission-rules {
    margin-top: 26px;
    padding-top: 22px;
    border-top: 2px solid #ff1493;
}

.commission-rule-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 16px;
}

.commission-rule-item:last-child {
    margin-bottom: 0;
}

.commission-rule-item strong {
    color: #111;
    font-size: 15px;
}

.commission-rule-item span {
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

.result-label {
    display: inline-block;
    margin-bottom: 22px;
    padding: 8px 16px;
    border-radius: 30px;
    background: rgba(255, 20, 147, 0.10);
    color: #ff1493;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
}

.result-description {
    margin: 0 0 8px;
    color: #555;
    font-size: 16px;
}

.result-main-amount {
    color: #4caf50;
    font-size: 46px;
    font-weight: 800;
    line-height: 1.1;
}

.result-main-amount span {
    color: #111;
    font-size: 18px;
    font-weight: 700;
}

.result-divider {
    width: 100%;
    height: 2px;
    margin: 28px 0 22px;
    background: #ff1493;
}

.result-breakdown {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.result-row,
.result-total-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: #333;
    font-size: 15px;
}

.result-row strong,
.result-total-row strong {
    white-space: nowrap;
}

.result-row.negative strong {
    color: #d93636;
}

.result-total-row {
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid #ddd;
    color: #111;
    font-size: 17px;
    font-weight: 700;
}

.result-total-row strong {
    color: #4caf50;
    font-size: 20px;
}

.result-note {
    margin-top: 22px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #f9f9f9;
    color: #666;
    font-size: 12px;
    line-height: 1.4;
}

/* Responsive */
@media (max-width: 900px) {
    .commission-calculator-grid {
        grid-template-columns: 1fr;
    }

    .commission-calculator-header h2 {
        font-size: 28px;
    }

    .result-main-amount {
        font-size: 40px;
    }
}

@media (max-width: 520px) {
    .commission-calculator-section {
        padding: 50px 12px;
    }

    .calculator-input-card,
    .calculator-result-card {
        padding: 24px 20px;
    }

    .commission-calculator-header h2 {
        font-size: 24px;
    }

    .commission-card-title h3 {
        font-size: 21px;
    }

    .amount-input-wrapper {
        height: 58px;
    }

    .amount-input-wrapper input,
    .amount-input-wrapper span {
        font-size: 24px;
    }

    .result-main-amount {
        font-size: 34px;
    }

    .result-row,
    .result-total-row {
        font-size: 14px;
    }
}