/* =====================================================
   EasyHermes — Pricing Page Redesign CSS
   Version: 1.0
   Date: 2026-05-24
   =====================================================
   This file overrides the default pricing-section-six
   styles with a modern, clean design featuring:
   - Subtle card borders with hover elevation
   - Plan badges (NUEVO, MÁS POPULAR)
   - Redesigned toggle switch
   - Improved typography and spacing
   - Better mobile responsiveness
   ===================================================== */

/* -----------------------------------------------
   1. HERO / HEADER SECTION
   ----------------------------------------------- */
.pricing-hero {
    padding: 170px 0 40px;
    text-align: center;
}

.pricing-hero h1 {
    font-size: 44px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.25;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.pricing-hero h1 em {
    font-style: italic;
    color: #037638;
    font-weight: 700;
}

.pricing-hero .hero-subtitle {
    font-size: 17px;
    color: #6b7280;
    max-width: 560px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

/* -----------------------------------------------
   2. BILLING TOGGLE (Pill Switch)
   ----------------------------------------------- */
.billing-toggle-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.billing-toggle {
    display: inline-flex;
    background: #f1f3f5;
    border-radius: 50px;
    padding: 4px;
    position: relative;
    border: 1px solid #e5e7eb;
}

.billing-toggle .toggle-option {
    padding: 10px 28px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    z-index: 1;
    border: none;
    background: transparent;
}

.billing-toggle .toggle-option.active {
    background: #1a1a1a;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.billing-toggle .toggle-option .save-badge {
    background: #dcfce7;
    color: #15803d;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    margin-left: 8px;
    vertical-align: middle;
}

.savings-note {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #15803d;
    font-weight: 500;
}

.savings-note svg {
    width: 16px;
    height: 16px;
}

/* -----------------------------------------------
   3. META COST NOTE (below toggle)
   ----------------------------------------------- */
.meta-cost-note {
    text-align: center;
    padding: 12px 0 0;
    margin-bottom: 30px;
}

.meta-cost-note p {
    font-size: 13px;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.meta-cost-note p svg {
    width: 16px;
    height: 16px;
    color: #f59e0b;
}

/* -----------------------------------------------
   4. PRICING CARDS GRID
   ----------------------------------------------- */
.pricing-cards-grid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
}

.pricing-cards-row {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding: 20px 10px 40px;
}

.pricing-card-col {
    flex: 0 0 auto;
    width: calc((100% - 80px) / 6);
    min-width: 210px;
    scroll-snap-align: start;
}

/* -----------------------------------------------
   5. INDIVIDUAL PLAN CARD
   ----------------------------------------------- */
.plan-card {
    background: #ffffff;
    border: 1.5px solid #e5e7eb;
    border-radius: 16px;
    padding: 38px 22px 30px;
    position: relative;
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.plan-card:hover {
    border-color: #037638;
    box-shadow: 0 12px 40px rgba(3, 118, 56, 0.12);
    transform: translateY(-6px);
}

/* Popular card highlight */
.plan-card.is-popular {
    border-color: #037638;
    border-width: 2px;
    box-shadow: 0 8px 30px rgba(3, 118, 56, 0.1);
}

.plan-card.is-popular:hover {
    box-shadow: 0 16px 50px rgba(3, 118, 56, 0.18);
    transform: translateY(-8px);
}

/* -----------------------------------------------
   6. PLAN BADGE
   ----------------------------------------------- */
.plan-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 12px;
    border-radius: 20px;
}

.plan-badge.badge-popular {
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    background: #037638;
    color: #ffffff;
    white-space: nowrap;
    z-index: 2;
    padding: 4px 14px;
    font-size: 10px;
    letter-spacing: 1px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(3, 118, 56, 0.25);
    overflow: hidden;
}

.plan-badge.badge-popular::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 80%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent 0%,
        rgba(255, 255, 255, 0.35) 50%,
        transparent 100%
    );
    animation: badgeShine 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes badgeShine {
    0%   { left: -100%; }
    50%  { left: 120%; }
    100% { left: 120%; }
}

/* -----------------------------------------------
   7. PLAN NAME & SUBTITLE
   ----------------------------------------------- */
.plan-name {
    font-size: 22px;
    font-weight: 700;
    font-style: normal;
    color: #1a1a1a;
    margin-bottom: 4px;
    line-height: 1.2;
}

.plan-subtitle {
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 16px;
    font-weight: 400;
    line-height: 1.4;
}

/* -----------------------------------------------
   8. PLAN PRICE
   ----------------------------------------------- */
.plan-price-block {
    margin-bottom: 6px;
}

.plan-price {
    font-size: 42px;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1;
    letter-spacing: -1px;
}

.plan-price .currency {
    font-size: 22px;
    font-weight: 700;
    vertical-align: super;
    margin-right: 2px;
}

.plan-price .period {
    font-size: 16px;
    font-weight: 400;
    color: #9ca3af;
}

.plan-price-alt {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 4px;
}

.plan-price-alt .save-tag {
    color: #15803d;
    font-weight: 600;
    font-size: 12px;
}

/* -----------------------------------------------
   9. MESSAGE LIMIT
   ----------------------------------------------- */
.plan-msg-limit {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6b7280;
    padding: 10px 0 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid #f3f4f6;
    line-height: 1.4;
}

/* -----------------------------------------------
   10. FEATURE LIST
   ----------------------------------------------- */
.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    flex-grow: 1;
}

