/**
 * Danos Pricing Page Styles
 * Basado en los estilos del plugin SUMO actual
 *
 * @package DanosClick\Subscriptions
 */

/* Import Roboto font */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;600;700&display=swap');

body {
	font-family: 'Roboto', sans-serif;
    overflow-x: hidden;
}

.danosclick-pricing-wrapper {
    margin: 0 auto;
    padding: 0 20px;
    max-width: 1400px;
}

/* Sobrescribir estilos externos */
.danosclick-main-pricing-container {
    height: auto !important;
    overflow: visible !important;
}

/* Centrado para páginas full-width */
.danosclick-pricing-wrapper.alignfull {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.danosclick-pricing-wrapper.alignfull > * {
    width: 100%;
    max-width: 1400px;
}

/* Control global de imágenes */
.danosclick-pricing-wrapper img {
    max-width: 100%;
    height: auto;
}

.danosclick-step {
    margin-bottom: 40px;
}

.danosclick-plans {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0 auto;
}

.danosclick-plan {
    border: 2px solid #e2e2e2;
    border-radius: 12px;
    padding: 32px;
    cursor: pointer;
    transition: .3s;
    background: #fff;
    flex: 1;
    min-width: 280px;
    box-shadow: 0 4px 10px -2px rgba(10, 10, 10, .1), 0 2px 5px -2px rgba(10, 10, 10, .05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.danosclick-plan.new {
    border-color: #43a047;
    position: relative;
}

.danosclick-plan.new:after {
    content: "Nuevo";
    position: absolute;
    top: -12px;
    right: 20px;
    background: #43a047;
    border-radius: 24px;
    font-size: 12px;
    font-weight: 600;
    line-height: 16px;
    color: #fff;
    padding: 3px 8px;
    width: 112px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.danosclick-plan.new.active:after {
    background: #EC6337;
}

.danosclick-plan.active {
    border-color: #EC6337;
    box-shadow: 0 0 10px rgba(255, 112, 67, .3);
}

.danosclick-plan .plan-header,
.danosclick-payment .payment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.danosclick-plan .plan-header .title,
.danosclick-payment .payment-header .title {
    display: flex;
    gap: 15px;
    align-items: center;
}

.danosclick-plan .plan-header .title img {
    max-width: 40px;
    max-height: 40px;
    width: auto;
    height: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.danosclick-plan h4 {
    margin: 0;
    font-size: clamp(20px, 2vw, 24px);
    font-weight: 700;
    line-height: 28px;
}

.danosclick-plan.initial-plan h4 {
    color: #8BDB8A;
}

.danosclick-plan.advance-plan h4 {
    color: #3684E6;
}

.danosclick-plan.pro-plan h4 {
    color: #4747B5;
}

.danosclick-plan.enterprise-plan h4 {
    color: #37394F;
}

.danosclick-plan .price {
    font-size: 40px;
    font-weight: 700;
    line-height: 48px;
    color: #000;
    margin: 10px 0 5px 0;
}

.danosclick-plan .price-without-tax {
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: #666;
    margin: 0 0 10px 0;
}

.danosclick-plan .price .amount {
    font-size: 40px;
    font-weight: 700;
    line-height: 48px;
}

/* B: /mes debe ser del mismo color que el precio principal, no verde */
.danosclick-plan .price span {
    font-size: 20px;
    font-weight: 400;
    line-height: 24px;
    color: #000; /* Mismo color que el precio */
}

.danosclick-plan ul {
    margin: 0;
    padding: 0;
    list-style: inside;
}

.danosclick-plan ul li {
    font-size: clamp(14px, 1.25vw, 16px);
    line-height: 20px;
    color: #3B3B3B;
}

.danosclick-plan .bottom-section {
    padding-top: 15px;
}

.danosclick-plan .bottom-section a {
    font-size: 14px;
    font-weight: 600;
    line-height: 24px;
    text-decoration: underline;
    color: #EC6337;
}

.danosclick-plan .plan-header input,
.danosclick-payment .payment-header input {
    display: none;
}

.danosclick-plan .custom-radio,
.danosclick-payment .custom-radio {
    border: 2px solid #474747;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    border-radius: 100%;
    cursor: pointer;
}

.danosclick-plan.active .custom-radio,
.danosclick-payment.active .custom-radio {
    border-color: #EC6337;
}

.danosclick-plan .custom-radio .custom-radio-fill,
.danosclick-payment .custom-radio .custom-radio-fill {
    width: 14px;
    height: 14px;
    border-radius: 100%;
    background: #F75513;
    display: none;
}

.danosclick-plan.active .custom-radio .custom-radio-fill,
.danosclick-payment.active .custom-radio .custom-radio-fill {
    display: block;
}

.danosclick-modules {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(266px, 1fr));
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width:1299px) {
    .danosclick-modules {
        justify-content: start;
    }
}

.danosclick-modules .module-card {
    display: flex;
    flex-direction: column;
    align-items: baseline;
    padding: 24px;
    border: 2px solid #000;
    border-radius: 20px;
    box-shadow: 0 4px 10px -2px rgba(10, 10, 10, .1), 0 2px 5px -2px rgba(10, 10, 10, .05);
    min-width: 220px;
    max-width: 380px;
    cursor: pointer;
    flex: 1;
    background: white;
}

.danosclick-modules .module-card.coming-soon {
    background: #D3D3D3;
    cursor: not-allowed;
}

.danosclick-modules .module-card ul {
    padding-left: 15px;
    margin-top: 10px;
}

.danosclick-modules .module-card .box-header {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 8px 0;
    width: 100%;
}

.danosclick-modules .module-card .title {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.danosclick-modules .module-card .title img {
    max-width: 40px;
    max-height: 40px;
    width: auto;
    height: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.danosclick-modules .module-card .title input {
    width: 25px;
    height: 25px;
    accent-color: #EC6337;
}

.danosclick-modules .module-card .box-content p {
    margin: 0;
    padding-bottom: 5px;
}

.danosclick-modules .module-card .box-content span {
    display: block;
    margin: 8px 0 4px 0;
}

.danosclick-modules .module-card .box-content span b {
    font-size: 24px;
    font-weight: 700;
    line-height: 28px;
    color: #474747;
}

.danosclick-modules .module-card .module-price-without-tax {
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
    color: #666;
    margin: 0 0 8px 0;
}

.danosclick-modules .module-card:has(input:checked) {
    border-color: #EC6337;
}

.danosclick-modules .module-card.is-unavailable {
    opacity: 0.55;
    cursor: not-allowed;
}

.danosclick-modules .module-card.is-unavailable .danos-module-unavailable {
    color: #dc2626;
    font-size: 13px;
    font-weight: 600;
    margin-top: 6px;
}

.danosclick-payments {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(266px, 1fr));
    padding-top: 10px;
    padding-bottom: 20px;
}

.danosclick-payment {
    background: #fff;
    border-radius: 12px;
    border: 2px solid #e2e2e2;
    box-shadow: 0 4px 10px -2px rgba(10, 10, 10, .1), 0 2px 5px -2px rgba(10, 10, 10, .05);
    padding: 24px;
    min-width: 266px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    flex: 1;
}

.danosclick-payment.active {
    border-color: #EC6337 !important;
}

.danosclick-payment.recommended {
    border-color: #43a047;
    position: relative;
}

.danosclick-payment.recommended:after {
    content: "Recomendado";
    position: absolute;
    top: -12px;
    right: 20px;
    background: #43a047;
    border-radius: 24px;
    font-size: 12px;
    font-weight: 600;
    line-height: 16px;
    color: #fff;
    padding: 3px 8px;
    width: 112px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.danosclick-payment.recommended.active:after {
    background: #EC6337;
}

.danosclick-payments .price-off-tag {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    border-radius: 24px;
    background: #D2F1C0;
    font-size: 12px;
    font-weight: 600;
    line-height: 16px;
    color: #3D741C;
    margin-bottom: 10px;
    width: fit-content;
}

.danosclick-payments .payment-price p {
    margin: 0;
}

.danosclick-payments .payment-price .price-header-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.danosclick-payments .payment-price .price-header-line .price-off-tag {
    margin: 0;
}

.danosclick-payments .payment-price .price-original-line {
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: #999;
    text-decoration: line-through;
    margin: 0;
}

.danosclick-payments .payment-price .price-main {
    font-size: 32px;
    font-weight: 700;
    line-height: 38px;
    color: #3B3B3B;
    margin: 8px 0 4px 0;
}

.danosclick-payments .payment-price .price-main span {
    font-size: 32px;
    font-weight: 700;
    line-height: 38px;
    color: #3B3B3B;
}

.danosclick-payments .payment-price .price-without-tax {
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: #3B3B3B;
    margin: 6px 0 0 0;
}

.danosclick-payments .payment-price .price-one-payment {
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: #666;
    margin: 6px 0 0 0;
}

.try-btn {
    background: #F75513;
    color: #fff;
    border: none;
    padding: 12px 32px;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 10px;
    display: inline-block;
    text-decoration: none;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.try-btn:hover:not(:disabled) {
    background: #d94510;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(247, 85, 19, 0.3);
}

.try-btn.secondary-btn {
    background: #fff;
    color: #F75513;
    border: 2px solid #F75513;
}

.try-btn.secondary-btn:hover:not(:disabled) {
    background: #FFF5F2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(247, 85, 19, 0.2);
}

.try-btn:disabled {
    cursor: not-allowed;
}

.danosclick-total {
    text-align: center;
    font-size: 1.4rem;
    margin-top: 30px;
    font-weight: 700;
    color: #222;
    display: none;
}

.danosclick-selected-summary {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f4f4ff;
    border: 1px solid #dcdcff;
    border-radius: 12px;
    padding: 12px 16px;
    margin: 10px 0 0 0;
}

.chosen-icon-img {
    max-width: 32px;
    max-height: 32px;
    width: auto;
    height: auto;
    border-radius: 6px;
    object-fit: contain;
    flex-shrink: 0;
}

.danosclick-selected-summary strong {
    color: #222;
}

.danosclick-selected-summary #danosclick-chosen-text {
    color: #4f46e5;
    font-weight: 700;
}

.danosclick-step.ctm-step-2 h3,
.danosclick-step.ctm-step-3 h3 {
    color: #474747 !important;
    font-weight: 700;
    font-size: 26px;
    line-height: 36px;
}

.danosclick-payments .price-off-tag p {
    margin: 0;
}

/* ------ Mobile controls wrapper ------- */
.mobile-controls-wrapper {
    display: none; /* Oculto por defecto en desktop */
}

/* ------ Mobile summary sticky ------- */
.mobile-summary-sticky {
    padding: 12px 36px;
    background: #F4F4FF;
    border-top: 2px solid #E2E2FF;
}

.mobile-summary-sticky .summary-content {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.mobile-summary-sticky .summary-label {
    font-weight: 600;
    font-size: 14px;
    color: #474747;
}

.mobile-summary-sticky .summary-items {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.mobile-summary-sticky .summary-item {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 13px;
    color: #3B3B3B;
}

.mobile-summary-sticky .summary-item img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* ------ Mobile stepper ------- */
.mobile-step-nav {
    gap: 12px;
    display: flex;
    justify-content: space-between;
    padding: 12px 36px;
    background: #fff;
    border-top: 1px solid #E2E2FF;
}

.mobile-btn {
    flex: 1;
    border: 2px solid #e2e2e2;
    border-radius: 12px;
    padding: 12px 16px;
    font-weight: 700;
    cursor: pointer;
    background: #fff;
}

.mobile-btn.primary,
.mobile-btn.trial-action {
    background: #F75513;
    border-color: #F75513;
    color: #fff;
}

.mobile-btn.secondary {
    background: #fff;
    color: #3B3B3B;
}

/* Responsive */
@media (max-width:1199px) {
    .danosclick-payments {
        overflow-x: auto;
        justify-content: start;
    }

    .danosclick-plans {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width:768px) {
    .danosclick-step {
        display: none;
    }

    .danosclick-step.is-mobile-active {
        display: block;
        height: calc(var(--vh, 1vh) * 100 - 240px);
        overflow-y: scroll;
        margin-bottom: 0;
    }

    /* Mostrar mobile controls wrapper */
    .mobile-controls-wrapper {
        margin: 0 -22px;
        display: flex !important;
        flex-direction: column;
        justify-content: flex-end;
        z-index: 1;
    }

    /* Mobile summary estático - ocultar */
    .mobile-summary-static {
        display: none !important;
    }

    /* Ocultar action buttons en mobile */
    .danos-pricing-actions .action-buttons {
        display: none !important;
    }

    /* Contenedor principal - sin restricciones de altura */
    .danosclick-main-pricing-container {
        height: auto !important;
        overflow: visible !important;
    }

    .danosclick-pricing-wrapper {
        display: flex;
        flex-direction: column;
        padding: 0;
    }

    div#danos-pricing {
        max-height: calc(100vh - 60px);
    }

    /* Mostrar botones desktop normalmente al final en mobile */
    .danos-pricing-actions {
        display: block !important;
        position: static !important;
        margin-top: 20px;
    }

    .danosclick-payment {
        width: 100%;
        max-width: 100%;
    }

    .danosclick-modules .module-card {
        width: 100%;
        max-width: 100%;
    }

    .danosclick-step.ctm-step-2.is-mobile-active h3,
    .danosclick-step.ctm-step-3.is-mobile-active h3,
    .danosclick-step.is-mobile-active h3 {
        color: #FFF;
        font-size: 22px;
        line-height: 32px;
    }

.danosclick-plans {
    grid-template-columns: repeat(1, 1fr);
}

.mobile-hidden {
    display: none !important;
}

.mobile-step-nav {
    padding: 12px;
}
}

.danos-change-notice {
    max-width: 720px;
    margin: 0 auto 10px;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid #fed7aa;
    background: #fff7ed;
    color: #7c2d12;
    font-size: 14px;
    line-height: 1.4;
    text-align: left;
    position: relative;
    top: 20px;
    z-index: 999;
}

.danos-change-notice.is-success {
    border-color: #bbf7d0;
    background: #ecfdf3;
    color: #166534;
}

.danos-change-notice.is-success-loud {
    border-color: #22c55e;
    background: #dcfce7;
    box-shadow: 0 10px 24px rgba(34, 197, 94, 0.18);
    font-weight: 600;
}

.danos-change-confirm {
    max-width: 720px;
    margin: 20px auto 0;
    padding: 0 16px;
}

.danos-change-confirm-card {
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    background: #fff;
    padding: 18px 20px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    text-align: left;
}

.danos-change-confirm-card h3 {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

.danos-change-confirm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.danos-change-confirm-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6b7280;
    display: block;
    margin-bottom: 6px;
}

.danos-change-confirm-value {
    font-weight: 700;
    color: #111827;
    margin-bottom: 6px;
}

.danos-change-confirm-sub {
    font-size: 13px;
    color: #4b5563;
    margin-bottom: 4px;
}

.danos-change-confirm-note {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
    font-size: 14px;
    color: #7c2d12;
}

.danos-change-confirm-actions {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.danosclick-change-success {
    padding: 40px 20px;
}

.danosclick-change-success-card {
    max-width: 520px;
    margin: 10vh auto;
    padding: 24px;
    border-radius: 16px;
    border: 1px solid #bbf7d0;
    background: #ecfdf3;
    text-align: center;
}

.danosclick-change-success-card h2 {
    margin: 0 0 10px;
    font-size: 22px;
    color: #166534;
}

@media (min-width:769px) {
    .danosclick-step {
        display: block;
    }

    .no-mobile-hidden {
        display: none !important;
    }

    .mobile-summary-sticky,
    .mobile-summary-static {
        display: none !important;
    }

    /* Action buttons sticky en tablet/desktop */
    .action-buttons {
        position: sticky !important;
        bottom: 0;
        left: 0;
        width: 100%;
        display: flex !important;
        align-items: center;
        justify-content: center;
        z-index: 998;
        margin: 0 !important;
        padding: 20px;
    }

    /* Quitar sticky cuando se llega al final de payments */
    .action-buttons.remove-sticky {
        position: static !important;
        background: transparent !important;
    }

    .danosclick-pricing-wrapper.danosclick-main-pricing-container .danos-pricing-actions::after, .danosclick-pricing-wrapper.danosclick-main-pricing-container .danos-pricing-actions::before{
        content:"";
        width:100%;
        display:block;
        height:100%;
        position:absolute;
        top: 0;   
    }
}
.danosclick-pricing-wrapper.danosclick-main-pricing-container .danos-pricing-actions{
  position: sticky;
  bottom: 0;
  z-index: 50;
  background: transparent;
  transition: background .2s ease, box-shadow .2s ease;
  width: 100vw;
}

.danosclick-pricing-wrapper.danosclick-main-pricing-container .danos-pricing-actions.is-sticky{
  background: rgb(255, 233, 225);
  box-shadow: 0 -8px 24px rgba(0,0,0,.12);
  backdrop-filter: blur(8px); /* opcional */
}

.danosclick-pricing-wrapper.danosclick-main-pricing-container .danos-pricing-actions {
    width:100%;
}


.danosclick-pricing-wrapper.danosclick-main-pricing-container .danos-pricing-actions.is-sticky::after, .danosclick-pricing-wrapper.danosclick-main-pricing-container .danos-pricing-actions.is-sticky::before{
    background:rgb(255, 233, 225);
}

.danosclick-pricing-wrapper.danosclick-main-pricing-container .danos-pricing-actions::after {
    margin-left: 50%;
}

.danosclick-pricing-wrapper.danosclick-main-pricing-container .danos-pricing-actions::before {
    margin-left: -50%;
}

.action-buttons button {
    margin: 0;
}

[id] {
    scroll-margin-top: 90px;
}

#plansContent-tab {
    scroll-margin-top: 120px;
}

.danosclick-main-pricing-container > .danosclick-step > h3 {
    color: #fff;
}
