/* Planes Gonemo Widget Styles */

.planes-gonemo-widget {
    padding: 60px 0;
    width: 100%;
    background: #FFFFFF;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}
 
/* Título Principal */
.planes-main-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    color: #1a1a1a;
    text-align: center;
    margin: 0 0 20px 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
} 

/* Subtítulo */
.planes-subtitle {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
    color: #666;
    text-align: center;
    margin: 0 0 50px 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Contenedor de Planes */
.plans-container {
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: stretch;
    margin-bottom: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

/* Tarjeta de Plan */
.plan-card {
    background: #FFFFFF;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    flex: 1;
    max-width: 400px;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 560px;
}

/* Contenido del plan: ocupa el espacio restante debajo de la imagen */
.container-plan-content {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto; 
}

.plan-card:hover { 
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Plan Popular */
.plan-card.popular {
    border: 2px solid #155DFC;
    transform: scale(1.05);
    z-index: 2;
    background: linear-gradient(180deg, #EEF5FF 0%, #FFFFFF 100%);
}

.plan-card.popular:hover {
    transform: scale(1.05) translateY(-5px);
}

/* Badge Popular */
.popular-badge {
    
    background: linear-gradient(90deg, #8B5CF6 0%, #2563EB 100%);
    color: #ffffff;
    padding: 10px 16px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.popular-badge .popular-icon svg {
    stroke: currentColor;
}

/* Imagen superior del plan: ocupa el ancho y 1/5 del alto de la tarjeta */
.plan-image {
    width: 100%;
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
}

.plan-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Header del Plan */
.plan-header {
    text-align: center;
    margin-bottom: 30px;
}

.plan-name {
    font-size: 28px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 20px 0;
}

/* Precios */
.plan-pricing {
    margin-bottom: 20px;
}

.original-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
    display: block;
    margin-bottom: 5px;
}
.plan-header.basic_plan-header {
    text-align: left;
}
.basic_pricing {
       display: flex;
    align-items: baseline;
    justify-content: flex-start;
    gap: 5px;
    margin-bottom: 10px;
    flex-direction: column;
}
.container-plan-content {
    padding: 30px 27px;
}
.current-price-container {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
    margin-bottom: 10px;
} 

.current-price {
    font-size: 48px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1;
}

.price-period {
    font-size: 18px;
    color: #666;
    font-weight: 400;
}
 
/* Estilo exclusivo para planes-gonemo discount text */
.planes-gonemo-discount-text {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0%;
    vertical-align: middle;
    color: #29A847;
    padding: 4px 12px;
    border-radius: 12px;
    display: inline-block;
    background: transparent;
}

/* Mantener estilo legacy para compatibilidad */
.discount-text {
    background: #10b981;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

/* Características */
.plan-features {
    margin-bottom: 30px;
}

/* Estilos exclusivos para planes-gonemo features */
.planes-gonemo-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.planes-gonemo-feature-icon {
    color: #29A847;
    flex-shrink: 0;
    margin-top: 4px;
    width: 16px;
    height: 16px;
}

.planes-gonemo-feature-icon svg {
    width: 16px;
    height: 16px;
    stroke: #29A847;
}

.planes-gonemo-feature-text {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0%;
    vertical-align: middle;
    color: #020817;
    flex: 1;
}

/* Mantener estilos legacy para compatibilidad */
.feature-item {
  display: flex;
    align-items: flex-start;
    gap: 1px;
    flex-direction: row;
}

.feature-icon {
    color: #10b981;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 1px;
}

.feature-text {
    color: #4b5563;
    flex: 1;
}

/* Footer del Plan */
.plan-footer {
    text-align: center;
    margin-top: auto; /* Empuja el botón al fondo de la card */
}

/* Botones */
.plan-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    min-width: 200px;
    position: relative;
    overflow: hidden;
}

/* Botón Primario (Gradiente Azul) */
.plan-button.primary {
    background: linear-gradient(90deg, #155DFC 0%, #1447E6 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(21, 93, 252, 0.3);
}

.plan-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(21, 93, 252, 0.4);
}

.plan-button.primary:active {
    transform: translateY(0);
}

/* Botón Secundario (Blanco) */
.plan-button.secondary {
    background: #FFFFFF;
    color: #374151;
    border: 2px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.plan-button.secondary:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.plan-button.secondary:active {
    transform: translateY(0);
}

/* Flecha del botón */
.button-arrow {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.plan-button:hover .button-arrow {
    transform: translateX(3px);
}

/* Texto de Garantía */
.guarantee-text {
    text-align: center;
    font-size: 14px;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.guarantee-icon {
    font-size: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container-plan-content {
    padding: 0px 27px;
}
    .planes-gonemo-widget {
        padding: 40px 0;
    }
    
    .plans-container {
        padding: 0 15px;
    }
    
    .planes-main-title {
        font-size: 36px;
        margin-bottom: 15px;
    }
    
    .planes-subtitle {
        font-size: 16px;
        margin-bottom: 30px;
    }
    
    .plans-container {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    
    .plan-card {
        max-width: 100%;
        width: 100%;
        padding: 30px 20px;
    }
    
    .plan-card.popular {
        transform: none;
        margin: 0;
    }
    
    .plan-card.popular:hover {
        transform: translateY(-5px);
    }
    
    .plan-name {
        font-size: 24px;
    }
    
    .current-price {
        font-size: 40px;
    }
    
    .plan-button {
        width: 100%;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .planes-main-title {
        font-size: 28px;
    }
    
    .planes-subtitle {
        font-size: 14px;
    }
    
    .plan-card {
        padding: 25px 15px;
    }
    
    .current-price {
        font-size: 36px;
    }
    
    .feature-item {
        font-size: 13px;
    }
    
    .planes-gonemo-feature-text {
        font-size: 15px;
        line-height: 22px;
    }
    
    .planes-gonemo-discount-text {
        font-size: 15px;
        line-height: 22px;
    }
    
    .plan-button {
        padding: 14px 24px;
        font-size: 14px;
    }
    
    .guarantee-text {
        font-size: 12px;
        flex-direction: column;
        gap: 4px;
    }
}

/* Accesibilidad */
@media (prefers-reduced-motion: reduce) {
    .plan-card,
    .plan-button,
    .button-arrow {
        transition: none;
    }
    
    .plan-card:hover,
    .plan-button:hover {
        transform: none;
    }
}

/* Alto contraste */
@media (prefers-contrast: high) {
    .plan-card {
        border: 2px solid #000;
    }
    
    .plan-button.secondary {
        border: 2px solid #000;
        color: #000;
    }
    
    .feature-text {
        color: #000;
    }
}

/* Modo oscuro */
@media (prefers-color-scheme: dark) {
    .planes-gonemo-widget {
        background: #ffffff;
    }
    
    .planes-main-title {
        color: #ffffff;
    }
    
    .planes-subtitle {
        color: #a0a0a0;
    }
    
    .plan-card {
        background: #ffffff;
        border-color: #ffffff;
        color: #ffffff;
    }
    
    .plan-name {
        color: #ffffff;
    }
    
    .current-price {
        color: #000;
    }
    
    .feature-text {
        color: #d0d0d0;
    }
    
    .planes-gonemo-feature-text {
        color: #020817;
    }
    
    .planes-gonemo-feature-icon svg {
        stroke: #29A847;
    }
    
    .planes-gonemo-discount-text {
        color: #29A847;
    }
    
    .plan-button.secondary {
        background: #2a2a2a;
        color: #ffffff;
        border-color: #404040;
    }
    
    .plan-button.secondary:hover {
        background: #3a3a3a;
    }
    
    .guarantee-text {
        color: #a0a0a0;
    }
}

/* Print styles */
@media print {
    .planes-gonemo-widget {
        padding: 20px 0;
    }
    
    .plan-card {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
        transform: none !important;
        page-break-inside: avoid;
    }
    
    .plan-button {
        background: #f5f5f5 !important;
        color: #333 !important;
        border: 1px solid #ccc !important;
        box-shadow: none !important;
        transform: none !important;
    }
    
    .popular-badge {
        background: #333 !important;
        color: #fff !important;
    }
}