.plan-features li {
    position: relative;
    padding: 5px 0 5px 24px;
    font-size: 13.5px;
    color: #374151;
    line-height: 1.5;
}

.plan-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2315803d'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

/* -----------------------------------------------
   11. CTA BUTTON
   ----------------------------------------------- */
.plan-cta {
    display: block;
    width: 100%;
    padding: 13px 20px;
    background: #037638;
    color: #ffffff;
    text-align: center;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.plan-cta:hover {
    background: #025a2b;
    box-shadow: 0 4px 14px rgba(3, 118, 56, 0.3);
    transform: translateY(-1px);
    color: #ffffff;
    text-decoration: none;
}

.plan-cta-note {
    text-align: center;
    font-size: 11.5px;
    color: #9ca3af;
    margin-top: 12px;
}

/* -----------------------------------------------
   12. BOTTOM META/WHATSAPP NOTE
   ----------------------------------------------- */
.pricing-disclaimer {
    text-align: center;
    padding: 30px 0 0;
}

.pricing-disclaimer p {
    font-size: 13px;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* -----------------------------------------------
   13. CALCULATOR REDESIGN
   ----------------------------------------------- */
.calculator-section-new {
    padding: 80px 0;
}

.calculator-section-new .section-header {
    text-align: center;
    margin-bottom: 50px;
}

.calculator-section-new .section-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.calculator-section-new .section-header p {
    font-size: 15px;
    color: #6b7280;
}

.calculator-card {
    background: #ffffff;
    border: 1.5px solid #e5e7eb;
    border-radius: 16px;
    padding: 40px;
}

.calc-category {
    margin-bottom: 28px;
}

.calc-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.calc-category-header label {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.calc-category-header label i {
    font-size: 14px;
}

.calc-unit-cost {
    font-size: 12px;
    color: #6b7280;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.calc-unit-cost.free {
    background: #dcfce7;
    color: #15803d;
    border-color: #bbf7d0;
    font-weight: 700;
}

.calc-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.calc-controls input[type="range"] {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: #e5e7eb;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.calc-controls input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #037638;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(3, 118, 56, 0.3);
    transition: transform 0.2s ease;
}

.calc-controls input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.calc-controls .input-group {
    width: 170px;
    flex-shrink: 0;
}

.calc-controls .input-group .form-control.number-input {
    min-width: 90px;
    text-align: right;
    font-size: 14px;
    font-weight: 600;
}

.calc-controls .input-group {
    display: flex;
    align-items: stretch;
}

.calc-controls .input-group .input-group-append {
    display: flex;
}

.calc-controls .input-group .input-group-text {
    display: flex;
    align-items: center;
    padding: 0 10px;
    font-size: 13px;
}

.calc-total {
    text-align: center;
    padding-top: 28px;
    border-top: 1.5px solid #f3f4f6;
}

.calc-total h4 {
    font-size: 15px;
    color: #6b7280;
    margin-bottom: 6px;
    font-weight: 500;
}

.calc-total .total-amount {
    font-size: 48px;
    font-weight: 800;
    color: #037638;
    letter-spacing: -1px;
}

.calc-total .total-note {
    font-size: 14px;
    color: #374151;
    font-weight: 600;
    margin-top: 12px;
}

.calc-total .total-disclaimer {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 8px;
    line-height: 1.5;
}

.calc-total .total-disclaimer a {
    color: #037638;
    text-decoration: underline;
}

.calc-service-note {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    font-style: italic;
}

/* -----------------------------------------------
   13b. COUNTRY SELECTOR
   ----------------------------------------------- */
.calc-country-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1.5px solid #f3f4f6;
}

.calc-country-selector label {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 0;
}

.calc-country-selector label i {
    color: #037638;
}

.country-dropdown {
    flex: 1;
    padding: 10px 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
    background: #ffffff;
    cursor: pointer;
    transition: border-color 0.2s ease;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%236b7280'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 36px;
}

.country-dropdown:hover {
    border-color: #037638;
}

.country-dropdown:focus {
    border-color: #037638;
    box-shadow: 0 0 0 3px rgba(3, 118, 56, 0.1);
}

/* 13c. TOTAL LOCAL CURRENCY */
.calc-total .total-local {
    font-size: 20px;
    font-weight: 600;
    color: #6b7280;
    margin-top: 4px;
}

.calc-total .total-currency-label {
    font-size: 18px;
    font-weight: 500;
    color: #9ca3af;
}

/* -----------------------------------------------
   14. FAQ REDESIGN
   ----------------------------------------------- */
.faq-section-new {
    padding: 80px 0;
    background: #fafafa;
}

.faq-section-new .section-header {
    text-align: center;
    margin-bottom: 50px;
}

.faq-section-new .section-header h6 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #037638;
    font-weight: 700;
    margin-bottom: 8px;
}

.faq-section-new .section-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
}

