/* =========================================================
   SECCIÓN DE PLANES - VERSIÓN COMPLETA CORREGIDA
   ========================================================= */

.plans-section {
    width: 100%;
    background: #FFFFFF;
    padding: 48px 40px;
    position: relative;
}

/* =========================================================
   HEADER
   ========================================================= */

.plans-header {
    text-align: center;
    margin-bottom: 32px;
}

.plans-title {
    font-family: 'Roboto', sans-serif;
    font-size: 32px;
    font-weight: 500;
    line-height: 40px;
    color: #535353;
    margin-bottom: 16px;
}

.plans-subtitle {
    font-family: 'Roboto', sans-serif;
    font-size: 22px;
    font-weight: 400;
    line-height: 30px;
    color: #535353;
}

/* =========================================================
   TOGGLE ANUAL/MENSUAL
   ========================================================= */

.plans-toggle {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    padding-left: 96px;
    margin-bottom: 21px;
    flex-wrap: wrap;
}

.toggle-label {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #535353;
}

.toggle-switch {
    width: 40px;
    height: 20px;
    position: relative;
    cursor: pointer;
}

.toggle-switch.active .toggle-track {
    background: rgba(127, 158, 225, 0.6);
}

.toggle-switch.active .toggle-thumb {
    left: 4px;
    right: auto;
}

.toggle-track {
    width: 100%;
    height: 100%;
    background: rgba(127, 158, 225, 0.3);
    border-radius: 16px;
}

.toggle-thumb {
    width: 14px;
    height: 14px;
    background: #7F9EE1;
    border-radius: 50%;
    position: absolute;
    right: 4px;
    top: 3px;
}

.toggle-save {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 300;
    color: #535353;
}


/* =========================================================
   TÍTULO DE PLANES
   ========================================================= */

.plans-cards-title {
    text-align: center;
    margin: 48px 0;
}

.plans-cards-heading {
    font-family: 'Roboto', sans-serif;
    font-size: 32px;
    font-weight: 500;
    color: #535353;
}

/* =========================================================
   GRID DE PLANES
   ========================================================= */

.plans-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 48px;
}

/* =========================================================
   TARJETA DE PLAN - NORMAL (TODAS IGUALES)
   ========================================================= */

.plan-card {
    width: 238px;
    background: #FFFFFF;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 2px solid #495E9A;
    display: flex;
    flex-direction: column;
}

.plan-card:hover {
    transform: translateY(-5px);
    border-color: #FF8A2A;
    box-shadow: 0 8px 24px rgba(255, 138, 42, 0.2);
}

/* =========================================================
   TARJETA EMPRESARIAL - DESTACADA (MÁS GRANDE)
   ========================================================= */