.faq-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.faq-card:hover {
    border-color: #037638;
}

.faq-card .card-header {
    background: transparent;
    padding: 0;
    border: none;
}

.faq-card .card-header button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 18px 24px;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    text-decoration: none;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.faq-card .card-header button::after {
    content: '';
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%236b7280'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.faq-card .card-header button[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

.faq-card .card-body {
    padding: 0 24px 20px;
    font-size: 14px;
    color: #6b7280;
    line-height: 1.7;
}

/* FAQ collapse animation (replaces Bootstrap collapse) */
.faq-card .faq-collapse {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.faq-card .faq-collapse.show {
    max-height: 600px;
    transition: max-height 0.45s ease;
}

/* -----------------------------------------------
   15. CTA BANNER
   ----------------------------------------------- */
.pricing-cta-banner {
    background: #037638;
    padding: 60px 24px;
    text-align: center;
    border-radius: 20px;
    max-width: 1140px;
    margin: 0 auto 60px;
    position: relative;
    overflow: hidden;
}

.pricing-cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(255,255,255,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.pricing-cta-banner h2 {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
}

.pricing-cta-banner p {
    font-size: 16px;
    color: rgba(255,255,255,0.8);
    max-width: 550px;
    margin: 0 auto 30px;
}

.pricing-cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.pricing-cta-buttons .btn-demo {
    padding: 14px 32px;
    background: #ffffff;
    color: #037638;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.pricing-cta-buttons .btn-demo:hover {
    background: #f0fdf4;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.pricing-cta-buttons .btn-sales {
    padding: 14px 32px;
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pricing-cta-buttons .btn-sales:hover {
    border-color: #ffffff;
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
    color: #ffffff;
}

.pricing-cta-buttons .btn-sales svg {
    width: 18px;
    height: 18px;
}

/* -----------------------------------------------
   16. SCROLL ARROWS (Mobile)
   ----------------------------------------------- */
.pricing-scroll-hint {
    display: none;
    text-align: center;
    padding: 0 0 10px;
    font-size: 12px;
    color: #9ca3af;
}

/* -----------------------------------------------
   17. RESPONSIVE
   ----------------------------------------------- */
@media (max-width: 1200px) {
    .pricing-card-col {
        width: calc((100% - 48px) / 4);
        min-width: 220px;
    }
}

@media (max-width: 991px) {
    .pricing-hero {
        padding: 80px 0 30px;
    }

    .pricing-hero h1 {
        font-size: 32px;
    }

    .pricing-cards-row {
        gap: 14px;
        justify-content: flex-start;
        padding: 15px 5px 30px;
    }

    .pricing-card-col {
        width: 260px;
        min-width: 240px;
    }

    .pricing-scroll-hint {
        display: block;
    }

    .calculator-card {
        padding: 24px;
    }

    .pricing-cta-banner {
        margin: 0 15px 40px;
        padding: 50px 20px;
        border-radius: 16px;
    }

    .pricing-cta-banner h2 {
        font-size: 26px;
    }
}

@media (max-width: 767px) {
    .pricing-hero h1 {
        font-size: 28px;
    }

    .pricing-hero .hero-subtitle {
        font-size: 15px;
    }

    .billing-toggle .toggle-option {
        padding: 8px 18px;
        font-size: 13px;
    }

    .plan-price {
        font-size: 36px;
    }

    .calc-controls {
        flex-wrap: wrap;
    }

    .calc-controls input[type="range"] {
        width: 100%;
    }

    .calc-controls .input-group {
        width: 100%;
    }

    .calc-total .total-amount {
        font-size: 38px;
    }

    .pricing-cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .pricing-cta-buttons .btn-demo,
    .pricing-cta-buttons .btn-sales {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .pricing-hero h1 {
        font-size: 24px;
    }

    .pricing-card-col {
        width: 85vw;
        min-width: 260px;
    }

    .plan-card {
        padding: 24px 18px;
    }

    .plan-price {
        font-size: 32px;
    }
}

/* -----------------------------------------------
   18. SCROLLBAR STYLING (pricing cards)
   ----------------------------------------------- */
.pricing-cards-row::-webkit-scrollbar {
    height: 4px;
}

.pricing-cards-row::-webkit-scrollbar-track {
    background: #f1f3f5;
    border-radius: 4px;
}

.pricing-cards-row::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

.pricing-cards-row::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* -----------------------------------------------
   19. CALCULATOR ROW LAYOUT (side by side)
   ----------------------------------------------- */
.calc-faq-row {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.calc-faq-row .calc-col {
    flex: 1;
}

.calc-faq-row .faq-col {
    flex: 1;
}

@media (max-width: 991px) {
    .calc-faq-row {
        flex-direction: column;
    }
}