.plan-card--highlight {
    width: 270px;
    margin: -12px 0;
    border: 2px solid #495E9A;
    position: relative;
    z-index: 10;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.plan-card--highlight:hover {
    transform: translateY(-8px);
    border-color: #FF8A2A;
    box-shadow: 0 12px 28px rgba(255, 138, 42, 0.3);
}

/* =========================================================
   HEADER DE TARJETAS
   ========================================================= */

/* Header normal */
.plan-card__header {
    padding: 16px 14px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background: #495E9A;
}

.plan-card:hover .plan-card__header {
    background: #FF8A2A;
}

/* Header de tarjeta EMPRESARIAL (más grande) */
.plan-card--highlight .plan-card__header {
    background: #495E9A;  /* ← Cambia este color */
    padding: 14px 12px;
}

/* =========================================================
   NOMBRE Y PRECIO
   ========================================================= */

/* Nombre normal */
.plan-card__name {
    font-family: 'Open Sans', 'Roboto', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #FFFFFF;
    margin: 0;
}

/* Nombre en tarjeta EMPRESARIAL (más grande) */
.plan-card--highlight .plan-card__name {
    font-size: 22px;
}

/* Precio normal */
.plan-card__price {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #FBFBFB;
    margin: 4px 0 0 0;
}

/* Precio en tarjeta EMPRESARIAL (más grande) */
.plan-card--highlight .plan-card__price {
    font-size: 18px;
    font-weight: 500;
}

/* =========================================================
   ICONO
   ========================================================= */

/* Icono normal */
.plan-card__icon img {
    width: 63px;
    height: 63px;
    object-fit: contain;
}

/* Icono en tarjeta EMPRESARIAL (más grande) */
.plan-card--highlight .plan-card__icon img {
    width: 72px;
    height: 72px;
}

/* =========================================================
   CUERPO DE TARJETA
   ========================================================= */

.plan-card__body {
    padding: 14px 21px;
    background: linear-gradient(99.28deg, #F8F9FC 0%, #E6EBF9 100%);
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Cuerpo en tarjeta EMPRESARIAL (más grande) */
.plan-card--highlight .plan-card__body {
    padding: 18px 21px;
}

/* =========================================================
   DESCRIPCIÓN
   ========================================================= */

.plan-card__description {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 21px;
    color: #41494E;
    margin-bottom: 18px;
    min-height: 65px;
}

/* Descripción en tarjeta EMPRESARIAL */
.plan-card--highlight .plan-card__description {
    min-height: 65px;
    font-size: 14px;
}

/* =========================================================
   BADGE (solo plan gratuito)
   ========================================================= */

.plan-card__badge {
    display: inline-block;
    background: rgba(127, 158, 225, 0.3);
    border-radius: 21.6px;
    padding: 0 12px;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #535353;
    margin-bottom: 14px;
    width: fit-content;
}

/* =========================================================
   CARACTERÍSTICAS
   ========================================================= */

.plan-card__features {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 18px;
    flex: 1;
}

.plan-feature {
    display: flex;
    align-items: center;
    gap: 10px;
}

.plan-feature svg {
    width: 18px;
    height: auto;
    flex-shrink: 0;
}

.plan-feature span {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #535353;
}

/* =========================================================
   BOTONES DE PLANES
   ========================================================= */

.plan-card__button {
    width: auto;
    min-width: 120px;
    background: #FF8A2A;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #FBFBFB;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto;
    display: inline-block;
    align-self: center;
}

/* Botón en tarjeta EMPRESARIAL (más grande) */
.plan-card--highlight .plan-card__button {
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 500;
    min-width: 130px;
    border: 2px solid #FFFFFF;
}

.plan-card__button:hover {
    background: #e07a20;
    transform: scale(1.02);
}

/* =========================================================
   COMPLEMENTOS
   ========================================================= */

.addons-section {
    margin-top: 48px;
    padding: 0 40px;
}

.addons-title {
    font-family: 'Roboto', sans-serif;
    font-size: 28px;
    font-weight: 500;
    color: #535353;
    text-align: center;
    margin-bottom: 32px;
}

.addons-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

.addon-card {
    width: 280px;
    background: #FFFFFF;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #7F9EE1;
    transition: all 0.3s ease;
}

.addon-card:hover {
    transform: translateY(-5px);
    border-color: #FF8A2A;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.addon-card__header {
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #495E9A;
}

.addon-card__info {
    flex: 1;
}

.addon-card__name {
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #FFFFFF;
    margin: 0;
}

.addon-card__price {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #FBFBFB;
    margin: 4px 0 0 0;
}

.addon-card__icon img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.addon-card__body {
    padding: 16px;
    text-align: center;
    background: linear-gradient(99.28deg, #F8F9FC 0%, #E6EBF9 100%);
}

.addon-card__button {
    background: #FF8A2A;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #FFFFFF;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.addon-card__button:hover {
    background: #e07a20;
    transform: scale(1.02);
}

/* =========================================================
   FOOTER DE PLANES (CONDICIONES)
   ========================================================= */

.plans-footer {
    margin-top: 48px;
    padding: 32px 40px;
    background: #F5F7FA;
    border-radius: 16px;
}

.plans-footer__title {
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #535353;
    margin-bottom: 16px;
}

.plans-footer__text {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 22px;
    color: #535353;
    margin: 0;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {
    .plans-section {
        padding: 32px 20px;
    }
    
    .plans-title {
        font-size: 28px;
    }
    
    .plans-subtitle {
        font-size: 18px;
    }
    
    .plans-toggle {
        padding-left: 0;
        justify-content: center;
    }
    
    .toggle-save {
        width: 100%;
        text-align: center;
    }
    
    .plan-card {
        width: 280px;
    }
    
    .plan-card--highlight {
        width: 300px;
        margin: 0;
    }
    
    .addons-section {
        padding: 0 20px;
    }
}

@media (max-width: 700px) {
    .plan-card,
    .plan-card--highlight {
        width: 100%;
        max-width: 320px;
        margin: 0;
    }
    
    .addon-card {
        width: 100%;
        max-width: 320px;
    }
    
    .plans-footer {
        padding: 24px 20px;
    }
    
    .plans-cards-heading {
        font-size: 24px;
    }
    
    .addons-title {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .plans-title {
        font-size: 24px;
    }
    
    .plans-subtitle {
        font-size: 16px;
    }
    
    .plan-card__name {
        font-size: 18px;
    }
    
    .plan-card--highlight .plan-card__name {
        font-size: 20px;
    }
    
    .plan-feature span {
        font-size: 12px;
    }
}

/* =========================================================
   COMPLEMENTOS
========================================================= */

.addons-section {
    text-align: center;
    margin: 48px 0;
}

.addons-title {
    font-family: 'Roboto', sans-serif;
    font-size: 32px;
    font-weight: 500;
    color: #535353;
    margin-bottom: 48px;
}

.addons-grid {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.addon-card {
    width: 348px;
    background: #FFFFFF;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 2px solid #495E9A;
    transition: all 0.3s ease;
}

.addon-card:hover {
    transform: translateY(-5px);
    border-color: #FF8A2A;
    box-shadow: 0 8px 24px rgba(255, 138, 42, 0.2);
}

.addon-card__header {
    background: #495E9A;
    padding: 16px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.addon-card:hover .addon-card__header {
    background: #FF8A2A;
}

/* Nombre del complemento */
.addon-card__name {
    font-family: 'Open Sans', 'Roboto', sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: #FFFFFF;
    margin: 0 0 12px 0;
    line-height: 1.2;
}

/* Precio del complemento - Roboto Regular 18 */
.addon-card__price {
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #FBFBFB;
    margin: 0;
}

.addon-card__icon img {
    width: 70px;
    height: 70px;
    object-fit: contain;
}

.addon-card__body {
    background: linear-gradient(99.28deg, #F8F9FC 0%, #E6EBF9 100%);
    padding: 16px;
}

/* Botón de complementos */
.addon-card__button {
    width: auto;
    min-width: 120px;
    background: #FF8A2A;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #FBFBFB;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.addon-card__button:hover {
    background: #e07a20;
    transform: scale(1.02);
}

/* =========================================================
   CONDICIONES
========================================================= */

.plans-footer {
    margin-top: 48px;
    padding-left: 73px;
}

.plans-footer__title {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #535353;
    margin-bottom: 4px;
}

.plans-footer__text {
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
    color: #535353;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1100px) {
    .plans-toggle {
        padding-left: 40px;
    }
    
    .plans-footer {
        padding-left: 40px;
    }
}

@media (max-width: 768px) {
    .plans-section {
        padding: 40px 20px;
    }
    
    .plans-title {
        font-size: 28px;
    }
    
    .plans-subtitle {
        font-size: 18px;
    }
    
    .plans-toggle {
        flex-wrap: wrap;
        padding-left: 20px;
    }
    
    .plans-footer {
        padding-left: 20px;
    }
    
    .addon-card {
        width: 100%;
        max-width: 348px;
    }
    
    .plan-card {
        width: 100%;
        max-width: 280px;
    }
    
    .plan-card__button,
    .addon-card__button {
        min-width: 100px;
        padding: 6px 12px;
        font-size: 13px;
    }
}